eslint-plugin-resub

0.7.0 • Public • Published

eslint-plugin-resub

ReSub specific linting rules for ESLint

GitHub license npm version GitHub Workflow Status Coveralls github npm downloads

Installation

$ npm i eslint-plugin-resub @typescript-eslint/parser --save-dev

Usage

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

{
  "parser": "@typescript-eslint/parser",
  "plugins": ["resub"]
}

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

{
  "rules": {
    "resub/override-calls-super": "error",
    "resub/no-state-access": "error"
  }
}

Or extend recommended config

{
  "extends": "plugin:resub/recommended"
}

Rules

Name Description
no-state-access Disallow state accsess in ReSub componentWillMount
override-calls-super Require super calls in overridden methods argument

License and Copyright

This software is released under the terms of the MIT license.

Package Sidebar

Install

npm i eslint-plugin-resub

Weekly Downloads

44

Version

0.7.0

License

MIT

Unpacked Size

13 kB

Total Files

10

Last publish

Collaborators

  • otarasiuk