Skip to content

Commit f6affeb

Browse files
committed
Update @stylistic/eslint-plugin to v5.6.1
- Disabled `@stylistic/jsx-props-no-multi-spaces` as deprecated. Use `@stylistic/no-multi-spaces` instead.
1 parent c9cbf48 commit f6affeb

File tree

4 files changed

+24
-12
lines changed

4 files changed

+24
-12
lines changed

package-lock.json

Lines changed: 7 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
},
3636
"peerDependencies": {
3737
"@eslint-community/eslint-plugin-eslint-comments": "^4.5.0",
38-
"@stylistic/eslint-plugin": "^5.2.3",
38+
"@stylistic/eslint-plugin": "^5.6.1",
3939
"eslint": "^9.39.2",
4040
"eslint-import-resolver-typescript": "^3.10.1",
4141
"eslint-plugin-array-func": "^5.0.2",
@@ -76,7 +76,7 @@
7676
"@eslint-community/eslint-plugin-eslint-comments": "4.5.0",
7777
"@jest/globals": "~30.2.0",
7878
"@perfective/build": "~0.22.0",
79-
"@stylistic/eslint-plugin": "5.2.3",
79+
"@stylistic/eslint-plugin": "5.6.1",
8080
"@types/eslint": "^9.6.1",
8181
"@types/jest": "^30.0.0",
8282
"eslint": "9.39.2",

src/config/stylistic/index.adoc

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,8 @@ Use the '@stylistic/indent' rule instead.
117117
| Error
118118

119119
| `link:{stylistic-rules}/jsx-props-no-multi-spaces[@stylistic/jsx-props-no-multi-spaces]`
120-
| Warning
120+
| Off
121+
2+| Deprecated. Use `@stylistic/no-multi-spaces` instead.
121122

122123
| `link:{stylistic-rules}/jsx-quotes[@stylistic/jsx-quotes]`
123124
| Warning
@@ -152,6 +153,10 @@ Use the '@stylistic/indent' rule instead.
152153
| `link:{stylistic-rules}/lines-between-class-members[@stylistic/lines-between-class-members]`
153154
| Warning
154155

156+
| `link:{stylistic-rules}/list-style[@stylistic/list-style]`
157+
| Off
158+
2+| Experimental
159+
155160
| `link:{stylistic-rules}/max-len[@stylistic/max-len]`
156161
| Warning
157162

src/config/stylistic/stylistic-config.ts

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,8 @@ export function stylisticConfig(): Linter.Config {
109109
allowNamespace: false,
110110
ignore: [],
111111
}],
112-
'@stylistic/jsx-props-no-multi-spaces': 'warn',
112+
// Deprecated. Use `@stylistic/no-multi-spaces` instead.
113+
'@stylistic/jsx-props-no-multi-spaces': 'off',
113114
'@stylistic/jsx-quotes': ['warn', 'prefer-double'],
114115
'@stylistic/jsx-self-closing-comp': ['warn', {
115116
component: true,
@@ -182,6 +183,8 @@ export function stylisticConfig(): Linter.Config {
182183
exceptAfterSingleLine: true,
183184
exceptAfterOverload: true,
184185
}],
186+
// TODO: Enable once the rule is not experimental.
187+
'@stylistic/exp-list-style': 'off',
185188
'@stylistic/max-len': ['error', {
186189
code: 120,
187190
tabWidth: 4,
@@ -224,8 +227,11 @@ export function stylisticConfig(): Linter.Config {
224227
// Nested binary expressions may be hard to break down into named functions
225228
nestedBinaryExpressions: false,
226229
nestedConditionalExpressions: false,
227-
enforceForArrowConditionals: false,
228230
ternaryOperandBinaryExpressions: false,
231+
ignoredNodes: [
232+
// Replaces deprecated "enforceForArrowConditionals: false"
233+
'ArrowFunctionExpression[body.type=ConditionalExpression]',
234+
],
229235
}],
230236
'@stylistic/no-extra-semi': 'warn',
231237
'@stylistic/no-floating-decimal': 'warn',
@@ -263,6 +269,7 @@ export function stylisticConfig(): Linter.Config {
263269
}],
264270
'@stylistic/object-curly-spacing': ['warn', 'always', {
265271
arraysInObjects: true,
272+
emptyObjects: 'never',
266273
objectsInObjects: true,
267274
}],
268275
'@stylistic/object-property-newline': ['warn', {

0 commit comments

Comments
 (0)