mirror of
https://github.com/vuejs/vue-cli.git
synced 2026-01-25 00:29:06 -06:00
@vue/cli-plugin-eslint
eslint plugin for vue-cli
Injected Commands
-
vue-cli-service lintLints and fixes files in
srcandtest.
Configuration
ESLint can be configured via .eslintrc or the eslintConfig field in package.json.
Lint-on-save during development with eslint-loader can be enabled with the lintOnSave option in vue.config.js:
module.exports = {
lintOnSave: true
}
Installing in an Already Created Project
npm install -D @vue/cli-plugin-eslint
vue invoke eslint
Injected webpack-chain Rules
config.rule('eslint')config.rule('eslint').use('eslint-loader')