astro/src
Interfaces
Section titled “Interfaces”AstroOptions
Section titled “AstroOptions”Defined in: astro/src/rules.ts:8
Astro-specific ESLint options
Indexable
Section titled “Indexable”[
key:string]:unknown
Properties
Section titled “Properties”hasReact?
Section titled “hasReact?”
optionalhasReact?:boolean
Defined in: astro/src/rules.ts:13
If true, includes React-specific overrides for .astro files
hasSolid?
Section titled “hasSolid?”
optionalhasSolid?:boolean
Defined in: astro/src/rules.ts:16
If true, includes SolidJS-specific sorting groups and JSX overrides
hasSvelte?
Section titled “hasSvelte?”
optionalhasSvelte?:boolean
Defined in: astro/src/rules.ts:19
If true, includes Svelte-specific sorting groups
hasVue?
Section titled “hasVue?”
optionalhasVue?:boolean
Defined in: astro/src/rules.ts:22
If true, includes Vue-specific sorting groups
tsconfigRootDir?
Section titled “tsconfigRootDir?”
optionaltsconfigRootDir?:string
Defined in: astro/src/rules.ts:28
Optional tsconfig root passed through from the main config composer. This keeps Astro parser project lookup stable when projectService is disabled.
Variables
Section titled “Variables”astroConfig
Section titled “astroConfig”
constastroConfig:ConfigArray
Defined in: astro/src/index.ts:44
Functions
Section titled “Functions”createAstroConfig()
Section titled “createAstroConfig()”createAstroConfig(
options?):ConfigArray
Defined in: astro/src/index.ts:12
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: astro/src/rules.ts:53
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.