forked from postcss/postcss
-
Notifications
You must be signed in to change notification settings - Fork 0
/
eslint.config.mjs
44 lines (43 loc) · 1.18 KB
/
eslint.config.mjs
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
import loguxTsConfig from '@logux/eslint-config/ts'
export default [
{ ignores: ['docs/api/assets/', '**/errors.ts'] },
...loguxTsConfig,
{
rules: {
'@typescript-eslint/consistent-type-imports': 'off',
'@typescript-eslint/no-explicit-any': 'off',
'consistent-return': 'off',
'global-require': 'off',
'n/no-unsupported-features/es-syntax': [
'error',
{
ignores: ['hashbang', 'modules']
}
],
'n/no-unsupported-features/node-builtins': [
'error',
{ ignores: ['url.fileURLToPath', 'url.pathToFileURL', 'btoa', 'atob'] }
],
'n/prefer-node-protocol': 'off',
'perfectionist/sort-switch-case': 'off'
}
},
{
files: ['**/*.d.ts'],
rules: {
'@typescript-eslint/no-redeclare': 'off',
'n/no-unsupported-features/es-syntax': 'off'
}
},
{
files: ['**/*.test.*', '**/types.ts'],
rules: {
'@typescript-eslint/no-unused-expressions': 'off',
'func-style': 'off',
'n/no-unsupported-features/es-syntax': 'off',
'n/no-unsupported-features/node-builtins': 'off',
'no-console': 'off',
'no-unused-expressions': 'off'
}
}
]