0.0.3 • Published 7 years ago
eslint-plugin-disallow-literals-as-jsxelement-children v0.0.3
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-devNext, install eslint-plugin-disallow-literals-as-jsxelement-children:
$ npm install eslint-plugin-disallow-literals-as-jsxelement-children --save-devNote: 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