Skip to content

Commit

Permalink
.eslintrc.json: Disallow unneeded ternary ops and spaces before func …
Browse files Browse the repository at this point in the history
…parens
  • Loading branch information
Holzhaus committed Jan 19, 2020
1 parent 97b3b92 commit 14c7242
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@
"keyword-spacing": "warn",
"linebreak-style": ["warn", "unix"],
"no-trailing-spaces": "warn",
"no-unneeded-ternary": ["warn", {
"defaultAssignment": false
}],
"no-unused-vars": ["error", {
"argsIgnorePattern": "^_"
}],
Expand All @@ -32,6 +35,7 @@
"require-atomic-updates": "error",
"semi": "warn",
"semi-spacing": "warn",
"space-before-function-paren": ["warn", "never"],
"space-in-parens": "warn"
},
"globals": {
Expand Down

0 comments on commit 14c7242

Please sign in to comment.