-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.eslintrc.js
More file actions
50 lines (40 loc) · 1.27 KB
/
.eslintrc.js
File metadata and controls
50 lines (40 loc) · 1.27 KB
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
module.exports = {
"extends": [
"airbnb-base"
],
"globals": {
"window": true,
"document": true
},
"rules": {
// babel inserts `'use strict';` for us
"strict": "off",
"import/no-extraneous-dependencies": "off",
"import/no-unresolved": "off",
"import/prefer-default-export": "off",
// this option sets a specific tab width for your code
// https://github.com/eslint/eslint/blob/master/docs/rules/indent.md
"indent": [2, 4, { "SwitchCase": 1, "VariableDeclarator": 1 }],
// increase maximum length of line
"max-len": [2, 150, { "ignoreUrls": true, "ignoreComments": false }],
"no-param-reassign": "off",
"object-shorthand": "off",
"no-underscore-dangle": "off",
// temporary disabled, there are too many files with mixed linebreaks
// enable when fixed
"linebreak-style": "off",
"no-mixed-operators": "off",
// vetted on by the team (29 Aug 2016)
"operator-assignment": "off",
// vetted on by the team (30 Aug 2016)
"no-continue": "off"
},
// "plugins": ["./.eslintrc-es5.js"],
"environments": {
"es5": {
"parserOptions": {
"ecmaVersion": 5,
}
},
},
}