-
Notifications
You must be signed in to change notification settings - Fork 24
/
eslint.config.js
50 lines (49 loc) · 1.42 KB
/
eslint.config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
import eslintPluginTs from '@typescript-eslint/eslint-plugin';
import tsParser from '@typescript-eslint/parser';
export default [
{
files: ['**/*.ts'],
languageOptions: {
parser: tsParser,
parserOptions: {
ecmaVersion: 2022,
sourceType: 'module',
project: [
'./tsconfig.json',
'./tsconfig.vitest.json',
'./tsconfig.cfg.json',
'./examples/tsconfig.json',
'./visual-regression/tsconfig.json',
'./performance/tsconfig.json',
],
},
},
plugins: {
'@typescript-eslint': eslintPluginTs,
},
rules: {
...eslintPluginTs.configs.recommended.rules,
'@typescript-eslint/no-unsafe-argument': 'warn',
'@typescript-eslint/no-unsafe-assignment': 'warn',
'@typescript-eslint/no-unsafe-return': 'warn',
'@typescript-eslint/no-unsafe-call': 'warn',
'@typescript-eslint/no-non-null-assertion': 'warn',
'@typescript-eslint/no-unsafe-member-access': 'warn',
'@typescript-eslint/ban-ts-comment': 'warn',
'@typescript-eslint/no-explicit-any': 'warn',
'@typescript-eslint/no-unused-vars': 'warn',
'@typescript-eslint/no-empty-object-type': 'warn',
'@typescript-eslint/no-unused-expressions': 'warn',
},
},
{
ignores: [
'**/dist/**',
'node_modules',
'**config**.ts',
'**/docs/**',
'dist-vitest',
'dist-cfg',
],
},
];