Skip to content

Commit

Permalink
Move rules and make them a warning
Browse files Browse the repository at this point in the history
  • Loading branch information
Kakadus committed Oct 28, 2024
1 parent 7f3470a commit aaf9c56
Showing 1 changed file with 9 additions and 11 deletions.
20 changes: 9 additions & 11 deletions evap/static/ts/eslint.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,17 +24,6 @@ export default tseslint.config(
rules: {
"@typescript-eslint/restrict-template-expressions": ["error", { allowNumber: true }],
"no-else-return": "error",
// not fixed in this PR
"@typescript-eslint/no-misused-promises": "off",
"@typescript-eslint/no-namespace": "off",
"@typescript-eslint/no-non-null-assertion": "off",
"@typescript-eslint/no-unsafe-call": "off",
"@typescript-eslint/no-unsafe-member-access": "off",
"@typescript-eslint/no-unsafe-argument": "off",
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/no-empty-function": "off",
"@typescript-eslint/no-unnecessary-type-parameters": "off",
// fixed in this PR
"@typescript-eslint/no-unused-vars": [
"error",
{
Expand All @@ -47,6 +36,15 @@ export default tseslint.config(
ignoreRestSiblings: true,
},
],
"@typescript-eslint/no-empty-function": "off",
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/no-unnecessary-type-parameters": "off",
"@typescript-eslint/no-misused-promises": "warn",
"@typescript-eslint/no-namespace": "warn",
"@typescript-eslint/no-non-null-assertion": "warn",
"@typescript-eslint/no-unsafe-call": "warn",
"@typescript-eslint/no-unsafe-member-access": "warn",
"@typescript-eslint/no-unsafe-argument": "warn",
},
},
);

0 comments on commit aaf9c56

Please sign in to comment.