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