eslint-plugin-nns

0.0.2 • Public • Published

eslint-plugin-nns

a lint save you from 996

Feature list

  • [x] 每天 18:00 之后禁止代码变更
  • [x] 周六周日 禁止代码变更

Installation

You'll first need to install ESLint:

$ npm i eslint --save-dev

Next, install eslint-plugin-nns:

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

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

Usage

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

{
    "plugins": [
        "nns"
    ]
}

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

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

Supported Rules

  • Fill in provided rules here

/eslint-plugin-nns/

    Package Sidebar

    Install

    npm i eslint-plugin-nns

    Weekly Downloads

    4

    Version

    0.0.2

    License

    ISC

    Unpacked Size

    3 kB

    Total Files

    5

    Last publish

    Collaborators

    • yutou_cn