You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
➜ a pnpm eslint . --max-warnings 0
Oops! Something went wrong! :(
ESLint: 9.0.0
Error: Error while loading rule 'jsx-expressions/strict-logical-expressions': You have used a rule which requires parserServices to be generated. You must therefore provide a value for the "parserOptions.project" property for @typescript-eslint/parser.
Note: detected a parser other than @typescript-eslint/parser. Make sure the parser is configured to forward "parserOptions.project" to @typescript-eslint/parser.
Occurred while linting /Users/k/p/a/eslint.config.js
at throwError (/Users/k/p/a/node_modules/.pnpm/@[email protected][email protected][email protected]/node_modules/@typescript-eslint/utils/dist/eslint-utils/getParserServices.js:39:11)
at Object.getParserServices (/Users/k/p/a/node_modules/.pnpm/@[email protected][email protected][email protected]/node_modules/@typescript-eslint/utils/dist/eslint-utils/getParserServices.js:23:9)
at create (/Users/k/p/a/node_modules/.pnpm/[email protected]_@[email protected][email protected]_typescript@5_psweyfgckaeztdobw6zk24wuua/node_modules/eslint-plugin-jsx-expressions/dist/rules/strict-logical-expressions.js:60:52)
at Object.create (/Users/k/p/a/node_modules/.pnpm/@[email protected][email protected][email protected]/node_modules/@typescript-eslint/utils/dist/eslint-utils/RuleCreator.js:38:20)
at createRuleListeners (/Users/k/p/a/node_modules/.pnpm/[email protected]/node_modules/eslint/lib/linter/linter.js:1003:21)
at /Users/k/p/a/node_modules/.pnpm/[email protected]/node_modules/eslint/lib/linter/linter.js:1129:84
at Array.forEach (<anonymous>)
at runRules (/Users/k/p/a/node_modules/.pnpm/[email protected]/node_modules/eslint/lib/linter/linter.js:1061:34)
at Linter._verifyWithFlatConfigArrayAndWithoutProcessors (/Users/k/p/a/node_modules/.pnpm/[email protected]/node_modules/eslint/lib/linter/linter.js:1910:31)
at Linter._verifyWithFlatConfigArray (/Users/k/p/a/node_modules/.pnpm/[email protected]/node_modules/eslint/lib/linter/linter.js:2046:21)
Hi @hluisson, hope things are good with you!
Running the Quickstart setup for
typescript-eslint
works with ESLint v9, but addingeslint-plugin-jsx-expressions
along with thelanguageOptions.parserOptions
config afterwards leads to an error:Config (ESLint Flat Config):
eslint.config.js
Downgrading to ESLint v8 (
[email protected]
) resolves the issue (1 error is expected):Reproduction:
cc @JoshuaKGoldberg
The text was updated successfully, but these errors were encountered: