eslint-plugin-vuefix

eslint plugin for autofix of .vue file
7,257 23
Install
npm install eslint-plugin-vuefix
Latest Version:0.2.1
License:MIT
Last Updated:Dec 19, 2019
Links: GitHub  ·  npm
Maintainer: qintx

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

Related Packages

eslint-plugin-vue-storefront

ESLint rules for Vue Storefront

39,292
@scayle/eslint-plugin-vue-composable

Rules to avoid unpleasant composable problems

207,394 4
@component-hook/eslint-plugin

ESLint config for component hook

8,834 4
eslint-plugin-test-id

This checks is data-test-id prop is present, on some tags which are useful for e...

10,384 17
eslint-plugin-vueunused

a eslint plugin for detecting unused code in vue single file component

939

Version History

Version Released License
0.2.1 MIT
0.2.0 MIT
0.1.1 MIT
0.1.0 MIT