@pikacss/eslint-config
v0.0.66
Published
ESLint flat config for PikaCSS that enforces compiler-aligned static usage for roots from the canonical project configuration.
Maintainers
Readme
@pikacss/eslint-config
ESLint flat config for PikaCSS that enforces compiler-aligned static usage for roots from the canonical project configuration.
Installation
pnpm add -D @pikacss/eslint-configUsage
// eslint.config.mjs
import pikacss from '@pikacss/eslint-config'
export default [
await pikacss(),
]The async factory loads the canonical PikaCSS project config and derives the configured roots, readonly ESLint globals, scan ownership, and private rule model from that one source. To select a config file explicitly:
import pikacss from '@pikacss/eslint-config'
export default [
await pikacss({ config: './pika.config.mts' }),
]The factory registers pikacss/static-usage. It has no rule options and this
package does not expose an unconfigured public plugin for manual semantic
configuration. The named recommended export is the same async factory as
pikacss.
Migration
The legacy ESLint setup changed in these breaking ways:
pikacss/no-dynamic-argswas removed; the factory now enablespikacss/static-usage.- The manual
{ fnName }option was removed; configured roots come from the canonical PikaCSS project config, andconfigis the only factory option. - Legacy
.str/.arrrule behavior was removed; they are not variants of the currentpikacss/static-usagerule.
Documentation
See the ESLint setup guide
and the pikacss/static-usage rule reference.
License
MIT
