- 
          
- 
                Notifications
    You must be signed in to change notification settings 
- Fork 31
Open
Description
Before You File a Bug Report Please Confirm You Have Done The Following...
- I have tried restarting my IDE and the issue persists.
- I have updated to the latest version of the packages.
What version of ESLint are you using?
9.14.0
What version of eslint-plugin-astro are you using?
1.3.1
What did you do?
When using typescript-eslint’s typechecked preset, linting throws an error and doesn’t run.
// eslint.config.js
import eslint from "@eslint/js";
import eslintPluginAstro from "eslint-plugin-astro";
import tseslint from "typescript-eslint";
export default tseslint.config(
  eslint.configs.recommended,
  // this fails:
  ...tseslint.configs.recommendedTypeChecked,
  // this works, if above is commented, and this is used instead:
  // ...tseslint.configs.recommended,
  ...eslintPluginAstro.configs.recommended
);What did you expect to happen?
Lint run completes
What actually happened?
Oops! Something went wrong! :(
ESLint: 9.14.0
Error: Error while loading rule '@typescript-eslint/await-thenable': You have used a rule which requires type information, but don't have parserOptions set to generate type information for this file. See https://typescript-eslint.io/getting-started/typed-linting for enabling linting with type information.
Parser: astro-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 /astro-eslint-repro/src/components/Card.astro
    at throwError (/astro-eslint-repro/node_modules/.pnpm/@[email protected][email protected][email protected]/node_modules/@typescript-eslint/utils/dist/eslint-utils/getParserServices.js:38:11)
    at getParserServices (/astro-eslint-repro/node_modules/.pnpm/@[email protected][email protected][email protected]/node_modules/@typescript-eslint/utils/dist/eslint-utils/getParserServices.js:27:9)
    at create (/astro-eslint-repro/node_modules/.pnpm/@[email protected]_@[email protected][email protected][email protected]/node_modules/@typescript-eslint/eslint-plugin/dist/rules/await-thenable.js:49:55)
    at Object.create (/astro-eslint-repro/node_modules/.pnpm/@[email protected][email protected][email protected]/node_modules/@typescript-eslint/utils/dist/eslint-utils/RuleCreator.js:31:20)
    at createRuleListeners (/astro-eslint-repro/node_modules/.pnpm/[email protected]/node_modules/eslint/lib/linter/linter.js:943:21)
    at /astro-eslint-repro/node_modules/.pnpm/[email protected]/node_modules/eslint/lib/linter/linter.js:1068:84
    at Array.forEach (<anonymous>)
    at runRules (/astro-eslint-repro/node_modules/.pnpm/[email protected]/node_modules/eslint/lib/linter/linter.js:999:34)
    at #flatVerifyWithoutProcessors (/astro-eslint-repro/node_modules/.pnpm/[email protected]/node_modules/eslint/lib/linter/linter.js:1911:31)
    at Linter._verifyWithFlatConfigArrayAndWithoutProcessors (/astro-eslint-repro/node_modules/.pnpm/[email protected]/node_modules/eslint/lib/linter/linter.js:1992:49)
Link to Minimal Reproducible Example
https://github.com/drwpow-figma/astro-eslint-repro
Additional comments
Thanks for a great plugin! ❤️
Alejandro-FA, AndreaPontrandolfo, lostfictions, in-in, andreilgeorgescu and 5 more
Metadata
Metadata
Assignees
Labels
No labels