-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy path.eslintrc.js
33 lines (33 loc) · 923 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 = {
"extends": "eslint:recommended",
"env": {
"node": true,
"browser": true,
"es6": true
},
"parserOptions": {
"ecmaVersion": 2018,
"sourceType": "module"
},
"rules": {
"linebreak-style":2,
"comma-dangle": ["error", "only-multiline"],
"comma-spacing": ["error", { "before": false, "after": true }],
"eol-last": ["error", "always"],
"indent": ["error", 4, { "MemberExpression": 1 }],
"no-multiple-empty-lines": ["error"],
"no-new-symbol": "error",
"no-trailing-spaces": ["error"],
"no-undef": ["error"],
"no-unused-vars": ["error"],
"object-curly-spacing": ["error", "always"],
"object-shorthand": "error",
"prefer-const": 2,
"quotes": ["error", "single"],
"semi": ["error", "always"],
"space-in-parens": ["error", "never"],
"strict": [2, "never"],
"no-console":"off",
"no-useless-escape":"off"
}
}