eslint-plugin-vue3-jsx
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-test-id
This checks is data-test-id prop is present, on some tags which are useful for e...
10,384
17
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 |