$ npm install eslint-plugin-jsx-plus
eslint plugin for jsx plus
You'll first need to install ESLint:
$ npm i eslint --save-dev
Next, install eslint-plugin-jsx-plus
:
$ npm install eslint-plugin-jsx-plus --save-dev
Note: If you installed ESLint globally (using the -g
flag) then you must also install eslint-plugin-jsx-plus
globally.
Add jsx-plus
to the plugins section of your .eslintrc
configuration file. You can omit the eslint-plugin-
prefix:
{
"extends": [
"react-app",
"plugin:jsx-plus/recommended"
],
"plugins": [
"jsx-plus"
]
}
Then configure the rules you want to use under the rules section.
{
"rules": {
"jsx-plus/valid-x-for": 2
}
}
© 2010 - cnpmjs.org x YWFE | Home | YWFE