ESLint Module
ESLint will run on saving
📖 Release Notes
Setup
- Add the
@nuxtjs/eslint-module
dependency with yarn
or npm
to your project - Add
@nuxtjs/eslint-module
to the devModules
section of nuxt.config.js
- Configure it:
{
devModules: [
'@nuxtjs/eslint-module'
]
}
Options
fix
This option will enable ESLint autofix feature.
Be careful: this option will change source files.
emitError
Loader will always return errors if this option is set to true
.
emitWarning
Loader will always return warnings if option is set to true
. If you're using hot module replacement, you may wish to enable this in development, or else updates will be skipped when there's an eslint error.
quiet
Loader will process and report errors only and ignore warnings if this option is set to true
failOnWarning
Loader will cause the module build to fail if there are any eslint warnings.
failOnError
Loader will cause the module build to fail if there are any eslint errors.
See all options in eslint-loader.
Development
- Clone this repository
- Install dependencies using
yarn install
or npm install
- Start development server using
npm run dev
License
MIT License
Copyright (c) Nuxt Community