Replies: 1 comment
-
so far here is my solution which i don't know if it's great or not : // eslint.config.mjs
import antfu from '@antfu/eslint-config'
import { coreWebVitals, nextTypescript } from 'eslint-config-next'
export default antfu({
// Type of the project. 'lib' for libraries, the default is 'app'
type: 'lib',
// Enable stylistic formatting rules
// stylistic: true,
// Customize the stylistic rules
stylistic: {
indent: 4, // 4 spaces for indentation
quotes: 'single', // single quotes
},
// TypeScript and React are enabled
typescript: true,
react: true,
// Add additional ESLint configurations from `next/core-web-vitals` and `next/typescript`
overrides: [
...coreWebVitals,
...nextTypescript,
],
// Disable jsonc and yaml support
jsonc: false,
yaml: false,
// Replace `.eslintignore` with `ignores` in Flat config
ignores: [
'**/fixtures',
// ...globs
],
}) |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
i want to add eslint-config-next ( next js own eslint) with antfu , any idea ?
Beta Was this translation helpful? Give feedback.
All reactions