Skip to content

Commit 67c4adc

Browse files
committed
Updated packages.
1 parent b335bf1 commit 67c4adc

File tree

4 files changed

+582
-556
lines changed

4 files changed

+582
-556
lines changed

.eslintrc

Lines changed: 0 additions & 23 deletions
This file was deleted.

eslint.config.js

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
import js from '@eslint/js';
2+
3+
import tseslint from 'typescript-eslint';
4+
import typescriptParser from '@typescript-eslint/parser';
5+
import typescriptPlugin from '@typescript-eslint/eslint-plugin';
6+
7+
export default [
8+
js.configs.recommended,
9+
tseslint.configs.eslintRecommended,
10+
...tseslint.configs.recommended,
11+
{
12+
files: ['**/*.ts', '**/*.js'],
13+
languageOptions: {
14+
parser: typescriptParser,
15+
globals: {
16+
process: 'readonly',
17+
console: 'readonly'
18+
}
19+
},
20+
plugins: {
21+
typescriptPlugin: typescriptPlugin
22+
},
23+
rules: {
24+
'@typescript-eslint/no-explicit-any': 'error',
25+
'@typescript-eslint/no-unused-vars': 'error',
26+
'no-warning-comments': ['warn', { terms: ['todo'], location: 'start' }],
27+
'no-magic-numbers': [
28+
'error',
29+
{
30+
ignore: [-1, 0, 1]
31+
}
32+
]
33+
}
34+
}
35+
];

0 commit comments

Comments
 (0)