Skip to content

Commit

Permalink
Format code on save
Browse files Browse the repository at this point in the history
  • Loading branch information
PKief committed Jul 1, 2021
1 parent 95006b3 commit 590063c
Show file tree
Hide file tree
Showing 6 changed files with 724 additions and 783 deletions.
10 changes: 8 additions & 2 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"extends": ["prettier"],
"extends": ["plugin:prettier/recommended"],
"env": {
"browser": true,
"es6": true,
Expand Down Expand Up @@ -40,6 +40,12 @@
"no-underscore-dangle": "error",
"no-unsafe-finally": "error",
"no-var": "error",
"spaced-comment": "error"
"spaced-comment": "error",
"prettier/prettier": [
"error",
{
"endOfLine": "auto"
}
]
}
}
8 changes: 7 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,11 @@
},
"search.exclude": {
"out": true
}
},
"editor.defaultFormatter": "esbenp.prettier-vscode",
"editor.codeActionsOnSave": {
"source.fixAll.eslint": true
},
"eslint.validate": ["typescript"],
"editor.formatOnSave": true
}
Loading

0 comments on commit 590063c

Please sign in to comment.