Skip to content

Commit 2065d6e

Browse files
fix(comma-dangle): use typescript version of rule
1 parent 25e66d8 commit 2065d6e

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

src/configs/typescript.ts

+1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ const baseConfig: Linter.Config = {
88

99
rules: {
1010
"camelcase": "off",
11+
"comma-dangle": "off",
1112
"indent": "off",
1213
"no-constant-condition": "off",
1314
"no-unused-expressions": "off",

src/plugins/typescript.ts

+10
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,16 @@ export const settings: Linter.Config = {
1212

1313
rules: {
1414
"@typescript-eslint/array-type": ["error", { default: "generic", readonly: "generic" }],
15+
"@typescript-eslint/comma-dangle": [
16+
"error",
17+
{
18+
arrays: "only-multiline",
19+
objects: "only-multiline",
20+
imports: "only-multiline",
21+
exports: "only-multiline",
22+
functions: "ignore",
23+
},
24+
],
1525
"@typescript-eslint/indent": ["error", 2],
1626
"@typescript-eslint/no-non-null-assertion": "off",
1727
// "node" plugin will handle this.

0 commit comments

Comments
 (0)