-
Notifications
You must be signed in to change notification settings - Fork 77
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
chore: Add Prettier formatter #432
Conversation
Overall readability score: 68.28 (🟢 +0)
View detailed metrics🟢 - Shows an increase in readability
Averages:
View metric targets
|
@@ -0,0 +1,7 @@ | |||
{ | |||
"printWidth": 80, | |||
"semi": false, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd leave that to true, it might become super confusing when coding with standard.js and then use different rules for code inside markdown
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
All the code we have in TypeScript doesn't use semicolons (all the kits in the SDK included)
@@ -9,6 +9,7 @@ | |||
"validate-resources": "node .github/scripts/validateResources.js", | |||
"linkcheck": "find ./pages -name '*.md*' -print0 | xargs -0 -n1 pnpm markdown-link-check --quiet --progress --config linkchecker-config.json", | |||
"lint": "eslint . && vale pages/ --minAlertLevel=error", | |||
"format": "prettier --write \"pages/**/*.{md,mdx,json}\"", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is there a way to use standard --fix instead? Since it is already configured for the rest of the project
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is it possible to run prettier with our configuration of standard.js (in eslint.rc)?
Context
This PR:
format
script