1. eslint-plugin-vuefix
eslint plugin for autofix of .vue file
eslint-plugin-vuefix
Package: eslint-plugin-vuefix
Created by: lkiarest
Last modified: Fri, 17 Jun 2022 20:44:02 GMT
Version: 0.2.1
License: MIT
Downloads: 517
Repository: https://github.com/lkiarest/eslint-plugin-vuefix

Install

npm install eslint-plugin-vuefix
yarn add eslint-plugin-vuefix

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

Dependencies

RELATED POST

10 Must-Know Windows Shortcuts That Will Save You Time

10 Must-Know Windows Shortcuts That Will Save You Time

Arrays vs Linked Lists: Which is Better for Memory Management in Data Structures?

Arrays vs Linked Lists: Which is Better for Memory Management in Data Structures?

Navigating AWS Networking: Essential Hacks for Smooth Operation

Navigating AWS Networking: Essential Hacks for Smooth Operation

Achieving Stunning Visuals with Unity's Global Illumination

Achieving Stunning Visuals with Unity's Global Illumination

Nim's Hidden Gems: Lesser-known Features for Writing Efficient Code

Nim's Hidden Gems: Lesser-known Features for Writing Efficient Code