EsLint v9 (#154)

* Upgrade ESLint and related configurations to version 9

- Update ESLint to version 9.19.0
- Migrate ESLint configurations to flat config format
- Remove deprecated ESLint config files
- Update package dependencies and configurations
- Simplify ESLint setup across packages
- Remove unnecessary ESLint config blocks from package.json files
- Improved CI caching with Turborepo tasks
- Removed duplicate styles
This commit is contained in:
Giancarlo Buomprisco
2025-02-07 10:38:29 +07:00
committed by GitHub
parent e2f45cae49
commit 6f9cf22fa8
113 changed files with 1040 additions and 1284 deletions

View File

@@ -0,0 +1,3 @@
import eslintConfigBase from '@kit/eslint-config/base.js';
export default eslintConfigBase;

View File

@@ -24,13 +24,6 @@
"@types/react": "19.0.8",
"wp-types": "^4.67.0"
},
"eslintConfig": {
"root": true,
"extends": [
"@kit/eslint-config/base",
"@kit/eslint-config/react"
]
},
"typesVersions": {
"*": {
"*": [
@@ -38,4 +31,4 @@
]
}
}
}
}

View File

@@ -75,10 +75,7 @@ class WordpressClient implements CmsClient {
}
if (options?.tags) {
const allTags = [
...options.tags,
options.language ?? '',
].filter(Boolean);
const allTags = [...options.tags, options.language ?? ''].filter(Boolean);
const ids = await this.getTags({
slugs: allTags,