eslint-rules-summer
The never ending summer rules of lint.
Rules list
no-eqeqeq-null-undefined
Do not compare null or undefined with strict equality(===)
| strict inequality(!==)
👍
var a = 1ifa == null // something }ifa != null // something }ifnull == a // something }ifnull != a // something }ifa == undefined // something }ifa != undefined // something }ifundefined == a // something }ifundefined != a // something }
🙅♂️
var a = 1ifa === null // something }ifa !== null // something }ifnull === a // something }ifnull !== a // something }ifa === undefined // something }ifa !== undefined // something }ifundefined === a // something }ifundefined !== a // something }
no-let
Do not use let
variable declaration. Use const
instead.
👍
const a = 0const a = 0 b = 1 var avar a = 0var a = 0 b = 1 const a = 0var a = 0
🙅♂️
let a = 0;let a = 0 b = 1; let = 1;
no-plain-new-date
Do not use new Date()
(empty arguments) | Date.now()
. Date generation that depends on the execution environment is prohibited.
👍
2020 4 3'2020-05-03T03:24:00'
🙅♂️
Date
For developer
This module is a single rules module, so normally you don't have to consciously install.
If you are developer and want to use this rules module, you can install with the following command.
npm
$ npm install --save-dev eslint-rules-summer
yarn
$ yarn add -D eslint-rules-summer