Skip to content

dominiczaq/eslint-plugin-disallow-literals-as-jsxelement-children

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DEPRECATED

This is no longer supported, rule included in this plugin is now under https://github.com/dominiczaq/eslint-plugin-tidio-additional-rules

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

About

DEPRECATED Eslint plugin - disallow string literals as direct JSXElement children

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published