-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy patheslint.config.mjs
41 lines (37 loc) · 962 Bytes
/
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
import love from 'eslint-config-love';
import eslintConfigPrettier from 'eslint-config-prettier';
import globals from 'globals';
export default [
{
ignores: ['dist', '**/mock.ts', 'bin/index.js', 'jest.config.js', '**/*.spec.ts']
},
{
...love,
files: ['**/*.js', '**/*.ts']
},
eslintConfigPrettier,
{
languageOptions: {
globals: {
...globals.browser,
...globals.node
},
ecmaVersion: 'latest',
sourceType: 'module',
parserOptions: {
project: ['tsconfig.json']
}
}
},
{
rules: {
complexity: 'off',
'@typescript-eslint/naming-convention': 'off',
'@typescript-eslint/no-magic-numbers': 'off',
'@typescript-eslint/no-unsafe-type-assertion': 'off',
'@typescript-eslint/strict-boolean-expressions': 'off',
'@typescript-eslint/no-unnecessary-condition': 'off',
'@typescript-eslint/no-non-null-assertion': 'off'
}
}
];