-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.cjs
44 lines (42 loc) · 1.1 KB
/
.eslintrc.cjs
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
const base = require('@zcloak/dev/config/eslint.cjs');
module.exports = {
...base,
ignorePatterns: [
...base.ignorePatterns,
'.eslintrc.js',
'.github/**',
'.vscode/**',
'.yarn/**',
'**/build/*',
'**/coverage/*',
'**/node_modules/*'
],
parserOptions: {
...base.parserOptions,
project: [
'./tsconfig.eslint.json'
]
},
rules: {
...base.rules,
'import-newlines/enforce': 'off',
'@typescript-eslint/no-floating-promises': 'off',
'@typescript-eslint/no-misused-promises': 'off',
'@typescript-eslint/ban-types': 'off',
'operator-linebreak': 'off',
'simple-import-sort/imports': [
2,
{
groups: [
['^\u0000'], // all side-effects (0 at start)
['\u0000$', '^@zcloak.*\u0000$', '^\\..*\u0000$'], // types (0 at end)
['\u0000$', '^@zkid.*\u0000$', '^\\..*\u0000$'], // types (0 at end)
['^[^/\\.]'],
['^@zcloak'],
['^@zkid'],
['^\\.\\.(?!/?$)', '^\\.\\./?$', '^\\./(?=.*/)(?!/?$)', '^\\.(?!/?$)', '^\\./?$'] // local (. last)
]
}
],
}
};