Skip to content
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

Support eslint@9, or am I missing something? #454

Closed
phun-ky opened this issue Oct 11, 2024 · 1 comment
Closed

Support eslint@9, or am I missing something? #454

phun-ky opened this issue Oct 11, 2024 · 1 comment

Comments

@phun-ky
Copy link

phun-ky commented Oct 11, 2024

I've upgraded to eslint@v9 with all of my plugins and I get this:

prettier-eslint [ERROR]: There was trouble creating the ESLint CLIEngine.
prettier-eslint-cli [ERROR]: There was an error formatting "/workspace/my_repo/src/components/page-sections/NavBar/components/TabsBar/index.tsx": 
    Error: Invalid Options:
    - Unknown options: ignorePath, resolvePluginsRelativeTo, rulePaths, useEslintrc
    - 'resolvePluginsRelativeTo' has been removed.
    - 'ignorePath' has been removed.
    - 'rulePaths' has been removed. Please define your rules using plugins.
        at processOptions (/workspace/my_repo/node_modules/.pnpm/[email protected][email protected]/node_modules/eslint/lib/eslint/eslint-helpers.js:847:15)
        at new ESLint (/workspace/my_repo/node_modules/.pnpm/[email protected][email protected]/node_modules/eslint/lib/eslint/eslint.js:447:34)
        at getESLint (/workspace/my_repo/node_modules/.pnpm/[email protected]/node_modules/prettier-eslint/dist/utils.js:337:12)
        at getESLintConfig (/workspace/my_repo/node_modules/.pnpm/[email protected]/node_modules/prettier-eslint/dist/index.js:268:39)
        at analyze (/workspace/my_repo/node_modules/.pnpm/[email protected]/node_modules/prettier-eslint/dist/index.js:80:77)
        at format (/workspace/my_repo/node_modules/.pnpm/[email protected]/node_modules/prettier-eslint/dist/index.js:50:13)
        at /workspace/my_repo/node_modules/.pnpm/[email protected][email protected]/node_modules/prettier-eslint-cli/dist/format-files.js:214:60
        at doInnerSub (/workspace/my_repo/node_modules/.pnpm/[email protected]/node_modules/rxjs/dist/cjs/internal/operators/mergeInternals.js:22:31)
        at outerNext (/workspace/my_repo/node_modules/.pnpm/[email protected]/node_modules/rxjs/dist/cjs/internal/operators/mergeInternals.js:17:70)
        at OperatorSubscriber._this._next (/workspace/my_repo/node_modules/.pnpm/[email protected]/node_modules/rxjs/dist/cjs/internal/operators/OperatorSubscriber.js:33:21)

With this script:

"style:format": "prettier-eslint --config .prettierrc --eslint-config-path $PWD/eslint.config.mjs --list-different --write \"./src/**/*.ts\" \"./src/**/*.tsx\"",

And these deps:

{
"@eslint/compat": "^1.2.0",
"@eslint/eslintrc": "^3.1.0",
"@eslint/js": "^9.12.0",
"@tanstack/eslint-plugin-query": "^5.57.2",
"@typescript-eslint/eslint-plugin": "^7.12.0",
"@typescript-eslint/parser": "^7.12.0",
"eslint": "9.12.0",
"eslint-config-prettier": "^9.1.0",
"eslint-import-resolver-typescript": "^3.6.1",
"eslint-plugin-compat": "^6.0.0",
"eslint-plugin-import": "^2.29.1",
"eslint-plugin-jsx-a11y": "^6.8.0",
"eslint-plugin-prettier": "^5.1.3",
"eslint-plugin-react": "^7.34.0",
"eslint-plugin-react-hooks": "^4.6.0",
"eslint-plugin-testing-library": "6.3.0",
"eslint-plugin-unused-imports": "4.1.4",
"eslint-plugin-vitest": "0.4.1",
"prettier-eslint": "16.3.0",
"prettier-eslint-cli": "8.0.1",
}
@JounQin
Copy link
Member

JounQin commented Oct 11, 2024

Duplicate of prettier/prettier-eslint#947

@JounQin JounQin marked this as a duplicate of prettier/prettier-eslint#947 Oct 11, 2024
@JounQin JounQin closed this as not planned Won't fix, can't repro, duplicate, stale Oct 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants