eslint-plugin-vue3-jsx

Eslint plugin for vue3-jsx
18,229
Install
npm install eslint-plugin-vue3-jsx@0.0.2
Latest Version:0.0.2
License:MIT
Last Updated:Jun 9, 2021
Links: GitHub  ·  npm
Maintainer: lk06

eslint-plugin-vue3-jsx

Eslint plugin for vue3-jsx

Installation

You'll first need to install ESLint:

$ npm i eslint --save-dev

Next, install eslint-plugin-vue3-jsx:

$ npm install eslint-plugin-vue3-jsx --save-dev

Usage

Add vue3-jsx to the plugins section of your .eslintrc configuration file. You can omit the eslint-plugin- prefix:

{
    "plugins": ["vue3-jsx"]
}

Then configure the rules you want to use under the rules section.

{
    "rules": {
        "vue3-jsx/no-getCurrentInstance": 2,
        "vue3-jsx/prefer-effect": 2,
        "vue3-jsx/no-this-in-setup": 2,
        "vue3-jsx/prefer-render-in-setup": 2,
        "vue3-jsx/component-name": 2,
        "vue3-jsx/no-directives": 2,
        "vue3-jsx/no-reactivity-in-render": 2,
        "vue3-jsx/no-fragment-in-return-root": 2
    }
}

Supported Rules

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.0.2
0.0.1
Pre-releases (4)
Version Released License
0.0.3-beta.3 MIT
0.0.3-beta.2 MIT
0.0.3-beta.1 MIT
0.0.3-alpha.1 MIT