eslint-plugin-vuefix
Version:
eslint plugin for autofix of .vue file
43 lines (29 loc) • 991 B
Markdown
and auto-fix scripts from .vue files.
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
$ npm i eslint-plugin-vuefix -D
$ npm i eslint -g
$ npm i eslint-plugin-vuefix -g
```
Example:
```json
{
"plugins": [
"vuefix"
],
"rules": {
"vuefix/vuefix": [2, {"auto": true}]
}
}
```
- __auto__ (Boolean, default: true). If set to false, the file will not be overwritten automatically
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) © qintx
This ESLint plugin extracts