eslint-plugin-react-rfc
v0.1.5
Published
experimental React specific linting rules
Downloads
14
Maintainers
Readme
eslint-plugin-react-rfc
Experimental React specific linting rules
Motivation
eslint-plugin-react has a consolidated bunch of React linting rules. However it's difficult to have an space for proves of concept. This package collects a set of experimental rules that intents to be moved to eslint-plugin-react
once get madurity.
Installation
npm install eslint-plugin-react-rfc --save-dev
Configuration (legacy: .eslintrc*
)
Add react-rfc
to the plugins section of your .eslintrc*
configuration file. You can omit the eslint-plugin-
prefix:
{
"plugins": ["react-rfc"]
}
Use our preset to get reasonable defaults:
"extends": [
"plugin:react-rfc/recommended"
],
Rules
💼 Configurations enabled in.
✅ Set in the recommended
configuration.
| Name | Description | 💼 | | :--------------------------------------------------------------------- | :--------------------------------------------- | :-- | | no-component-def-in-render | disallow to define a component in render scope | ✅ |