eslint-plugin-disallow-literals-as-jsxelement-children
v0.0.3
Published
Disallow string literals as direct JSXElement children
Downloads
1
Maintainers
Readme
eslint-plugin-disallow-literals-as-jsxelement-children
Disallow string literals as direct JSXElement children
Installation
You'll first need to install ESLint:
$ npm i eslint --save-dev
Next, install eslint-plugin-disallow-literals-as-jsxelement-children
:
$ npm install eslint-plugin-disallow-literals-as-jsxelement-children --save-dev
Note: If you installed ESLint globally (using the -g
flag) then you must also install eslint-plugin-disallow-literals-as-jsxelement-children
globally.
Usage
Add disallow-literals-as-jsxelement-children
to the plugins section of your .eslintrc
configuration file. You can omit the eslint-plugin-
prefix:
{
"plugins": [
"disallow-literals-as-jsxelement-children"
]
}
Then configure the rules you want to use under the rules section.
{
"rules": {
"disallow-literals-as-jsxelement-children/rule-name": 2
}
}
Supported Rules
- Fill in provided rules here