-
Notifications
You must be signed in to change notification settings - Fork 7
/
.eslintrc.js
62 lines (62 loc) · 1.62 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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
module.exports = {
extends: ['airbnb-base/legacy', 'prettier'],
plugins: ['prettier'],
rules: {
'prefer-const': ['error'],
'comma-dangle': ['error', 'never'],
'no-underscore-dangle': ['off'],
'func-names': ['off'],
'no-plusplus': ['error', { allowForLoopAfterthoughts: true }],
'vars-on-top': 'off',
'global-require': 'off',
'no-param-reassign': 'off',
'no-use-before-define': ['error', { functions: false }],
'linebreak-style': ['off'],
'prettier/prettier': [
'error',
{
printWidth: 80,
singleQuote: true,
tabWidth: 4,
trailingComma: 'none'
}
]
},
overrides: [
{
'files': ['src/main/resources/assets/js/push.js'],
'rules': {
'no-console': 'off'
}
},
{
'files': ['src/main/resources/assets/js/bs.js'],
'rules': {
'no-use-before-define': 'off',
'no-undef': 'off',
'no-restricted-syntax': 'off',
'no-loop-func': 'off'
}
},
{
'files': ['src/main/resources/assets/js/libs/background-sync/sync-helper.js'],
'rules': {
'no-undef': 'off'
}
}
],
env: {
node: true,
es6: true
},
globals: {
Java: false,
resolve: false,
log: true,
env: true,
app: true
},
parserOptions: {
sourceType: "module",
}
};