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 all 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
3 changes: 2 additions & 1 deletion .prettierignore
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
src/_includes/examples/pagination/
_site/**
src/_includes/components/auth/gotrue.js
src/docs/versions.md
src/blog/blog.md
src/authors/author-pages.md
src/docs/plugins/community.md
src/docs/quicktips.md
src/docs/quicktips.md
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
}
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@
"start-production": "NODE_ENV=production npx @11ty/eleventy --serve --quiet --port=8091",
"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/",
"format": "prettier --write '**/*.{js,css,html,md}'"
"get-new-supporters": "eleventy && node node-supporters",
"format": "prettier . --write"
},
"repository": {
"type": "git",
Expand Down Expand Up @@ -66,7 +67,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