The project uses @antfu/eslint-config wrapped with a Nuxt-specific ESLint configuration (withNuxt). You can customize linting behavior by passing an options object to the antfu configuration function.
Key custom rules applied in this project:
style/no-trailing-spaces: Set to error but configured to ignoreComments: true to allow trailing spaces in JSDoc/comments.style/max-statements-per-line: Set to error with a max of 2 to relax inline statement restrictions.- Markdown files (
**/*.md) have style/no-trailing-spaces disabled to support markdown formatting requirements.
import antfu from '@antfu/eslint-config'
import withNuxt from './.nuxt/eslint.config.mjs'
export default withNuxt(antfu(
{
rules: {
'style/no-trailing-spaces': ['error', { ignoreComments: true }],
'style/max-statements-per-line': ['error', { max: 2 }],
},
},
{
files: ['**/*.md'],
rules: {
'style/no-trailing-spaces': 'off',
},
},
))