-
Notifications
You must be signed in to change notification settings - Fork 6
chore: updates code formatting configs #126
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
base: main
Are you sure you want to change the base?
Changes from 1 commit
ec3b981
ccc1ab2
9175c9e
7aabe12
3788c7b
1be26ff
2d04e60
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,7 +1,15 @@ | ||
| # Editor configuration, see http://editorconfig.org | ||
| root = true | ||
|
|
||
| [*] | ||
| charset = utf-8 | ||
| insert_final_newline = true | ||
| end_of_line = lf | ||
| indent_style = space | ||
| indent_size = 4 | ||
| indent_size = 2 | ||
| max_line_length = 80 | ||
| trim_trailing_whitespace = true | ||
|
|
||
| [*.md] | ||
| max_line_length = off | ||
| trim_trailing_whitespace = false |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,22 +1,20 @@ | ||
| { | ||
| "phpVersion": "8.1", | ||
| "plugins": ["@prettier/plugin-php"], | ||
| "tabWidth": 4, | ||
| "bracketSameLine": true, | ||
| "printWidth": 80, | ||
| "singleQuote": false, | ||
| "overrides": [ | ||
| { | ||
| "files": ["*.js"], | ||
| "options": { | ||
| "singleQuote": true | ||
| } | ||
| }, | ||
| { | ||
| "files": ["*.md", "package.json", "package-lock.json"], | ||
| "options": { | ||
| "tabWidth": 2 | ||
| } | ||
| } | ||
| ] | ||
| "phpVersion": "8.1", | ||
| "plugins": ["@prettier/plugin-php"], | ||
| "bracketSameLine": false, | ||
| "bracketSpacing": true, | ||
| "printWidth": 80, | ||
| "singleQuote": false, | ||
| "semi": true, | ||
| "tabWidth": 2, | ||
| "useTabs": false, | ||
| "trailingComma": "es5", | ||
| "overrides": [ | ||
| { | ||
| "files": ["*.js"], | ||
| "options": { | ||
| "singleQuote": true | ||
| } | ||
| } | ||
| ] | ||
| } | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,2 +1,5 @@ | ||
| { | ||
| } | ||
| "eslint.validate": ["json"], | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. What does this line do? Is it saying to only validate the json files? Because we'd want to validate more than just json. |
||
| "editor.defaultFormatter": "esbenp.prettier-vscode", | ||
| "editor.formatOnSave": true | ||
|
Comment on lines
+3
to
+4
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. What happens when a developer tries to save a file and they don't have the prettier extension installed? |
||
| } | ||
Uh oh!
There was an error while loading. Please reload this page.