- install the preset along with the core package:
pnpm i -D eslint @witheslint/core @witheslint/preset-solid
- create
eslint.config.mjs
in your project root:
import { defineConfig } from '@witheslint/core'
import { presetSolid } from '@witheslint/preset-solid'
export default defineConfig({
presets: [presetSolid()]
})
[!TIP] Or use with the main witheslint package:
pnpm i -D eslint witheslintimport { defineConfig, presetSolid } from 'witheslint' export default defineConfig({ presets: [presetSolid()] })
Prefix | Plugin & Parser | Description |
---|---|---|
solid/* |
eslint-plugin-solid | Solid-specific linting rules |