Skip to content

Commit

Permalink
cleanup tsAndJsRules as we already have this with generalRules (#22)
Browse files Browse the repository at this point in the history
  • Loading branch information
foxriver76 authored Nov 17, 2024
1 parent 94df23e commit f6547a5
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,6 @@ const generalRules = {
'no-duplicate-imports': 'error',
'@typescript-eslint/no-unsafe-assignment': 'off',
'@typescript-eslint/no-unused-expressions': 'off',
};

/** Rules for js and ts files */
const jsAndTsRules = {
'@typescript-eslint/no-unused-vars': [
'error',
{
Expand All @@ -59,11 +55,10 @@ const jsAndTsRules = {
caughtErrors: 'all',
},
],
}
};

/** General TypeScript rules */
const tsRules = {
...jsAndTsRules,
'@typescript-eslint/no-parameter-properties': 'off',
'@typescript-eslint/no-explicit-any': 'off',
'@typescript-eslint/unbound-method': 'off',
Expand Down Expand Up @@ -148,7 +143,6 @@ const plainJsConfig = {
...tseslint.configs.disableTypeChecked,
rules: {
...tseslint.configs.disableTypeChecked.rules,
...jsAndTsRules,
'@typescript-eslint/no-require-imports': 'off',
}
}
Expand Down

0 comments on commit f6547a5

Please sign in to comment.