🚨 Shai-Hulud Strikes Again:834 Packages Compromised.Technical Analysis →
Socket
Book a DemoInstallSign in
Socket

@hero-design/eslint-plugin

Package Overview
Dependencies
Maintainers
3
Versions
152
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@hero-design/eslint-plugin

Hero Design's eslint plugin

latest
npmnpm
Version
9.2.0
Version published
Maintainers
3
Created
Source

@hero-design/eslint-plugin

Hero Design's eslint plugin to ensure correct usage and deprecation of our packages. We strongly recommend all of our consumers to use this plugin with our predefined recommendedRn config.

Installation

You'll first need to install ESLint:

yarn add -D eslint

Next, install @hero-design/eslint-plugin:

yarn add -D @hero-design/eslint-plugin

Usage

Add @hero-design to the plugins section of your .eslintrc configuration file. You can omit the eslint-plugin postfix:

{
  "plugins": ["@hero-design"]
}

Then, you can either:

  • Use our pre-defined config by adding plugin:@hero-design/recommendedRn under extends section. This approach is strongly recommended as it requires no configurations.
{
  "extends": ["plugin:@hero-design/recommendedRn"]
}
  • Configure the rules you want to use under the rules section. This approach should be avoided in most of the cases unless you have any specific needs.
{
  "rules": {
    "@hero-design/rule-name": 2
  }
}

Supported Rules

RuleDescription
@hero-design/no-deprecated-component-propDisallow deprecated component props
@hero-design/no-deprecated-component-prop-valueDisallow deprecated component prop's values
@hero-design/no-deprecated-theme-keyDisallow deprecated theme keys
@hero-design/not-recommended-importDisallow not recommended imports

Keywords

eslint

FAQs

Package last updated on 11 Oct 2024

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