Skip to content

astro/src

Defined in: packages/astro/src/rules.ts:7

Astro-specific ESLint options

[key: string]: unknown

optional hasReact?: boolean

Defined in: packages/astro/src/rules.ts:12

If true, includes React-specific overrides for .astro files

optional hasSolid?: boolean

Defined in: packages/astro/src/rules.ts:15

If true, includes SolidJS-specific sorting groups and JSX overrides

optional hasSvelte?: boolean

Defined in: packages/astro/src/rules.ts:18

If true, includes Svelte-specific sorting groups

optional hasVue?: boolean

Defined in: packages/astro/src/rules.ts:21

If true, includes Vue-specific sorting groups

optional tsconfigRootDir?: 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.

optional typeChecked?: 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.

createAstroConfig(options?): ConfigArray

Defined in: packages/astro/src/index.ts:13

Creates Astro ESLint configuration based on enabled frameworks

AstroOptions

Framework-specific options for Astro files

ConfigArray

The Astro configuration array


getRules(options?): TSESLint.Linter.RulesRecord

Defined in: packages/astro/src/rules.ts:58

Generates Astro-specific rules based on enabled frameworks

AstroOptions

TSESLint.Linter.RulesRecord

Renames and re-exports createAstroConfig

Did this page help?

Your answer stays in this browser. Share details on GitHub to help improve the docs.