Non-opinionated ESlint configuration for Nuxt 3 apps.
- Works out-of-the-box with no additional configuration.
- Nuxt-specific rules for pages, components and more.
- ... under active development
- Install this package and
eslint
in yourdevDependencies
.
npm i -D @nuxt/eslint-config eslint
yarn add -D @nuxt/eslint-config eslint
pnpm add -D @nuxt/eslint-config eslint
- Extend the default Nuxt config by creating an
.eslintrc.cjs
:
module.exports = {
root: true,
extends: ["@nuxt/eslint-config"],
};
You might also want to add a script entry to your `package.json:
{
"scripts": {
"lint": "eslint ."
}
}
Made with ❤️
Published under MIT License.