Skip to content

Commit

Permalink
update eslint
Browse files Browse the repository at this point in the history
  • Loading branch information
spencermountain committed Jul 31, 2024
1 parent 8485c99 commit 6ece280
Show file tree
Hide file tree
Showing 12 changed files with 1,835 additions and 88 deletions.
56 changes: 0 additions & 56 deletions .eslintrc

This file was deleted.

37 changes: 37 additions & 0 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
import * as regexpPlugin from "eslint-plugin-regexp"

export default [
regexpPlugin.configs["flat/recommended"],
{
"ignores": ["**/builds/*"],
"rules": {
"comma-dangle": [1, "only-multiline"],
"quotes": [0, "single", "avoid-escape"],
"max-nested-callbacks": [1, 4],
"max-params": [1, 5],
"consistent-return": 1,
"no-bitwise": 1,
"no-empty": 1,
"no-console": 1,
"no-duplicate-imports": 1,
"no-eval": 2,
"no-implied-eval": 2,
"no-mixed-operators": 2,
"no-multi-assign": 2,
"no-nested-ternary": 1,
"no-prototype-builtins": 0,
"no-self-compare": 1,
"no-sequences": 1,
"no-shadow": 2,
"no-unmodified-loop-condition": 1,
"no-use-before-define": 1,
"prefer-const": 0,
"radix": 1,
"no-unused-vars": 1,
"regexp/prefer-d": 0,
"regexp/prefer-w": 0,
"regexp/prefer-range": 0,
"regexp/no-unused-capturing-group": 0
}
}
]
Loading

0 comments on commit 6ece280

Please sign in to comment.