Skip to content

Commit

Permalink
fixup
Browse files Browse the repository at this point in the history
  • Loading branch information
simenandre committed Jul 13, 2023
1 parent 0ed866e commit d316d81
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 13 deletions.
4 changes: 0 additions & 4 deletions base.js
Original file line number Diff line number Diff line change
Expand Up @@ -76,10 +76,6 @@ const eslintConfigBasic = {
{
files: ['**/*.test.ts'],
rules: {
'@typescript-eslint/ban-ts-comment': 'off',
'@typescript-eslint/no-explicit-any': 'off',
'@typescript-eslint/no-unused-vars': 'off',
'@typescript-eslint/no-var-requires': 'off',
quotes: ['error', 'single', { allowTemplateLiterals: true }],
},
},
Expand Down
7 changes: 1 addition & 6 deletions index.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,5 @@
const eslintConfig = {
extends: [
'./base',
'./typescript',
'./import',
'prettier',
]
extends: ['./base', './typescript', './import', 'prettier'],
};

// eslint-disable-next-line no-undef
Expand Down
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
"repository": "github.com:bjerkio/eslint-config",
"main": "index.js",
"files": [
"index.js",
"base.js",
"import.js",
"typescript.js"
Expand Down
15 changes: 13 additions & 2 deletions typescript.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,12 @@ const eslintConfigTypescript = {

/**
* Disallow unused variables.
*
*
* Exceptions:
* - Variables that start with an underscore
* - Rest siblings
* - Caught errors
*
*
* @see https://typescript-eslint.io/rules/no-unused-vars
*/
'@typescript-eslint/no-unused-vars': [
Expand All @@ -44,6 +44,17 @@ const eslintConfigTypescript = {
'@typescript-eslint/prefer-optional-chain': 'error',
'@typescript-eslint/prefer-ts-expect-error': 'error',
},
overrides: [
{
files: ['**/*.test.ts'],
rules: {
'@typescript-eslint/ban-ts-comment': 'off',
'@typescript-eslint/no-explicit-any': 'off',
'@typescript-eslint/no-unused-vars': 'off',
'@typescript-eslint/no-var-requires': 'off',
},
},
],
};

// eslint-disable-next-line no-undef
Expand Down

0 comments on commit d316d81

Please sign in to comment.