forked from jsdf/only-if-changed-webpack-plugin
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.eslintrc.js
41 lines (41 loc) · 967 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
34
35
36
37
38
39
40
41
module.exports = {
extends: "eslint:recommended",
parserOptions: {
ecmaVersion: 6,
sourceType: "module",
},
env: {
node: true,
},
rules: {
"no-console": 0,
// style
"semi": 2,
"no-extra-semi": 2,
"no-multi-spaces": 2,
"array-bracket-spacing": 2,
"block-spacing": 2,
"comma-spacing": 2,
"comma-dangle": [2, "always-multiline"],
"computed-property-spacing": 2,
"eol-last": 2,
"indent": [2, 2],
"keyword-spacing": 2,
"linebreak-style": 2,
"no-spaced-func": 2,
"no-trailing-spaces": 2,
"object-curly-spacing": 2,
"quotes": [2, "single", "avoid-escape"],
"semi": 2,
"semi-spacing": 2,
"space-before-blocks": 2,
"space-before-function-paren": [2, "never"],
"space-in-parens": 2,
"space-infix-ops": 2,
"space-unary-ops": 2,
"arrow-spacing": 2,
"generator-star-spacing": 2,
"template-curly-spacing": 2,
"yield-star-spacing": 2,
}
};