Skip to content

Commit

Permalink
feat: add rule no-unneeded-ternary (#54)
Browse files Browse the repository at this point in the history
  • Loading branch information
devpow112 authored Dec 1, 2022
1 parent 76a60cd commit a2f3a81
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion common-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ module.exports = {
"eol-last": 2, // nr
"eqeqeq": [2, "always", { "null": "ignore" }], // nr
"indent": [2, "tab", { "SwitchCase": 1 }], // nr
"keyword-spacing": 2,
"linebreak-style": ["error", "unix"], // nr
"new-parens": 2, // nr
"no-debugger": 2,
Expand All @@ -19,14 +20,14 @@ module.exports = {
"no-multiple-empty-lines": [2, {"max": 1}], // nr
"no-trailing-spaces": 2, // nr
"no-undef": 2,
"no-unneeded-ternary": 2, // nr
"no-unreachable": 2,
"no-unused-vars": [2, {"vars": "all", "args": "after-used"}],
"no-use-before-define": [2, "nofunc"], // nr
"object-curly-spacing": [2, "always"],
"prefer-const": 2, // nr
"quotes": [2, "single", "avoid-escape"], // nr
"semi": 2, // nr
"keyword-spacing": 2,
"space-before-blocks": [2, "always"], // nr
"space-before-function-paren": [2, "never"], //nr
"space-in-parens": [2, "never"],
Expand Down

0 comments on commit a2f3a81

Please sign in to comment.