-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy patheslint.config.js
More file actions
78 lines (77 loc) · 2.1 KB
/
eslint.config.js
File metadata and controls
78 lines (77 loc) · 2.1 KB
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
77
78
// eslint-disable-next-line import/extensions
const {defineConfig} = require('eslint/config');
const {javascriptConfig} = require('@ni/eslint-config-javascript');
const {browser, jasmine} = require('globals');
module.exports = defineConfig([{
ignores: [
'**/Builds/',
'**/ThirdParty/',
'**/dist/',
'**/deps/',
'ProgressiveWebApp/',
'Deno/',
]
}, {
files: ['**/*.js'],
languageOptions: {
sourceType: 'script',
globals: {
...browser
}
},
extends: javascriptConfig,
rules: {
'no-console': 'off',
'strict': ['error', 'function'],
'func-names': ['error', 'never'],
'max-len': 'off',
'@stylistic/object-curly-spacing': ['error', 'never'],
'@stylistic/one-var-declaration-per-line': 'off',
'one-var': 'off',
'@stylistic/quote-props': ['error', 'consistent-as-needed'],
'@stylistic/space-before-function-paren': ['error', 'always'],
'global-require': 'off',
'import/extensions': ['error', 'always'],
'import/no-dynamic-require': 'off',
'import/no-extraneous-dependencies': 'off',
'import/no-unresolved': 'off',
'lines-around-directive': 'off',
'max-classes-per-file': 'off',
'no-multi-assign': 'off',
'no-shadow': 'off',
'prefer-arrow-callback': 'off',
'prefer-const': 'off',
'prefer-destructuring': 'off',
'prefer-template': 'off',
'valid-typeof': 'off',
'no-lonely-if': 'off',
'require-await': 'off'
}
}, {
files: [
'WebAudio/WebAudio.gcomp/Support/**/*.js',
'VireoPatch/VireoPatch.gcomp/Support/**/*.js',
'Perspective/Perspective.gcomp/Support/**/*.js',
],
languageOptions: {
sourceType: 'module'
}
}, {
files: [
'IntegrationTest/**/*.js',
],
languageOptions: {
globals: {
...jasmine
}
}
}, {
files: [
'Map/Leaflet.gcomp/**/*.js',
],
languageOptions: {
globals: {
L: false
}
}
}]);