https://github.com/lkiarest/eslint-plugin-vuefix
eslint plugin for autofix of .vue file
https://github.com/lkiarest/eslint-plugin-vuefix
Last synced: 11 months ago
JSON representation
eslint plugin for autofix of .vue file
- Host: GitHub
- URL: https://github.com/lkiarest/eslint-plugin-vuefix
- Owner: lkiarest
- License: mit
- Created: 2016-07-20T06:03:43.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2019-12-19T11:31:56.000Z (over 6 years ago)
- Last Synced: 2024-08-09T17:15:37.875Z (almost 2 years ago)
- Language: JavaScript
- Size: 11.7 KB
- Stars: 23
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# eslint-plugin-vuefix
This ESLint plugin extracts and auto-fix scripts from .vue files.
__For vue-cli@3, please use [official vue eslint plugin](https://github.com/vuejs/vue-cli/tree/dev/packages/%40vue/cli-plugin-eslint)__
## Usage
Simply install via npm install --save-dev eslint-plugin-vuefix and add the plugin to your ESLint configuration. See [ESLint documentation](http://eslint.org/docs/user-guide/configuring#configuring-plugins).
Plugin should be installed __the same way as eslint:__
```shell
$ npm i eslint -D # local
$ npm i eslint-plugin-vuefix -D # local
# or
$ npm i eslint -g # global
$ npm i eslint-plugin-vuefix -g # global
```
Example:
```json
{
"plugins": [
"vuefix"
],
"rules": {
"vuefix/vuefix": [2, {"auto": true}]
}
}
```
## Options
- __auto__ (Boolean, default: true). If set to false, the file will not be overwritten automatically
## A Helper Tool
If you create a new .vue file, and just type 'vue' to save, this plugin will generate an sample code for your vue component.
## License
[MIT](LICENSE) © qintx