-
Notifications
You must be signed in to change notification settings - Fork 1
/
.eslintrc.js
42 lines (42 loc) · 983 Bytes
/
.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 = {
extends: '@ni/eslint-config-javascript',
rules: {
'import/extensions': 'off',
'max-classes-per-file': 'off',
'space-before-function-paren': ['error', 'always']
},
overrides: [
{
files: ['source/*.js'],
parserOptions: {
sourceType: 'module',
ecmaVersion: 2020
},
env: {
browser: true
}
},
{
files: ['example/**/*.js'],
rules: {
'no-console': 'off',
}
},
{
files: ['example/node/*.js'],
env: {
node: true
}
},
{
files: ['source/utility/*.js'],
globals: {
Module: false
},
parserOptions: {
sourceType: 'module',
ecmaVersion: 2020
}
}
]
};