-
-
Notifications
You must be signed in to change notification settings - Fork 728
Expand file tree
/
Copy path.eslintrc.js
More file actions
40 lines (40 loc) · 747 Bytes
/
.eslintrc.js
File metadata and controls
40 lines (40 loc) · 747 Bytes
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
module.exports = {
root: true,
parserOptions: {
ecmaVersion: 2020,
sourceType: 'module'
},
extends: [
'eslint:recommended'
],
env: {
browser: true,
es6: true
},
rules: {
'complexity': ['warn', 6],
'max-lines': ['warn', { max: 250, skipBlankLines: true, skipComments: true }],
'no-console': 'off',
'no-unused-vars': 'off',
'prefer-const': 'off'
},
overrides: [
// node files
{
files: [
'.eslintrc.js',
'babel.config.js',
'jest.config.js',
'rollup.config.js',
'__mocks__/styleMock.js'
],
parserOptions: {
sourceType: 'module',
ecmaVersion: 2020
},
env: {
node: true
}
}
]
};