eslint-plugin-hammerhead

Specific rules for the hammerhead.

ISC 24 个版本
安装
npm install eslint-plugin-hammerhead
yarn add eslint-plugin-hammerhead
pnpm add eslint-plugin-hammerhead
bun add eslint-plugin-hammerhead
README

eslint-plugin-hammerhead

Specific rules for the hammerhead.

Installation

You'll first need to install ESLint:

$ npm i eslint --save-dev

Next, install eslint-plugin-hammerhead:

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

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

Usage

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

{
    "plugins": [
        "hammerhead"
    ]
}

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

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

Supported Rules

  • proto-methods
  • use-hh-promise
  • use-native-methods
  • no-window-self
版本列表
0.4.0 2020-08-27
0.3.1 2020-05-25
0.3.0 2019-02-26
0.2.0 2019-01-14
0.1.11 2018-11-23
0.1.10 2018-05-15
0.1.9 2018-04-23
0.1.8 2018-04-17
0.1.7 2018-04-10
0.1.6 2018-03-26
0.1.5 2018-03-21
0.1.4 2018-03-13
0.1.3 2018-03-07
0.1.2 2018-02-15
0.1.1 2018-02-14
0.1.0 2018-02-14
0.0.8 2017-04-25
0.0.7 2016-10-10
0.0.6 2016-08-25
0.0.5 2016-04-25
0.0.4 2016-01-19
0.0.3 2016-01-14
0.0.2 2016-01-12
0.0.1 2015-12-29