-
-
Notifications
You must be signed in to change notification settings - Fork 6
/
.eslintrc.js
76 lines (75 loc) · 2.18 KB
/
.eslintrc.js
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
const sharedRules = {
'spaced-comment': 'off',
'no-new-func': 'off',
'no-implied-eval': 'off',
'no-var': 'off'
}
module.exports = {
root: true,
env: {
node: true,
browser: true
},
extends: [
'standard'
],
rules: {
...sharedRules
},
globals: {
emnapi: false,
__VERSION__: false
},
overrides: [
{
files: [
'./packages/**/*.ts'
],
parser: '@typescript-eslint/parser',
extends: [
'standard-with-typescript'
],
rules: {
...sharedRules,
'@typescript-eslint/no-implied-eval': 'off',
'@typescript-eslint/restrict-plus-operands': 'off',
'@typescript-eslint/no-unused-vars': 'error',
'@typescript-eslint/no-namespace': 'off',
'@typescript-eslint/no-var-requires': 'off',
'@typescript-eslint/promise-function-async': 'off',
'@typescript-eslint/no-non-null-assertion': 'off',
'@typescript-eslint/consistent-type-definitions': 'off',
'@typescript-eslint/strict-boolean-expressions': 'off',
'@typescript-eslint/naming-convention': 'off',
'@typescript-eslint/no-dynamic-delete': 'off',
'@typescript-eslint/method-signature-style': 'off',
'@typescript-eslint/prefer-includes': 'off',
'@typescript-eslint/ban-ts-comment': 'off',
'@typescript-eslint/ban-types': 'off',
'@typescript-eslint/consistent-type-imports': 'off',
'@typescript-eslint/consistent-generic-constructors': 'off',
'@typescript-eslint/no-unnecessary-type-assertion': 'off',
'@typescript-eslint/no-unsafe-argument': 'off',
'@typescript-eslint/unbound-method': 'off',
'@typescript-eslint/no-empty-interface': 'off',
'@typescript-eslint/member-delimiter-style': ['error', {
multiline: {
delimiter: 'none',
requireLast: true
},
singleline: {
delimiter: 'semi',
requireLast: false
}
}]
},
parserOptions: {
ecmaVersion: 2021,
sourceType: 'module',
project: './tsconfig.json',
tsconfigRootDir: __dirname,
createDefaultProgram: true
},
}
]
}