Skip to content

@witheslint/preset-react

✨ The react preset for witheslint.

Installation

Terminal window
pnpm add -D eslint witheslint
# pnpm add -D eslint @witheslint/core @witheslint/preset-react

Reference

eslint.config.js
import { defineConfig, presetReact } from 'witheslint'
// import { defineConfig } from '@witheslint/core'
// import { presetReact } from '@witheslint/preset-react'
export default defineConfig({
presets: [
presetReact(),
// ...other presets
],
})

See customization for more details.