-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.eslintrc.js
33 lines (27 loc) · 842 Bytes
/
.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
module.exports = {
"env": {
"browser": true,
"node": true,
"es6": true
},
"globals": {
"chrome": "readonly"
},
"parserOptions": {
"ecmaVersion": 8,
"sourceType": "module"
},
"extends": ["eslint:recommended", "prettier"],
"rules": {
"indent": ["error", 2, { "SwitchCase": 1 }],
"linebreak-style": ["error", "unix"],
"max-len": ["error", { "code": 100 }],
"no-console": ["error", { "allow": ["info", "warn", "error"] }],
"no-multi-spaces": ["error", { "ignoreEOLComments": true }],
"no-trailing-spaces": ["error", { "skipBlankLines": true, "ignoreComments": true }],
"no-underscore-dangle": "off",
"quote-props": ["error", "as-needed"],
"quotes": ["error", "double", {"avoidEscape": true, "allowTemplateLiterals": true}],
"semi": ["error", "always"]
}
};