@winner-fed/vue-cli-plugin-eslint

1.0.4 • Public • Published

@winner-fed/vue-cli-plugin-eslint

ESLint plugin for vue-cli

Injected commands

  • vue-cli-service lint

    Usage: vue-cli-service lint [options] [...files]
    
    Options:
    
      --format [formatter] specify formatter (default: codeframe)
      --no-fix             do not fix errors
    

    Lints and fixes files. If no specific files are given, it lints all files in src and test.

    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 @winner-fed/vue-cli-plugin-eslint
vue invoke @winner-fed/vue-cli-plugin-eslint

There is also a shorthand to invoke the plugin
vue invoke @winner-fed/eslint

Injected webpack-chain rules

  • config.rule('eslint')
  • config.rule('eslint').use('eslint-loader')

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.4
    17
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.4
    17
  • 1.0.3
    0
  • 1.0.2
    0
  • 1.0.1
    0
  • 1.0.0
    0

Package Sidebar

Install

npm i @winner-fed/vue-cli-plugin-eslint

Weekly Downloads

17

Version

1.0.4

License

MIT

Unpacked Size

13 kB

Total Files

11

Last publish

Collaborators

  • winner-fed