Files
vue-cli/packages/@vue/cli-plugin-eslint
2018-02-08 17:38:09 -05:00
..
2018-01-05 09:20:20 -05:00
2018-02-08 17:38:03 -05:00
2018-02-08 17:38:09 -05:00
2018-02-08 17:25:43 -05:00

@vue/cli-plugin-eslint

eslint plugin for vue-cli

Injected Commands

  • vue-cli-service lint

    Lints and fixes files in src and test.

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')