Linting
Set up ESLint with the Accelerator linting rules in a Nuxt project.
Configure ESLint
Create eslint.config.mjs in the root of your project and extend Nuxt's ESLint configuration with the Accelerator rules:
import { createConfigForNuxt } from '@nuxt/eslint-config/flat';
import { nuxtConfig } from '@levarnebv/accelerator-linter-settings';
export default createConfigForNuxt()
.append(nuxtConfig);Run ESLint
Add these commands to the scripts section of your package.json:
"lint": "eslint .",
"lint:fix": "eslint . --fix"Run the lint command from your project root:
pnpm run lint