Skip to content

Commit

Permalink
.eslintrc.json: separate off and warn rules (#396)
Browse files Browse the repository at this point in the history
easier to read. off rules are mostly "annoying" rules that we never plan on turning on. warn rules are rules that we plan on fixing, and the goal should be to fix things and turn those back on
  • Loading branch information
NovemLinguae authored Nov 27, 2024
1 parent 39e14fe commit 13bcfe7
Showing 1 changed file with 13 additions and 12 deletions.
25 changes: 13 additions & 12 deletions .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,19 +28,26 @@
],
"rules": {
"camelcase": "off",
"max-len": "off",
"no-console": "off",
"no-jquery/no-class-state": "off",
"no-jquery/no-extend": "off",
"no-jquery/no-global-selector": "off",
"no-prototype-builtins": "off",
"no-shadow": "off",
"no-underscore-dangle": "off",
"security/detect-non-literal-regexp": "off",
"security/detect-unsafe-regex": "off",
"unicorn/prefer-string-slice": "off",

"eqeqeq": "warn",
"es-x/no-array-prototype-includes": "warn",
"es-x/no-object-values": "warn",
"es-x/no-regexp-s-flag": "warn",
"max-len": "off",
"no-console": "off",
"no-global-assign": "warn",
"no-implicit-globals": "warn",
"no-jquery/no-animate": "warn",
"no-jquery/no-class-state": "off",
"no-jquery/no-each-util": "warn",
"no-jquery/no-extend": "off",
"no-jquery/no-global-selector": "off",
"no-jquery/no-grep": "warn",
"no-jquery/no-in-array": "warn",
"no-jquery/no-map-util": "warn",
Expand All @@ -49,14 +56,8 @@
"no-jquery/no-trim": "warn",
"no-jquery/variable-pattern": "warn",
"no-new": "warn",
"no-prototype-builtins": "off",
"no-shadow": "off",
"no-undef": "warn",
"no-underscore-dangle": "off",
"no-unused-vars": "warn",
"prefer-const": "warn",
"security/detect-non-literal-regexp": "off",
"security/detect-unsafe-regex": "off",
"unicorn/prefer-string-slice": "off"
"prefer-const": "warn"
}
}

0 comments on commit 13bcfe7

Please sign in to comment.