Skip to content

Commit

Permalink
Require ternary expressions condition to be enclosed by parentheses
Browse files Browse the repository at this point in the history
Relates to #1049
  • Loading branch information
MrBurrBurr committed Apr 3, 2021
1 parent ec7bba0 commit 718a28c
Show file tree
Hide file tree
Showing 25 changed files with 524 additions and 33 deletions.
9 changes: 7 additions & 2 deletions .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,10 @@
"ecmaVersion": 2018,
"sourceType": "module"
},
"plugins": ["vue"],
"plugins": [
"vue",
"@spothero/eslint-plugin-spothero"
],
"rules": {
"indent": ["error", 2, {
"SwitchCase": 1
Expand Down Expand Up @@ -75,7 +78,9 @@
}
}],
"vue/singleline-html-element-content-newline": "off",
"vue/comma-dangle": "error"
"vue/comma-dangle": "error",
"vue/no-v-html": "off",
"@spothero/spothero/ternary-parentheses": "error"
},
"overrides": [{
"files": ["*.vue"],
Expand Down
Loading

0 comments on commit 718a28c

Please sign in to comment.