-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.cjs
43 lines (42 loc) · 1.16 KB
/
.eslintrc.cjs
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
/* eslint-disable no-unused-vars, no-multi-spaces */
const OFF = 0;
const WARNING = 1;
const ERROR = 2;
/* eslint-enable no-unused-vars, no-multi-spaces */
module.exports = {
env: {
amd: true,
// commonjs,
// es6: true,
// node: true,
},
extends: [
'./node_modules/eslint-config-airbnb-base/rules/best-practices',
'./node_modules/eslint-config-airbnb-base/rules/errors',
'./node_modules/eslint-config-airbnb-base/rules/node',
'./node_modules/eslint-config-airbnb-base/rules/style',
'./node_modules/eslint-config-airbnb-base/rules/variables',
'./node_modules/eslint-config-airbnb-base/rules/es6',
'./node_modules/eslint-config-airbnb-base/rules/strict',
].map(require.resolve),
parserOptions: {
ecmaVersion: 'latest',
sourceType: 'commonjs',
},
globals: {},
rules: {
'default-case': OFF,
'function-paren-newline': OFF,
'max-len': OFF,
'no-param-reassign': OFF,
'no-plusplus': OFF,
'no-underscore-dangle': OFF,
'no-use-before-define': OFF,
'object-curly-newline': [ERROR, {
ImportDeclaration: {
multiline: true,
minProperties: 5,
},
}],
},
};