Skip to content

Commit 23c4bf4

Browse files
committed
Bump eslint version to 7.11
1 parent 0714a11 commit 23c4bf4

File tree

4 files changed

+515
-304
lines changed

4 files changed

+515
-304
lines changed

.eslintrc

+8-3
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
},
1616

1717
"parserOptions": {
18-
"ecmaVersion": 9,
18+
"ecmaVersion": 2020,
1919
"sourceType": "module"
2020
},
2121

@@ -45,7 +45,13 @@
4545
// Style
4646
"array-bracket-spacing": "error",
4747
"block-spacing": ["error", "always"],
48-
"comma-dangle": ["error", "always-multiline"],
48+
"comma-dangle": ["error", {
49+
"arrays": "only-multiline",
50+
"objects": "only-multiline",
51+
"imports": "only-multiline",
52+
"exports": "only-multiline",
53+
"functions": "never"
54+
}],
4955
"comma-spacing": ["error", { "before": false, "after": true }],
5056
"comma-style": ["error", "last"],
5157
"computed-property-spacing": ["error", "never"],
@@ -94,6 +100,5 @@
94100
"prefer-const": ["error", { "destructuring": "all" }],
95101
"prefer-template": "error",
96102
"template-curly-spacing": "error",
97-
98103
}
99104
}

0 commit comments

Comments
 (0)