➜ 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/@typescript-eslint+utils@6.21.0_eslint@9.0.0_typescript@5.4.4/node_modules/@typescript-eslint/utils/dist/eslint-utils/getParserServices.js:39:11)
at Object.getParserServices (/Users/k/p/a/node_modules/.pnpm/@typescript-eslint+utils@6.21.0_eslint@9.0.0_typescript@5.4.4/node_modules/@typescript-eslint/utils/dist/eslint-utils/getParserServices.js:23:9)
at create (/Users/k/p/a/node_modules/.pnpm/eslint-plugin-jsx-expressions@1.3.2_@typescript-eslint+parser@7.6.0_eslint@9.0.0_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/@typescript-eslint+utils@6.21.0_eslint@9.0.0_typescript@5.4.4/node_modules/@typescript-eslint/utils/dist/eslint-utils/RuleCreator.js:38:20)
at createRuleListeners (/Users/k/p/a/node_modules/.pnpm/eslint@9.0.0/node_modules/eslint/lib/linter/linter.js:1003:21)
at /Users/k/p/a/node_modules/.pnpm/eslint@9.0.0/node_modules/eslint/lib/linter/linter.js:1129:84
at Array.forEach (<anonymous>)
at runRules (/Users/k/p/a/node_modules/.pnpm/eslint@9.0.0/node_modules/eslint/lib/linter/linter.js:1061:34)
at Linter._verifyWithFlatConfigArrayAndWithoutProcessors (/Users/k/p/a/node_modules/.pnpm/eslint@9.0.0/node_modules/eslint/lib/linter/linter.js:1910:31)
at Linter._verifyWithFlatConfigArray (/Users/k/p/a/node_modules/.pnpm/eslint@9.0.0/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 (
eslint@8.57.0
) resolves the issue (1 error is expected):Reproduction:
cc @JoshuaKGoldberg