-
-
Notifications
You must be signed in to change notification settings - Fork 255
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unexpected top-level property "name" #308
Comments
Sorry for this, I'll confirm which version of ESLint add this support then... I thought all eslint@9 was fine. |
v10.1.1 has just been released. |
JounQin
added a commit
that referenced
this issue
Mar 7, 2025
renovate bot
added a commit
to andrei-picus-tink/auto-renovate
that referenced
this issue
Mar 8, 2025
| datasource | package | from | to | | ---------- | ---------------------- | ------ | ------ | | npm | eslint-config-prettier | 10.0.1 | 10.1.1 | ## [v10.1.1](https://github.com/prettier/eslint-config-prettier/blob/HEAD/CHANGELOG.md#1011) ##### Patch Changes - [#309](prettier/eslint-config-prettier#309) [`eb56a5e`](prettier/eslint-config-prettier@eb56a5e) Thanks [@JounQin](https://github.com/JounQin)! - fix: separate the `/flat` entry for compatibility For flat config users, the previous `"eslint-config-prettier"` entry still works, but `"eslint-config-prettier/flat"` adds a new `name` property for [config-inspector](https://eslint.org/blog/2024/04/eslint-config-inspector/), we just can't add it for the default entry for compatibility. See also [#308](prettier/eslint-config-prettier#308) ```ts // before import eslintConfigPrettier from "eslint-config-prettier"; // after import eslintConfigPrettier from "eslint-config-prettier/flat"; ``` ## [v10.1.0](https://github.com/prettier/eslint-config-prettier/blob/HEAD/CHANGELOG.md#1010) ##### Minor Changes - [#306](prettier/eslint-config-prettier#306) [`56e2e34`](prettier/eslint-config-prettier@56e2e34) Thanks [@JounQin](https://github.com/JounQin)! - feat: migrate to exports field ## [v10.0.3](https://github.com/prettier/eslint-config-prettier/blob/HEAD/CHANGELOG.md#1003) ##### Patch Changes - [#294](prettier/eslint-config-prettier#294) [`8dbbd6d`](prettier/eslint-config-prettier@8dbbd6d) Thanks [@FloEdelmann](https://github.com/FloEdelmann)! - feat: add name to config - [#280](prettier/eslint-config-prettier#280) [`cba5737`](prettier/eslint-config-prettier@cba5737) Thanks [@zanminkian](https://github.com/zanminkian)! - feat: add declaration file ## [v10.0.2](https://github.com/prettier/eslint-config-prettier/blob/HEAD/CHANGELOG.md#1002) ##### Patch Changes - [#299](prettier/eslint-config-prettier#299) [`e750edc`](prettier/eslint-config-prettier@e750edc) Thanks [@Fdawgs](https://github.com/Fdawgs)! - chore(package): explicitly declare js module type
renovate bot
added a commit
to andrei-picus-tink/auto-renovate
that referenced
this issue
Mar 8, 2025
| datasource | package | from | to | | ---------- | ---------------------- | ------ | ------ | | npm | eslint-config-prettier | 10.0.1 | 10.1.1 | ## [v10.1.1](https://github.com/prettier/eslint-config-prettier/blob/HEAD/CHANGELOG.md#1011) ##### Patch Changes - [#309](prettier/eslint-config-prettier#309) [`eb56a5e`](prettier/eslint-config-prettier@eb56a5e) Thanks [@JounQin](https://github.com/JounQin)! - fix: separate the `/flat` entry for compatibility For flat config users, the previous `"eslint-config-prettier"` entry still works, but `"eslint-config-prettier/flat"` adds a new `name` property for [config-inspector](https://eslint.org/blog/2024/04/eslint-config-inspector/), we just can't add it for the default entry for compatibility. See also [#308](prettier/eslint-config-prettier#308) ```ts // before import eslintConfigPrettier from "eslint-config-prettier"; // after import eslintConfigPrettier from "eslint-config-prettier/flat"; ``` ## [v10.1.0](https://github.com/prettier/eslint-config-prettier/blob/HEAD/CHANGELOG.md#1010) ##### Minor Changes - [#306](prettier/eslint-config-prettier#306) [`56e2e34`](prettier/eslint-config-prettier@56e2e34) Thanks [@JounQin](https://github.com/JounQin)! - feat: migrate to exports field ## [v10.0.3](https://github.com/prettier/eslint-config-prettier/blob/HEAD/CHANGELOG.md#1003) ##### Patch Changes - [#294](prettier/eslint-config-prettier#294) [`8dbbd6d`](prettier/eslint-config-prettier@8dbbd6d) Thanks [@FloEdelmann](https://github.com/FloEdelmann)! - feat: add name to config - [#280](prettier/eslint-config-prettier#280) [`cba5737`](prettier/eslint-config-prettier@cba5737) Thanks [@zanminkian](https://github.com/zanminkian)! - feat: add declaration file ## [v10.0.2](https://github.com/prettier/eslint-config-prettier/blob/HEAD/CHANGELOG.md#1002) ##### Patch Changes - [#299](prettier/eslint-config-prettier#299) [`e750edc`](prettier/eslint-config-prettier@e750edc) Thanks [@Fdawgs](https://github.com/Fdawgs)! - chore(package): explicitly declare js module type
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This is a regression between 10.0.2 and 10.0.3.
`
ESLint: 9.21.0
Error: ESLint configuration in » eslint-config-prettier is invalid:
- Unexpected top-level property "name".
Referenced from:
at ConfigValidator.validateConfigSchema (file:///path/to/project/node_modules/@eslint/eslintrc/lib/shared/config-validator.js:330:19)
at ConfigArrayFactory._normalizeConfigData (file:///path/to/project/node_modules/@eslint/eslintrc/lib/config-array-factory.js:678:19)
at ConfigArrayFactory._loadConfigData (file:///path/to/project/node_modules/@eslint/eslintrc/lib/config-array-factory.js:643:21)
at ConfigArrayFactory._loadExtendedShareableConfig (file:///path/to/project/node_modules/@eslint/eslintrc/lib/config-array-factory.js:948:21)
at ConfigArrayFactory._loadExtends (file:///path/to/project/node_modules/@eslint/eslintrc/lib/config-array-factory.js:816:25)
at ConfigArrayFactory._normalizeObjectConfigDataBody (file:///path/to/project/node_modules/@eslint/eslintrc/lib/config-array-factory.js:754:25)
at _normalizeObjectConfigDataBody.next ()
at ConfigArrayFactory._normalizeObjectConfigData (file:///path/to/project/node_modules/@eslint/eslintrc/lib/config-array-factory.js:699:20)
at _normalizeObjectConfigData.next ()
at ConfigArrayFactory.create (file:///path/to/project/node_modules/@eslint/eslintrc/lib/config-array-factory.js:492:16)
`
node version v22.14.0
full dev dependencies
"devDependencies": { "@eslint/eslintrc": "3.3.0", "@eslint/js": "9.21.0", "@typescript-eslint/eslint-plugin": "8.26.0", "@typescript-eslint/parser": "8.26.0", "eslint": "9.21.0", "eslint-config-prettier": "10.0.2", "eslint-plugin-cypress": "4.1.0", "eslint-plugin-no-only-tests": "3.3.0", "eslint-plugin-prettier": "5.2.3", "prettier": "3.5.3", "typescript": "5.8.2" },
The text was updated successfully, but these errors were encountered: