-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy path.eslintrc.js
35 lines (34 loc) · 1.16 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
module.exports = {
"extends": [
"eslint:recommended",
"./node_modules/eslint-config-google/index.js",
],
"parserOptions": {
"impliedStrict": true,
"ecmaVersion": 8,
"sourceType": "module",
"module": "amd",
"ecmaFeatures": {
"jsx": true
}
},
"env": {
node: true,
es6: true,
},
"rules": {
"no-console": ["off"],
"padded-blocks": "off", // If On, blocks must be padded by blank lines.
"block-spacing": ["error", "always"], // At one-line blocks, the space must exists after/before { and }.
"spaced-comment": "off", // If On, commens have start with space (but IntelliJ's type definition style is without spaces)
"max-len": ["off"],
"indent": ["error", 4, { "SwitchCase": 1 }],
"no-multi-spaces": ["error", { "ignoreEOLComments": true }],
"semi": ["error", "always"],
"brace-style": ["error", "1tbs", { "allowSingleLine": true }],
// "no-multi-spaces": ["error", {"ignoreEOLComments":true, "exceptions": { "Property": true }}],
},
// "globals": {
// "Promise": false
// }
};