-
-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy path.eslintrc.js
More file actions
26 lines (26 loc) · 664 Bytes
/
.eslintrc.js
File metadata and controls
26 lines (26 loc) · 664 Bytes
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
module.exports = {
extends: [
'airbnb-base',
],
parserOptions: {
ecmaVersion: 2020,
},
env: {
browser: true,
node: true,
es6: true,
},
globals: {
Nova: true,
},
rules: {
indent: ['error', 4, { SwitchCase: 1 }],
'func-names': ['error', 'as-needed'],
'no-console': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
'no-debugger': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
'no-plusplus': ['error', {
allowForLoopAfterthoughts: true,
}],
'no-return-assign': ['error', 'except-parens'],
},
};