Skip to content

Commit

Permalink
Update ESLint and simplify config (#3724)
Browse files Browse the repository at this point in the history
This does not change the rules of ESLint. It's just a little cosmetic
fine-tuning.
  • Loading branch information
KristjanESPERANTO authored Feb 22, 2025
1 parent 62c22d7 commit 28bcee7
Show file tree
Hide file tree
Showing 4 changed files with 235 additions and 239 deletions.
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ planned for 2025-04-01
### Updated

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

### Fixed

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

## [2.30.0] - 2025-01-01

Expand Down
14 changes: 3 additions & 11 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,11 @@ import eslintPluginStylistic from "@stylistic/eslint-plugin";
import globals from "globals";

const config = [
eslintPluginJs.configs.recommended,
eslintPluginImport.flatConfigs.recommended,
eslintPluginJest.configs["flat/recommended"],
eslintPluginJs.configs.recommended,
eslintPluginPackageJson,
eslintPluginStylistic.configs.all,
{
files: ["**/*.js"],
languageOptions: {
Expand All @@ -24,13 +26,7 @@ const config = [
moment: "readonly"
}
},
plugins: {
...eslintPluginStylistic.configs["all-flat"].plugins,
...eslintPluginJest.configs["flat/recommended"].plugins
},
rules: {
...eslintPluginStylistic.configs["all-flat"].rules,
...eslintPluginJest.configs["flat/recommended"].rules,
"@stylistic/array-element-newline": ["error", "consistent"],
"@stylistic/arrow-parens": ["error", "always"],
"@stylistic/brace-style": "off",
Expand Down Expand Up @@ -99,11 +95,7 @@ const config = [
},
sourceType: "module"
},
plugins: {
...eslintPluginStylistic.configs["all-flat"].plugins
},
rules: {
...eslintPluginStylistic.configs["all-flat"].rules,
"@stylistic/array-element-newline": "off",
"@stylistic/indent": ["error", "tab"],
"@stylistic/padded-blocks": ["error", "never"],
Expand Down
Loading

0 comments on commit 28bcee7

Please sign in to comment.