Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

eslint-plugin-resub

Package Overview
Dependencies
Maintainers
1
Versions
21
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eslint-plugin-resub

ESlint rules for ReSub

  • 0.7.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

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"
  }
}
{
  "extends": "plugin:resub/recommended"
}

Rules

NameDescription
no-state-accessDisallow state accsess in ReSub componentWillMount
override-calls-superRequire super calls in overridden methods argument

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

Keywords

FAQs

Package last updated on 11 Sep 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc