Use stylistic for deprecated eslint rules

During the eslint 8 cycle the formatting rules were split out [1],
deprecating the corresponding rules in core.

This replaces all rules that where moved to @stylistic/eslint-plugin [2]
and accounts for the difference in the indenting rule behaviour.

To allow the pre-commit import hack to continue to work with the
stylisitc plugin for a recent nodejs version to be used.

[1] https://eslint.org/blog/2023/10/deprecating-formatting-rules/
[2] https://eslint.style/packages/default

Signed-off-by: Ralph Sennhauser <ralph.sennhauser@gmail.com>
This commit is contained in:
Ralph Sennhauser
2025-05-30 21:33:49 +02:00
parent ff03dd45c4
commit 0ce889ca6d
36 changed files with 114 additions and 102 deletions
+2
View File
@@ -76,9 +76,11 @@ repos:
rev: v9.27.0
hooks:
- id: eslint
language_version: 22.14.0
additional_dependencies:
- eslint@9.27.0
- eslint-plugin-brace-rules@0.1.6
- "@stylistic/eslint-plugin@4.4.0"
args:
- --max-warnings=0
- --no-warn-ignored