-
Notifications
You must be signed in to change notification settings - Fork 61
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
prettier formatting consistency #817
Conversation
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.
lgtm, i think the iOS build failure is because you're not part of the org
@@ -9,7 +9,7 @@ | |||
"check-types": "tsc --noemit", | |||
"eslint": "eslint src", | |||
"pre-commit": "pnpm run eslint && pnpm run check-types && pnpm run format", | |||
"format": "prettier --write \"src/**/*.{ts,tsx,js,jsx,json,css,scss,md}\"", | |||
"format": "prettier --write \"{.,src/**,e2e/**}/*.{ts,tsx,js,jsx,json,css,scss,md}\"", |
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.
root + src + e2e
{.,src/**,e2e/**}
avoids linting node_modules etc..., can be added to easily
trying to discourage deeply nested anything... although I've recently heard a good argument for just using real tabs, so then the display of the tabs can be preferable per dev |
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.
thank you!
What
format
script applies to all root files ande2e/
as well assrc/
prettier.config.mjs
in tsconfig to avoid eslint complaint inprettier.config.mjs
Also WHY
tabWidth: 4,
? :D :D :D my eyes...