Socket
Book a DemoInstallSign in
Socket

eslint-plugin-behance

Package Overview
Dependencies
Maintainers
3
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eslint-plugin-behance

Behance's custom ESLint rules

latest
npmnpm
Version
3.0.1
Version published
Maintainers
3
Created
Source

eslint-plugin-behance

Custom rules! Yeah!

Installation

You'll first need to install ESLint:

$ npm i eslint --save-dev

Next, install eslint-plugin-behance:

$ npm install eslint-plugin-behance --save-dev

Note: If you installed ESLint globally (using the -g flag) then you must also install eslint-plugin-behance globally.

Usage

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

{
    "plugins": [
        "behance"
    ]
}

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

{
    "rules": {
        "behance/rule-name": 2
    }
}

Rules

  • no-jasmine-arrow: Disallows arrow functions as arguments to Jasmine test functions (describe, it, beforeEach, beforeAll, afterEach, afterAll).
  • header-comment: Requires that the given text is included as a header block comment at the top of the file.

Keywords

eslint

FAQs

Package last updated on 03 Aug 2018

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