Skip to content

Commit

Permalink
fix: Allow magic numbers for indexing
Browse files Browse the repository at this point in the history
  • Loading branch information
Ant59 committed Jul 15, 2024
1 parent 32c1e9e commit 6ddbf75
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
11 changes: 10 additions & 1 deletion eslint.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,16 @@ export default tseslint.config(
},
],
"@typescript-eslint/consistent-type-imports": "error",
"@typescript-eslint/no-magic-numbers": "error",
"no-magic-numbers": "off",
"@typescript-eslint/no-magic-numbers": [
"error",
{
ignoreEnums: true,
ignoreNumericLiteralTypes: true,
ignoreReadonlyClassProperties: true,
ignoreTypeIndexes: true,
}
],
"@typescript-eslint/no-require-imports": "error",
"@typescript-eslint/no-unnecessary-type-parameters": "error",
"@typescript-eslint/no-unsafe-unary-minus": "error",
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@disruptive-industries/eslint-config",
"version": "1.0.8",
"version": "1.0.9",
"type": "module",
"main": "eslint.config.js",
"publishConfig": {
Expand Down

0 comments on commit 6ddbf75

Please sign in to comment.