forked from visgl/luma.gl
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
42 lines (42 loc) · 1.13 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
module.exports = {
parserOptions: {
ecmaVersion: 2018
},
extends: ['uber-es2015', 'prettier', 'plugin:import/errors'],
plugins: ['tree-shaking', 'luma-gl-custom-rules', 'import'],
rules: {
'guard-for-in': 0,
'no-inline-comments': 0,
camelcase: 0,
'max-statements': 0,
'max-depth': 0,
complexity: 0,
'luma-gl-custom-rules/check-log-call': 1,
'import/no-unresolved': ['error'],
'import/no-extraneous-dependencies': [
'error',
{devDependencies: false, peerDependencies: true}
],
// Turn on to help debug tree-shaking issues
'tree-shaking/no-side-effects-in-initialization': 0
},
overrides: [
// tests are run with aliases set up in node and webpack.
// This means lint will not find the imported files and generate false warnings
{
files: ['**/test/**/*.js'],
rules: {
'import/no-unresolved': 0,
'import/no-extraneous-dependencies': 0
}
},
// scripts use devDependencies
{
files: ['**/scripts/**/*.js'],
rules: {
'import/no-unresolved': 0,
'import/no-extraneous-dependencies': 0
}
}
]
};