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
+4
View File
@@ -1,9 +1,13 @@
{
"type": "module",
"devDependencies": {
"@stylistic/eslint-plugin": "^4.4.0",
"eslint": "^9.27.0",
"eslint-plugin-brace-rules": "^0.1.6"
},
"engines": {
"node": ">=20.0.0"
},
"scripts": {
"lint": "eslint",
"lint:fix": "eslint --fix"