Skip to content

Commit

Permalink
refactor(style): Update ESLint & Prettier. Modernize configs. Run Pre…
Browse files Browse the repository at this point in the history
…ttier. (dcmjs-org#275)

* chore: update eslint, prettier, modernize configs

* chore: run prettier on whole codebase
  • Loading branch information
richard-viney authored Jun 13, 2022
1 parent 8e4bffd commit c209047
Show file tree
Hide file tree
Showing 57 changed files with 1,753 additions and 1,718 deletions.
18 changes: 9 additions & 9 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
{
"env": {
"browser": true,
"browser": true,
"node": true,
"es6": true,
"jest": true
},

"extends": [
"eslint:recommended"
"eslint:recommended",
"prettier"
],
"rules": {
"indent": [
"error",
4
]
},
"parser": "babel-eslint"

"parserOptions": {
"ecmaVersion": 11,
"sourceType": "module"
}
}
3 changes: 2 additions & 1 deletion .prettierrc
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"tabWidth": 4,
"semi": true
"trailingComma": "none",
"arrowParens": "avoid"
}
7 changes: 6 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
{
"editor.formatOnSave": true

"editor.defaultFormatter": "esbenp.prettier-vscode",
"[javascript]": {
"editor.tabSize": 4,
"editor.formatOnSave": true
},
}
Loading

0 comments on commit c209047

Please sign in to comment.