-
Notifications
You must be signed in to change notification settings - Fork 2
/
.eslintrc.js
48 lines (48 loc) · 1.14 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
module.exports = {
env: {
browser: true,
es6: true,
},
extends: [
'airbnb-base',
'eslint:recommended',
],
globals: {
Atomics: 'readonly',
SharedArrayBuffer: 'readonly',
},
rules: {
/**
* ESLint and Airbnb related rules
* https://eslint.org/docs/rules/
*/
'import/extensions': 'off', // disabled to avoid collision with TS
'import/no-extraneous-dependencies': 'off', // disabled to avoid collision with TS
'import/no-unresolved': 'off', // disabled to avoid collision with TS
'import/prefer-default-export': 'off', // too restrictive
'max-len': ['warn', { code: 120 }],
'multiline-comment-style': ['warn', 'bare-block'], // fix formatting license
"no-param-reassign": [
"error",
{
"props": true,
"ignorePropertyModificationsFor": [
"state",
"dispatcherData"
]
}
]
},
overrides: [
{
files: [ '**/*.ts' ],
extends: [
'plugin:@typescript-eslint/eslint-recommended',
'plugin:@typescript-eslint/recommended',
],
plugins: [
'@typescript-eslint',
]
}
]
};