-
Notifications
You must be signed in to change notification settings - Fork 233
Expand file tree
/
Copy patheslint.config.js
More file actions
41 lines (39 loc) · 1.02 KB
/
Copy patheslint.config.js
File metadata and controls
41 lines (39 loc) · 1.02 KB
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
import eslint from '@eslint/js';
import tseslint from 'typescript-eslint';
export default tseslint.config(
eslint.configs.recommended,
...tseslint.configs.recommended,
{
languageOptions: {
ecmaVersion: 2020,
sourceType: 'module',
parserOptions: {
project: './tsconfig.json'
}
},
rules: {
'@typescript-eslint/no-explicit-any': 'warn',
'@typescript-eslint/no-unused-vars': ['warn', { argsIgnorePattern: '^_' }],
'@typescript-eslint/ban-ts-comment': 'warn',
'@typescript-eslint/no-var-requires': 'warn',
'@typescript-eslint/no-this-alias': 'warn',
'no-console': 'off',
'no-prototype-builtins': 'warn',
'prefer-rest-params': 'warn',
'no-useless-catch': 'warn',
'prefer-const': 'warn',
'no-constant-condition': 'warn',
'no-control-regex': 'warn',
'no-empty': 'warn'
}
},
{
ignores: [
'dist/**',
'node_modules/**',
'*.config.js',
'*.config.ts',
'src/**/*.d.ts',
]
}
);