-
Notifications
You must be signed in to change notification settings - Fork 3
/
.eslintrc.cjs
64 lines (63 loc) · 1.9 KB
/
.eslintrc.cjs
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
const {getESLintConfig} = require('@vis.gl/dev-tools/configuration');
module.exports = getESLintConfig({
overrides: {
env: {
browser: true,
es2020: true,
node: true
},
overrides: [
{
// scripts use devDependencies
files: ['**/test/**/*.ts', '**/scripts/**/*.js', '*.config.js', '*.config.local.js'],
rules: {
'import/no-unresolved': 0,
'import/no-extraneous-dependencies': 0,
'@typescript-eslint/ban-ts-comment': 0 // We do need our ts-ignores
}
},
{
files: ['modules/**/*.ts', 'modules/**/*.js'],
rules: {
'no-use-before-define': 0,
'import/named': 0,
'@typescript-eslint/no-shadow': 0,
'@typescript-eslint/ban-ts-comment': 0 // We do need our ts-ignores
}
},
{
// gl-matrix code base has not kept up with the times...
files: ['modules/core/**/*.ts', 'modules/core/**/*.js'],
rules: {
camelcase: 0
}
},
{
// gl-matrix code base has not kept up with the times...
files: ['modules/core/src/gl-matrix/*.ts', 'modules/core/src/gl-matrix/*.js'],
rules: {
'import/no-unresolved': 0,
'@typescript-eslint/no-unsafe-return': 0,
'@typescript-eslint/no-unsafe-assignment': 0,
'@typescript-eslint/no-unsafe-member-access': 0,
'@typescript-eslint/explicit-module-boundary-types': 0,
'@typescript-eslint/restrict-template-expressions': 0,
'@typescript-eslint/restrict-plus-operands': 0,
'max-params': 0,
'max-statements': 0,
complexity: 0,
eqeqeq: 0,
'no-eq-null': 0,
camelcase: 0,
'prefer-const': 0
}
},
{
files: ['examples/**/*.js'],
rules: {
'import/no-unresolved': 0
}
}
]
}
});