I’ve upgrade my eslint to use new flat configuration and I’m getting error.
As you know,I can’t set parserOptions.project
in new flat configuration but eslint is complaining about it.
ESLint version: 8.57.0
Link to my new flat confiiguration: https://github.com/FlowCrypt/flowcrypt-browser/blob/0b627aae2977076fdcb6c96cfad3e627718e9ade/eslint.config.mjs
Any help would be appreciated.
Error below:
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)