lepu-test-platform-web/node_modules/eslint-plugin-vuefix
zhangbo db3ebd0df0 把之前百度云的代码移植过来 2024-01-03 15:23:47 +08:00
..
lib 把之前百度云的代码移植过来 2024-01-03 15:23:47 +08:00
.npmignore 把之前百度云的代码移植过来 2024-01-03 15:23:47 +08:00
LICENSE 把之前百度云的代码移植过来 2024-01-03 15:23:47 +08:00
README.md 把之前百度云的代码移植过来 2024-01-03 15:23:47 +08:00
package.json 把之前百度云的代码移植过来 2024-01-03 15:23:47 +08:00

README.md

eslint-plugin-vuefix

This ESLint plugin extracts and auto-fix scripts from .vue files.

Usage

Simply install via npm install --save-dev eslint-plugin-vuefix and add the plugin to your ESLint configuration. See ESLint documentation.

Plugin should be installed the same way as eslint

$ 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:

{
    "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 © qintx