Introducing Socket Firewall: Free, Proactive Protection for Your Software Supply Chain.Learn More
Socket
Book a DemoInstallSign in
Socket

@bem-react/eslint-plugin

Package Overview
Dependencies
Maintainers
5
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@bem-react/eslint-plugin

ESLint plugin for projects based on BEM React

latest
Source
npmnpm
Version
1.1.2
Version published
Weekly downloads
67
-5.63%
Maintainers
5
Weekly downloads
 
Created
Source

@bem-react/eslint-plugin · npm (scoped)

Plugin for checking some things in projects based on BEM React.

Usage

Add @bem-react to the plugins section of your .eslintrc configuration file:

{
  "plugins": ["@bem-react"]
}

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

{
  "rules": {
    "@bem-react/no-classname-runtime": "warn",
    "@bem-react/whitelist-levels-imports": [
      "error",
      {
        "defaultLevel": "common",
        "whiteList": {
          "common": ["common"],
          "desktop": ["common", "desktop"],
          "mobile": ["common", "mobile"]
        }
      }
    ]
  }
}

Supported Rules

Currently is supported:

Keywords

eslint

FAQs

Package last updated on 12 Mar 2020

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