Skip to content

ESLint Config API reference

Source information
  • Package: @pikacss/eslint-config
  • Generated from the exported surface and JSDoc in packages/eslint-config/src/index.ts.
  • Source files: packages/eslint-config/src/index.ts

Package summary

ESLint flat config for PikaCSS.

Use ESLint setup when you need conceptual usage guidance instead of exact symbol lookup.

Functions

default(options?)

Creates the configured PikaCSS ESLint flat-config entry.

ParameterTypeDescription
options?PikacssConfigOptionsOptional canonical config-file selection.

Returns: Promise<Linter.Config> - A promise for one flat-config entry.

Remarks:

One Config-host load derives both the readonly globals and the private model captured by the configured rule instance.

ts
import pikacss from '@pikacss/eslint-config'
export default [await pikacss()]


pikacss(options?)

Creates the configured PikaCSS ESLint flat-config entry.

ParameterTypeDescription
options?PikacssConfigOptionsOptional canonical config-file selection.

Returns: Promise<Linter.Config> - A promise for one flat-config entry.

Remarks:

One Config-host load derives both the readonly globals and the private model captured by the configured rule instance.

ts
import pikacss from '@pikacss/eslint-config'
export default [await pikacss()]


Constants

Named alias for the default async PikaCSS setup factory.



Types

PikacssConfigOptions

Options accepted by the PikaCSS ESLint configuration factory functions.

PropertyTypeDescriptionDefault
config?stringExplicit config-file selection. Omit to use canonical auto-discovery.

Remarks:

Project semantics are loaded from the canonical PikaCSS config. The only public option selects that config file.

ts
import pikacss from '@pikacss/eslint-config'
export default [await pikacss({ config: './pika.config.mts' })]


Next