-
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 all commits
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_style = tab | ||
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,8 +1,24 @@ | ||
node_modules | ||
.DS_Store | ||
api-cache | ||
# compiled output | ||
tmp | ||
.vscode | ||
api-cache | ||
|
||
# dependencies | ||
node_modules | ||
|
||
# auto-gen PHP files/logs | ||
php_errors.log | ||
|
||
|
||
# IDE - VSCode | ||
.vscode/* | ||
!.vscode/settings.json | ||
!.vscode/launch.json | ||
!.vscode/extensions.json | ||
|
||
# System Files | ||
.DS_Store | ||
|
||
# misc | ||
npm-debug.log | ||
yarn-error.log | ||
package-lock.json |
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, | ||
"trailingComma": "es5", | ||
"tabWidth": 2, | ||
"useTabs": true, | ||
"overrides": [ | ||
{ | ||
"files": ["*.js"], | ||
"options": { | ||
"singleQuote": true | ||
} | ||
} | ||
] | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
{ | ||
"recommendations": [ | ||
"dbaeumer.vscode-eslint", | ||
"esbenp.prettier-vscode", | ||
"firsttris.vscode-jest-runner", | ||
"stylelint.vscode-stylelint", | ||
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. I believe that stylelint is a completely separate package/dependency that we aren't using in this repo. Is this still an extension that we should be recommending? |
||
"eamodio.gitlens", | ||
"wix.vscode-import-cost", | ||
"christian-kohler.path-intellisense", | ||
"formulahendry.auto-rename-tag", | ||
"deque-systems.vscode-axe-linter" | ||
] | ||
} | ||
mahesh0618 marked this conversation as resolved.
Show resolved
Hide resolved
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
{ | ||
"version": "0.2.0", | ||
"configurations": [ | ||
{ | ||
"type": "node", | ||
"request": "launch", | ||
"name": "Jest Current File", | ||
"skipFiles": ["<node_internals>/**"], | ||
"program": "${workspaceFolder}/node_modules/.bin/jest", | ||
"cwd": "${workspaceFolder}", | ||
"args": [ | ||
"test", | ||
"--testPathPattern=${FileBasenameNoExtension}", | ||
"--runInBand" | ||
], | ||
"console": "internalConsole", | ||
"internalConsoleOptions": "neverOpen" | ||
} | ||
] | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,5 @@ | ||
{ | ||
} | ||
"eslint.validate": ["json"], | ||
"editor.defaultFormatter": "esbenp.prettier-vscode", | ||
Comment on lines
+3
to
+4
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? |
||
"editor.formatOnSave": true | ||
} |
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.
I believe that the package-lock.json is created using an indentation of 2 spaces by default. Do we want to add the package-lock.json file to .prettierignore file so that it doesn't override the default formatting?