1.3.4 • Published 8 years ago
@ascendancyy/vue-cli-plugin-eslint v1.3.4
@ascendancyy/vue-cli-plugin-eslint
ESLint plugin for vue-cli
Injected commands
vue-cli-service lintUsage: vue-cli-service lint [options] [...files] Options: --format [formatter] specify formatter (default: codeframe) --no-fix do not fix errorsLints and fixes files. If no specific files are given, it lints all files in
srcandtest.Other ESLint CLI options are also supported.
Configuration (.eslintrc.*)
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 @ascendancyy/vue-cli-plugin-eslint
vue invoke @ascendancyy/vue-cli-plugin-eslintThere is also a shorthand to invoke the plugin
vue invoke @ascendancyy/eslint
Injected webpack-chain rules
config.rule('eslint')config.rule('eslint').use('eslint-loader')