An esLint plugin that eliminates 996
Github address: github.com/xinyu198736…
Running effect
Feature list
- Code changes are prohibited after 18:00 every day
- No code changes on Saturday and Sunday
Installation
You’ll first need to install ESLint:
$ npm i eslint --save-dev
Copy the code
Next, install eslint-plugin-nns
:
$ npm install eslint-plugin-nns --save-dev
Copy the code
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"]}Copy the code
Then configure the rules you want to use under the rules section.
{
"rules": {
"nns/no-illegal-working-time": "error"}}Copy the code