I’ve upgraded my ESLint to use the new flat configuration, but I’m encountering an error.
As you know, I can’t set parserOptions.project
in the new flat configuration, but ESLint is still complaining about it.
- ESLint version: 8.57.0
- Link to my new flat configuration: GitHub – FlowCrypt/flowcrypt-browser
Error details:
Oops! Something went wrong! :(
ESLint: 8.57.0
Error: Error while loading rule '@typescript-eslint/await-thenable': 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.
Parser: undefined
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 /home/super/Desktop/flowcrypt-browser/tooling/build-types-and-manifests.ts
at throwError (/home/super/Desktop/flowcrypt-browser/node_modules/typescript-eslint/node_modules/@typescript-eslint/utils/dist/eslint-utils/getParserServices.js:40:11)
at getParserServices (/home/super/Desktop/flowcrypt-browser/node_modules/typescript-eslint/node_modules/@typescript-eslint/utils/dist/eslint-utils/getParserServices.js:26:9)
at create (/home/super/Desktop/flowcrypt-browser/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/await-thenable.js:46:55)
at Object.create (/home/super/Desktop/flowcrypt-browser/node_modules/typescript-eslint/node_modules/@typescript-eslint/utils/dist/eslint-utils/RuleCreator.js:38:20)
at createRuleListeners (/home/super/Desktop/flowcrypt-browser/node_modules/eslint/lib/linter/linter.js:895:21)
at /home/super/Desktop/flowcrypt-browser/node_modules/eslint/lib/linter/linter.js:1066:110
at Array.forEach ()
at runRules (/home/super/Desktop/flowcrypt-browser/node_modules/eslint/lib/linter/linter.js:1003:34)
at Linter._verifyWithFlatConfigArrayAndWithoutProcessors (/home/super/Desktop/flowcrypt-browser/node_modules/eslint/lib/linter/linter.js:1730:31)
at Linter._verifyWithFlatConfigArray (/home/super/Desktop/flowcrypt-browser/node_modules/eslint/lib/linter/linter.js:1861:21)
3