Skip to content

Commit cb523f2

Browse files
chore: update eslint configuration and dependencies (#448)
* chore: update eslint configuration and dependencies - Simplified linting commands in package.json - Updated eslint and related packages to latest versions - Changed @typescript-eslint packages to a more recent version * chore: update legacy eslint config for tests and caught errors * chore: regenerate lockfile for npm ci
1 parent 6dc69cb commit cb523f2

3 files changed

Lines changed: 606 additions & 280 deletions

File tree

.eslintrc.js

Lines changed: 26 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,23 +3,33 @@ module.exports = {
33
parserOptions: {
44
sourceType: 'module',
55
},
6-
plugins: ['@typescript-eslint/eslint-plugin'],
6+
plugins: ['@typescript-eslint'],
77
extends: ['eslint:recommended', 'plugin:@typescript-eslint/recommended'],
88
root: true,
99
env: {
1010
node: true,
1111
},
1212
ignorePatterns: ['dist', 'tslint.json', 'node_modules'],
1313
rules: {
14-
'@typescript-eslint/interface-name-prefix': 'off',
1514
'@typescript-eslint/no-explicit-any': 'off',
16-
'@typescript-eslint/no-unused-vars': ['error', { argsIgnorePattern: '^_' }],
15+
'@typescript-eslint/no-unused-vars': [
16+
'error',
17+
{
18+
argsIgnorePattern: '^_',
19+
caughtErrors: 'none',
20+
},
21+
],
22+
'@typescript-eslint/no-require-imports': 'off',
23+
1724
semi: ['error', 'never'],
1825
quotes: ['error', 'single', { avoidEscape: true }],
19-
'sort-imports': ['error', {
20-
ignoreCase: true,
21-
allowSeparatedGroups: true,
22-
}],
26+
'sort-imports': [
27+
'error',
28+
{
29+
ignoreCase: true,
30+
allowSeparatedGroups: true,
31+
},
32+
],
2333
curly: [2, 'multi-line'],
2434
'max-len': [
2535
'error',
@@ -32,4 +42,12 @@ module.exports = {
3242
],
3343
'comma-dangle': ['error', 'always-multiline'],
3444
},
35-
}
45+
overrides: [
46+
{
47+
files: ['test/**/*.ts', '**/*.spec.ts'],
48+
rules: {
49+
'@typescript-eslint/no-unused-expressions': 'off',
50+
},
51+
},
52+
],
53+
}

0 commit comments

Comments
 (0)