Skip to content

Commit ed36e57

Browse files
committed
Updated packages.
1 parent b335bf1 commit ed36e57

File tree

4 files changed

+578
-556
lines changed

4 files changed

+578
-556
lines changed

.eslintrc

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

eslint.config.js

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
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+
},
16+
plugins: {
17+
typescriptPlugin: typescriptPlugin
18+
},
19+
rules: {
20+
'@typescript-eslint/no-explicit-any': 'error',
21+
'@typescript-eslint/no-unused-vars': 'error',
22+
'no-warning-comments': ['warn', { terms: ['todo'], location: 'start' }],
23+
'no-magic-numbers': [
24+
'error',
25+
{
26+
ignore: [-1, 0, 1]
27+
}
28+
]
29+
}
30+
}
31+
];

0 commit comments

Comments
 (0)