✨ The react preset for witheslint.
pnpm add -D eslint witheslint# pnpm add -D eslint @witheslint/core @witheslint/preset-react
yarn add -D eslint witheslint# yarn add -D eslint @witheslint/core @witheslint/preset-react
npm install -D eslint witheslint# npm install -D eslint @witheslint/core @witheslint/preset-react
import { defineConfig, presetReact } from 'witheslint'// import { defineConfig } from '@witheslint/core'// import { presetReact } from '@witheslint/preset-react' export default defineConfig({ presets: [ presetReact(), // ...other presets ],})
module.exports = (async () => { const { defineConfig, presetReact } = await import('witheslint') // const { defineConfig } = await import('@witheslint/core') // const { presetReact } = await import('@witheslint/preset-react') return defineConfig({ presets: [ presetReact(), // ...other presets ], })})()
See customization for more details.