https://github.com/winjs-dev/vue-cli-plugin-eslint
eslint for for vue-cli
https://github.com/winjs-dev/vue-cli-plugin-eslint
Last synced: 8 months ago
JSON representation
eslint for for vue-cli
- Host: GitHub
- URL: https://github.com/winjs-dev/vue-cli-plugin-eslint
- Owner: winjs-dev
- License: mit
- Created: 2020-07-27T06:55:11.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2021-07-15T04:19:08.000Z (almost 5 years ago)
- Last Synced: 2025-09-30T06:41:38.589Z (8 months ago)
- Language: JavaScript
- Size: 229 KB
- Stars: 0
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
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](https://eslint.org/docs/user-guide/command-line-interface#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`:
``` js
module.exports = {
// ...
lintOnSave: true,
}
```
## Installing in an already created project
``` sh
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')`