一个能够杜绝 996 的 eslint 插件 [误]

一个能够杜绝 996 的 eslint 插件git

Github 地址:github.com/xinyu198736…github

运行效果

Feature list

  • 天天 18:00 以后禁止代码变动
  • 周六周日 禁止代码变动

Installation

You'll first need to install ESLint:npm

$ npm i eslint --save-dev
复制代码

Next, install eslint-plugin-nns:json

$ 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.bash

Usage

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

{
    "plugins": [
        "nns"
    ]
}
复制代码

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

{
    "rules": {
        "nns/no-illegal-working-time": "error"
    }
}
复制代码
相关文章
相关标签/搜索