-
Notifications
You must be signed in to change notification settings - Fork 9
/
.eslintrc.js
48 lines (48 loc) · 1.38 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
43
44
45
46
47
48
module.exports = {
extends: '@ni/eslint-config-javascript',
env: {
browser: true,
es6: true
},
parserOptions: {
sourceType: 'script',
ecmaVersion: 2018
},
rules: {
'no-console': 'off',
'strict': ['error', 'function'],
'func-names': ['error', 'never'],
'max-len': 'off',
'object-curly-spacing': ['error', 'never'],
'one-var-declaration-per-line': 'off',
'one-var': 'off',
'quote-props': ['error', 'consistent-as-needed'],
'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-return-await': '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'
},
overrides: [{
files: ['.eslintrc.js'],
env: {
node: true
},
rules: {
strict: ['error', 'never']
}
}]
};