JSPM

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

1.0.4
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 2
  • Score
    100M100P100Q33515F
  • License MIT

eslint plugin for vue-cli

Package Exports

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

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@winner-fed/vue-cli-plugin-eslint) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

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