Skip to content

Commit

Permalink
Update eslint rules (#592)
Browse files Browse the repository at this point in the history
* Update lint

* Lint fixes
  • Loading branch information
gkjohnson committed Jun 25, 2024
1 parent b1996e4 commit d0611d1
Show file tree
Hide file tree
Showing 7 changed files with 954 additions and 910 deletions.
36 changes: 23 additions & 13 deletions .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,23 +8,33 @@
"BigInt64Array": "readonly",
"BigUInt64Array": "readonly"
},
"env": {
"jest/globals": true
},

"extends": [ "plugin:jest/recommended", "./node_modules/eslint-config-mdcs/index.js" ],
"plugins": [ "jest" ],
"extends": [ "eslint:recommended", "plugin:jest/recommended", "./node_modules/eslint-config-mdcs/index.js" ],

"rules": {
"no-inner-declarations": "off",
"padding-line-between-statements": "off",
"no-constant-condition": "off",
// "no-constant-condition": [ "error", { "checkLoops": "exceptWhileTrue" } ],

"no-unused-vars": [ 1, { "args": "none" } ],
"no-throw-literal": [
"error"
],
"no-const-assign": "error",
"prefer-const": [
"error",
{
"destructuring": "any",
"ignoreReadBeforeAssign": false
}
],
"no-throw-literal": [ "error" ],
"prefer-const": [ "error", { "destructuring": "any", "ignoreReadBeforeAssign": false } ],
"quotes": [ "error", "single" ]
}
},
"overrides": [
{
"files": [ "*.ts" ],
"parser": "@typescript-eslint/parser",
"plugins": [ "@typescript-eslint" ],
"rules": {
"no-unused-vars": [ "error", { "args": "none" } ],
"indent": [ 2, 2 ]
}
}
]
}
Loading

0 comments on commit d0611d1

Please sign in to comment.