eslint-plugin-react-rfc

0.1.5 • Public • Published

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

Package Sidebar

Install

npm i eslint-plugin-react-rfc

Weekly Downloads

74

Version

0.1.5

License

ISC

Unpacked Size

43.6 kB

Total Files

24

Last publish

Collaborators

  • xgbuils