-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy path.eslintrc.js
53 lines (53 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
49
50
51
52
53
module.exports = {
"env": {
"browser": true,
"node": true,
"es6": true
},
"parser": "babel-eslint",
"plugins": [],
"extends": [
"airbnb-base"
],
"rules": {
'no-console': process.env.NODE_ENV === 'production' ? 'error' : 'off',
'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off',
// maximum line length
"max-len": [1, {
code: 80,
tabWidth: 2,
ignoreComments: true,
ignoreUrls: true,
ignoreTemplateLiterals: true,
ignoreRegExpLiterals: true
}],
"no-return-await": "off",
"no-plusplus":"off",
"no-unused-expressions":"off",
"comma-dangle": ["error", {
"arrays": "never",
"objects": "ignore",
"imports": "never",
"exports": "never",
"functions": "never"
}],
"import/no-extraneous-dependencies": ["error", {
"devDependencies": true,
"optionalDependencies": false,
"peerDependencies": false
}],
"global-require": [0],
"func-names": [0],
"import/no-unresolved":[0],
"no-undef":[0],
"class-methods-use-this":[0],
"implicit-arrow-linebreak": [0, 'brace-style'],
"import/prefer-default-export": [0],
"arrow-parens": 0,
"no-nested-ternary": 0,
"consistent-return":[0],
"linebreak-style": ["off", "windows"],
"object-property-newline": "off",
"no-underscore-dangle": "off"
}
}