Skip to content

Commit 3174065

Browse files
committed
chore: eslint config enhancements
1 parent 0f7933d commit 3174065

File tree

3 files changed

+9
-6
lines changed

3 files changed

+9
-6
lines changed

eslint.config.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ export default tseslint.config({
9090
after: true
9191
}],
9292
"@stylistic/comma-style": ["error", "last"],
93-
"@stylistic/comma-dangle": ["error", "never"],
93+
"@stylistic/comma-dangle": ["warn", "never"],
9494
"no-var": ["error"],
9595
"import/order": ["error", {
9696
groups: ["builtin", "external", "internal", "parent", "sibling", "index", "type", "object", "unknown"],
@@ -142,7 +142,8 @@ export default tseslint.config({
142142
{blankLine: "always", prev: "*", next: "method"}
143143
]
144144
}],
145-
"@stylistic/no-trailing-spaces": ["warn"]
145+
"@stylistic/no-trailing-spaces": ["warn"],
146+
"@stylistic/no-multi-spaces": ["warn"]
146147
}
147148
}, {
148149
files: ["**/**.{,c,m}ts"],

templates/electron-typescript-react/eslint.config.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ export default tseslint.config({
7070
after: true
7171
}],
7272
"@stylistic/comma-style": ["error", "last"],
73-
"@stylistic/comma-dangle": ["error", "never"],
73+
"@stylistic/comma-dangle": ["warn", "never"],
7474
"no-var": ["error"],
7575
"import/order": ["error", {
7676
groups: ["builtin", "external", "internal", "parent", "sibling", "index", "type", "object", "unknown"],
@@ -119,7 +119,8 @@ export default tseslint.config({
119119
{blankLine: "always", prev: "*", next: "method"}
120120
]
121121
}],
122-
"@stylistic/no-trailing-spaces": ["warn"]
122+
"@stylistic/no-trailing-spaces": ["warn"],
123+
"@stylistic/no-multi-spaces": ["warn"]
123124
}
124125
}, {
125126
files: ["**/**.{ts,tsx}"],

templates/node-typescript/eslint.config.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ export default tseslint.config({
7272
after: true
7373
}],
7474
"@stylistic/comma-style": ["error", "last"],
75-
"@stylistic/comma-dangle": ["error", "never"],
75+
"@stylistic/comma-dangle": ["warn", "never"],
7676
"no-var": ["error"],
7777
"import/order": ["error", {
7878
groups: ["builtin", "external", "internal", "parent", "sibling", "index", "type", "object", "unknown"],
@@ -122,7 +122,8 @@ export default tseslint.config({
122122
{blankLine: "always", prev: "*", next: "method"}
123123
]
124124
}],
125-
"@stylistic/no-trailing-spaces": ["warn"]
125+
"@stylistic/no-trailing-spaces": ["warn"],
126+
"@stylistic/no-multi-spaces": ["warn"]
126127
}
127128
}, {
128129
files: ["**/**.{,c,m}ts"],

0 commit comments

Comments
 (0)