-
-
Notifications
You must be signed in to change notification settings - Fork 805
Expand file tree
/
Copy patheslint.config.mjs
More file actions
28 lines (27 loc) · 747 Bytes
/
eslint.config.mjs
File metadata and controls
28 lines (27 loc) · 747 Bytes
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
import tseslint from 'typescript-eslint'
import eslintConfigPrettier from 'eslint-config-prettier'
export default [
{
ignores: ['dist/**', 'docs/**', 'scripts/**', 'node_modules/**']
},
...tseslint.configs.recommended,
eslintConfigPrettier,
{
files: ['src/**/*.ts'],
rules: {
'no-console': process.env.NODE_ENV !== 'production' ? 'off' : 'error',
'no-useless-escape': 'off',
'no-empty': 'off',
'@typescript-eslint/no-explicit-any': 'off',
'@typescript-eslint/no-non-null-assertion': 'off'
}
},
{
files: ['test/**/*.{js,ts}'],
rules: {
'no-console': 'off',
'@typescript-eslint/no-explicit-any': 'off',
'@typescript-eslint/no-require-imports': 'off'
}
}
]