Skip to content

Commit

Permalink
chore: Format codebase
Browse files Browse the repository at this point in the history
  • Loading branch information
ericof committed Jul 14, 2022
1 parent fba5e01 commit f3a8a5c
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 1 deletion.
18 changes: 18 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,24 @@ storybook: addon-testing-project/package.json
.PHONY: all
all: project

.PHONY: format-prettier
format-prettier: ## Format Code with Prettier
yarn run prettier:fix

.PHONY: format-stylelint
format-stylelint: ## Format Code with Stylelint
yarn run stylelint:fix

.PHONY: format
format: format-prettier format-stylelint ## Format the codebase according to our standards

.PHONY: i18n
i18n: ## Sync i18n
yarn i18n

.PHONY: i18n-ci
i18n-ci: ## Check if i18n is not synced
yarn i18n && git diff -G'^[^\"POT]' --exit-code
.PHONY: start-test-backend
start-test-backend: ## Start Test Plone Backend
@echo "$(GREEN)==> Start Test Plone Backend$(RESET)"
Expand Down
3 changes: 2 additions & 1 deletion src/components/Block/DefaultView.stories.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ import Wrapper from '@plone/volto/storybook';
const codePython =
'import requests\nresp = requests.get("https://plone.org")\nassert resp.status_code == 200';

const codeLongLines = '# Code to show how wrap long lines would work\n\ntext = "This is a really, really, really, really long line including a lot of words and letters and a text that should not make any sense, but should be long, very long"\n\nprint(text)'
const codeLongLines =
'# Code to show how wrap long lines would work\n\ntext = "This is a really, really, really, really long line including a lot of words and letters and a text that should not make any sense, but should be long, very long"\n\nprint(text)';

const StoryComponent = injectIntl(({ children, ...args }) => {
const { language, style, code, showLineNumbers, wrapLongLines } = args;
Expand Down

0 comments on commit f3a8a5c

Please sign in to comment.