feat(linter): support eslint-config-prettier v10 (#30480)
Add support for `eslint-config-prettier` v10. ## Current Behavior ## Expected Behavior ## Related Issue(s) Fixes #30145
This commit is contained in:
parent
9dd4766059
commit
4bd64770a5
@ -1727,6 +1727,16 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"migrations": {
|
"migrations": {
|
||||||
|
"/nx-api/eslint/migrations/20.7.0-package-updates": {
|
||||||
|
"description": "",
|
||||||
|
"file": "generated/packages/eslint/migrations/20.7.0-package-updates.json",
|
||||||
|
"hidden": false,
|
||||||
|
"name": "20.7.0-package-updates",
|
||||||
|
"version": "20.7.0-beta.4",
|
||||||
|
"originalFilePath": "/packages/eslint",
|
||||||
|
"path": "/nx-api/eslint/migrations/20.7.0-package-updates",
|
||||||
|
"type": "migration"
|
||||||
|
},
|
||||||
"/nx-api/eslint/migrations/20.4.0-typescript-eslint-package-updates": {
|
"/nx-api/eslint/migrations/20.4.0-typescript-eslint-package-updates": {
|
||||||
"description": "",
|
"description": "",
|
||||||
"file": "generated/packages/eslint/migrations/20.4.0-typescript-eslint-package-updates.json",
|
"file": "generated/packages/eslint/migrations/20.4.0-typescript-eslint-package-updates.json",
|
||||||
|
|||||||
@ -1715,6 +1715,16 @@
|
|||||||
}
|
}
|
||||||
],
|
],
|
||||||
"migrations": [
|
"migrations": [
|
||||||
|
{
|
||||||
|
"description": "",
|
||||||
|
"file": "generated/packages/eslint/migrations/20.7.0-package-updates.json",
|
||||||
|
"hidden": false,
|
||||||
|
"name": "20.7.0-package-updates",
|
||||||
|
"version": "20.7.0-beta.4",
|
||||||
|
"originalFilePath": "/packages/eslint",
|
||||||
|
"path": "eslint/migrations/20.7.0-package-updates",
|
||||||
|
"type": "migration"
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"description": "",
|
"description": "",
|
||||||
"file": "generated/packages/eslint/migrations/20.4.0-typescript-eslint-package-updates.json",
|
"file": "generated/packages/eslint/migrations/20.4.0-typescript-eslint-package-updates.json",
|
||||||
|
|||||||
@ -0,0 +1,12 @@
|
|||||||
|
{
|
||||||
|
"name": "20.7.0-package-updates",
|
||||||
|
"version": "20.7.0-beta.4",
|
||||||
|
"packages": { "eslint-config-prettier": { "version": "^10.0.0" } },
|
||||||
|
"aliases": [],
|
||||||
|
"description": "",
|
||||||
|
"hidden": false,
|
||||||
|
"implementation": "",
|
||||||
|
"path": "/packages/eslint",
|
||||||
|
"schema": null,
|
||||||
|
"type": "migration"
|
||||||
|
}
|
||||||
@ -189,7 +189,7 @@
|
|||||||
"esbuild": "0.25.0",
|
"esbuild": "0.25.0",
|
||||||
"eslint": "8.57.0",
|
"eslint": "8.57.0",
|
||||||
"eslint-config-next": "14.2.16",
|
"eslint-config-next": "14.2.16",
|
||||||
"eslint-config-prettier": "9.1.0",
|
"eslint-config-prettier": "^10.0.0",
|
||||||
"eslint-plugin-cypress": "2.14.0",
|
"eslint-plugin-cypress": "2.14.0",
|
||||||
"eslint-plugin-import": "2.31.0",
|
"eslint-plugin-import": "2.31.0",
|
||||||
"eslint-plugin-jsx-a11y": "6.10.1",
|
"eslint-plugin-jsx-a11y": "6.10.1",
|
||||||
|
|||||||
@ -36,7 +36,6 @@
|
|||||||
"typescript",
|
"typescript",
|
||||||
// Installed to workspace by plugins
|
// Installed to workspace by plugins
|
||||||
"@typescript-eslint/parser",
|
"@typescript-eslint/parser",
|
||||||
"eslint-config-prettier",
|
|
||||||
"@angular-eslint/eslint-plugin",
|
"@angular-eslint/eslint-plugin",
|
||||||
"angular-eslint",
|
"angular-eslint",
|
||||||
"typescript-eslint",
|
"typescript-eslint",
|
||||||
|
|||||||
@ -26,7 +26,7 @@
|
|||||||
"homepage": "https://nx.dev",
|
"homepage": "https://nx.dev",
|
||||||
"peerDependencies": {
|
"peerDependencies": {
|
||||||
"@typescript-eslint/parser": "^6.13.2 || ^7.0.0 || ^8.0.0",
|
"@typescript-eslint/parser": "^6.13.2 || ^7.0.0 || ^8.0.0",
|
||||||
"eslint-config-prettier": "^9.0.0"
|
"eslint-config-prettier": "^10.0.0"
|
||||||
},
|
},
|
||||||
"peerDependenciesMeta": {
|
"peerDependenciesMeta": {
|
||||||
"eslint-config-prettier": {
|
"eslint-config-prettier": {
|
||||||
|
|||||||
@ -182,6 +182,14 @@
|
|||||||
"alwaysAddToPackageJson": false
|
"alwaysAddToPackageJson": false
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
"20.7.0": {
|
||||||
|
"version": "20.7.0-beta.4",
|
||||||
|
"packages": {
|
||||||
|
"eslint-config-prettier": {
|
||||||
|
"version": "^10.0.0"
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -69,7 +69,7 @@ describe('convert-to-flat-config generator', () => {
|
|||||||
"@nx/eslint": "0.0.1",
|
"@nx/eslint": "0.0.1",
|
||||||
"@nx/eslint-plugin": "0.0.1",
|
"@nx/eslint-plugin": "0.0.1",
|
||||||
"eslint": "^9.8.0",
|
"eslint": "^9.8.0",
|
||||||
"eslint-config-prettier": "^9.0.0",
|
"eslint-config-prettier": "^10.0.0",
|
||||||
"typescript-eslint": "^8.19.0"
|
"typescript-eslint": "^8.19.0"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -682,7 +682,7 @@ describe('convert-to-flat-config generator', () => {
|
|||||||
"@nx/eslint": "0.0.1",
|
"@nx/eslint": "0.0.1",
|
||||||
"@nx/eslint-plugin": "0.0.1",
|
"@nx/eslint-plugin": "0.0.1",
|
||||||
"eslint": "^9.8.0",
|
"eslint": "^9.8.0",
|
||||||
"eslint-config-prettier": "^9.0.0",
|
"eslint-config-prettier": "^10.0.0",
|
||||||
"typescript-eslint": "^8.19.0"
|
"typescript-eslint": "^8.19.0"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -2,7 +2,7 @@ export const nxVersion = require('../../package.json').version;
|
|||||||
|
|
||||||
export const eslintVersion = '~8.57.0';
|
export const eslintVersion = '~8.57.0';
|
||||||
export const eslintrcVersion = '^2.1.1';
|
export const eslintrcVersion = '^2.1.1';
|
||||||
export const eslintConfigPrettierVersion = '^9.0.0';
|
export const eslintConfigPrettierVersion = '^10.0.0';
|
||||||
export const typescriptESLintVersion = '^7.16.0';
|
export const typescriptESLintVersion = '^7.16.0';
|
||||||
export const jsoncEslintParserVersion = '^2.1.0';
|
export const jsoncEslintParserVersion = '^2.1.0';
|
||||||
|
|
||||||
|
|||||||
@ -181,7 +181,7 @@ exports[`library should add vue, vite and vitest to package.json 1`] = `
|
|||||||
"@vue/eslint-config-typescript": "^11.0.3",
|
"@vue/eslint-config-typescript": "^11.0.3",
|
||||||
"@vue/test-utils": "^2.4.1",
|
"@vue/test-utils": "^2.4.1",
|
||||||
"eslint": "~8.57.0",
|
"eslint": "~8.57.0",
|
||||||
"eslint-config-prettier": "^9.0.0",
|
"eslint-config-prettier": "^10.0.0",
|
||||||
"eslint-plugin-vue": "^9.16.1",
|
"eslint-plugin-vue": "^9.16.1",
|
||||||
"jiti": "2.4.2",
|
"jiti": "2.4.2",
|
||||||
"jsdom": "~22.1.0",
|
"jsdom": "~22.1.0",
|
||||||
|
|||||||
420
pnpm-lock.yaml
generated
420
pnpm-lock.yaml
generated
File diff suppressed because it is too large
Load Diff
Loading…
x
Reference in New Issue
Block a user