astro/src
Interfaces
Section titled “Interfaces”AstroOptions
Section titled “AstroOptions”Defined in: packages/astro/src/rules.ts:7
Astro-specific ESLint options
Indexable
Section titled “Indexable”[
key:string]:unknown
Properties
Section titled “Properties”hasReact?
Section titled “hasReact?”
optionalhasReact?:boolean
Defined in: packages/astro/src/rules.ts:12
If true, includes React-specific overrides for .astro files
hasSolid?
Section titled “hasSolid?”
optionalhasSolid?:boolean
Defined in: packages/astro/src/rules.ts:15
If true, includes SolidJS-specific sorting groups and JSX overrides
hasSvelte?
Section titled “hasSvelte?”
optionalhasSvelte?:boolean
Defined in: packages/astro/src/rules.ts:18
If true, includes Svelte-specific sorting groups
hasVue?
Section titled “hasVue?”
optionalhasVue?:boolean
Defined in: packages/astro/src/rules.ts:21
If true, includes Vue-specific sorting groups
tsconfigRootDir?
Section titled “tsconfigRootDir?”
optionaltsconfigRootDir?:string
Defined in: packages/astro/src/rules.ts:27
Optional tsconfig root passed through from the main config composer. This keeps Astro parser project lookup stable when projectService is disabled.
typeChecked?
Section titled “typeChecked?”
optionaltypeChecked?:boolean
Defined in: packages/astro/src/rules.ts:33
Whether to enable type-aware linting for Astro files. Disabling this avoids parser crashes in Astro packages without TSConfig files.
Functions
Section titled “Functions”createAstroConfig()
Section titled “createAstroConfig()”createAstroConfig(
options?):ConfigArray
Defined in: packages/astro/src/index.ts:13
Creates Astro ESLint configuration based on enabled frameworks
Parameters
Section titled “Parameters”options?
Section titled “options?”Framework-specific options for Astro files
Returns
Section titled “Returns”ConfigArray
The Astro configuration array
getRules()
Section titled “getRules()”getRules(
options?):TSESLint.Linter.RulesRecord
Defined in: packages/astro/src/rules.ts:58
Generates Astro-specific rules based on enabled frameworks
Parameters
Section titled “Parameters”options?
Section titled “options?”Returns
Section titled “Returns”TSESLint.Linter.RulesRecord
References
Section titled “References”default
Section titled “default”Renames and re-exports createAstroConfig
Did this page help?
Your answer stays in this browser. Share details on GitHub to help improve the docs.