eslint-plugin-react-soc

0.0.15 • Public • Published

npm npm GitHub Workflow Status (with branch) NPM

eslint-plugin-react-soc

An eslint plugin that ensures separation of business logic from presentation logic in React functional components.

Installation

You'll first need to install ESLint:

# npm
npm i eslint --save-dev

# yarn
yarn add eslint --dev

Next, install eslint-plugin-react-soc:

#npm
npm install eslint-plugin-react-soc --save-dev

#yarn
yarn add eslint-plugin-react-soc --dev

Usage

Add react-soc to the plugins section of your .eslintrc configuration file. You can omit the eslint-plugin- prefix:

{
  "plugins": ["react-soc"]
}

Then configure the rules you want to use under the rules section.

{
  "rules": {
    "react-soc/separation-of-concerns": "error"
  }
}

Rules

Name                   Description
separation-of-concerns rule to warn mixing of business logic with presentation logic

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.0.15
    2
    • latest

Version History

Package Sidebar

Install

npm i eslint-plugin-react-soc

Weekly Downloads

2

Version

0.0.15

License

MIT

Unpacked Size

13.8 kB

Total Files

10

Last publish

Collaborators

  • dbaishya