Skip to content

Commit

Permalink
feat: update linter rules
Browse files Browse the repository at this point in the history
- Update '.vscode/settings.json' linter rules
- Update linter-staged rules to auto-fix the code
  • Loading branch information
lcsmuller committed May 8, 2023
1 parent 199477d commit 902b01c
Show file tree
Hide file tree
Showing 4 changed files with 32 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
lts/hydrogen
lts/hydrogen
28 changes: 28 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
{
"typescript.tsdk": "node_modules/typescript/lib",
"[javascript]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[typescript]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"eslint.enable": true,
"eslint.validate": [
"javascript",
"typescript"
],
"editor.tabSize": 2,
"editor.rulers": [80],
"editor.formatOnSave": true,
"editor.codeActionsOnSave": {
"source.fixAll": true
},
"files.insertFinalNewline": true,
"prettier.printWidth": 80,
"prettier.tabWidth": 2,
"prettier.useTabs": false,
"prettier.singleQuote": true,
"prettier.trailingComma": "all",
"prettier.semi": true,
"prettier.arrowParens": "avoid"
}
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,9 @@
"repository": "https://github.com/profusion/validated-env-schema",
"lint-staged": {
"*.{ts, js}": [
"eslint",
"prettier --write",
"eslint --fix",
"git add",
"jest --bail --findRelatedTests"
]
},
Expand Down
1 change: 0 additions & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
{
"extends": "@tsconfig/node18/tsconfig.json",
"compilerOptions": {
"target": "ES2015",
"moduleResolution": "node",
Expand Down

0 comments on commit 902b01c

Please sign in to comment.