Skip to content

Commit 28bcee7

Browse files
Update ESLint and simplify config (#3724)
This does not change the rules of ESLint. It's just a little cosmetic fine-tuning.
1 parent 62c22d7 commit 28bcee7

File tree

4 files changed

+235
-239
lines changed

4 files changed

+235
-239
lines changed

CHANGELOG.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ planned for 2025-04-01
3131
### Updated
3232

3333
- [core] Update dependencies and formatting (#3693, #3717)
34+
- [core] Update ESLint and simplify config
3435

3536
### Fixed
3637

@@ -40,7 +41,7 @@ planned for 2025-04-01
4041
- [weather] Fix wrong weatherCondition name in openmeteo provider which lead to n/a icon (#3691)
4142
- [core] Fix wrong port in log message when starting server only (#3696)
4243
- [calendar] Fix NewYork event processed on system in Central timezone shows wrong time #3701
43-
- [weather/yr] The Yr weather provider is now able to recover from bad API resposes instead of freezing (#3296)
44+
- [weather/yr] The Yr weather provider is now able to recover from bad API responses instead of freezing (#3296)
4445

4546
## [2.30.0] - 2025-01-01
4647

eslint.config.mjs

+3-11
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,11 @@ import eslintPluginStylistic from "@stylistic/eslint-plugin";
66
import globals from "globals";
77

88
const config = [
9-
eslintPluginJs.configs.recommended,
109
eslintPluginImport.flatConfigs.recommended,
10+
eslintPluginJest.configs["flat/recommended"],
11+
eslintPluginJs.configs.recommended,
1112
eslintPluginPackageJson,
13+
eslintPluginStylistic.configs.all,
1214
{
1315
files: ["**/*.js"],
1416
languageOptions: {
@@ -24,13 +26,7 @@ const config = [
2426
moment: "readonly"
2527
}
2628
},
27-
plugins: {
28-
...eslintPluginStylistic.configs["all-flat"].plugins,
29-
...eslintPluginJest.configs["flat/recommended"].plugins
30-
},
3129
rules: {
32-
...eslintPluginStylistic.configs["all-flat"].rules,
33-
...eslintPluginJest.configs["flat/recommended"].rules,
3430
"@stylistic/array-element-newline": ["error", "consistent"],
3531
"@stylistic/arrow-parens": ["error", "always"],
3632
"@stylistic/brace-style": "off",
@@ -99,11 +95,7 @@ const config = [
9995
},
10096
sourceType: "module"
10197
},
102-
plugins: {
103-
...eslintPluginStylistic.configs["all-flat"].plugins
104-
},
10598
rules: {
106-
...eslintPluginStylistic.configs["all-flat"].rules,
10799
"@stylistic/array-element-newline": "off",
108100
"@stylistic/indent": ["error", "tab"],
109101
"@stylistic/padded-blocks": ["error", "never"],

0 commit comments

Comments
 (0)