-
-
Notifications
You must be signed in to change notification settings - Fork 682
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
Add prettier config #1610
Comments
Related to 11ty/eleventy-plugin-rss#42. Maybe we can adopt a consistent prettier configuration across the 11ty repos? |
root = true
[*]
indent_style = space
indent_size = 2
end_of_line = lf
insert_final_newline = true
trim_trailing_whitespace = true
charset = utf-8 2 space indentation with final newline.
root = true
[*]
indent_style = tab
indent_size = 2
end_of_line = lf
insert_final_newline = true
trim_trailing_whitespace = true
charset = utf-8
root = true
[*]
indent_style = space
indent_size = 2
end_of_line = lf
insert_final_newline = false
trim_trailing_whitespace = true
charset = utf-8
[*.js]
insert_final_newline = true
root = true
[*]
indent_style = space
indent_size = 2
end_of_line = lf
insert_final_newline = false
trim_trailing_whitespace = true
charset = utf-8
[*.js]
insert_final_newline = true
[/test/stubs*/**]
insert_final_newline = unset
trim_trailing_whitespace = false and this website itself uses tabs + the weird newline rule: root = true
[*]
indent_style = tab
indent_size = 2
end_of_line = lf
insert_final_newline = false
trim_trailing_whitespace = true
charset = utf-8
[*.js]
insert_final_newline = true
indent_style = tab
[*.json]
indent_style = tab
[*.css]
insert_final_newline = true
indent_style = tab And the only actual prettier configuration is this, just specifying {
"arrowParens": "always",
"printWidth": 100
} Looks like we can't decide between tabs and spaces but the |
For the most part we can stick to using EditorConfig since prettier respects that (for rules like
|
Would love an update on this. Hoping to contribute but lacking this config makes it difficult! |
There is a package script for formatting with
prettier
and it's installed as a dev dependency but there isn't a configuration file.11ty-website/package.json
Line 18 in ec71de4
I can suggest my own configuration but I think it would be best for Zach to suggest one - they should be comfortable with whatever we choose!
The text was updated successfully, but these errors were encountered: