Skip to content
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

Update Prettier & EditorConfig files #1651

Open
wants to merge 6 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 3 additions & 12 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,10 @@ root = true

[*]
indent_style = tab
indent_size = 2
end_of_line = lf
insert_final_newline = false
insert_final_newline = true
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
[*.yml]
indent_style = space
8 changes: 8 additions & 0 deletions .prettierrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"useTabs": true,
"singleQuote": false,
"semi": true,
"endOfLine": "lf",
"arrowParens": "always",
"printWidth": 100
}
uncenter marked this conversation as resolved.
Show resolved Hide resolved
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"create-search-index": "npx pagefind --site \"_site\" --glob \"{docs,blog}/**/*.html\"",
"get-new-data": "rm -rf ./src/_data/builtwith/ && npx degit github:11ty/11ty-community/built-with-eleventy src/_data/builtwith/",
"get-new-supporters": "eleventy && node node-supporters",
"format": "prettier --write '**/*.{js,css,html,md}'"
"format": "prettier . --write"
},
"repository": {
"type": "git",
Expand Down Expand Up @@ -71,7 +71,7 @@
"node-fetch": "^2.6.8",
"node-retrieve-globals": "^2.0.6",
"pagefind": "^1.0.3",
"prettier": "^2.8.4",
"prettier": "^3.1.1",
"semver": "^7.5.4",
"short-hash": "^1.0.0",
"slugify": "^1.6.5",
Expand Down