The never ending summer plugin of lint.
npm install eslint-plugin-summerThe never ending summer plugin of lint.
> npm
``console`
$ npm install --save-dev eslint eslint-plugin-summer
> yarn
`console`
$ yarn add -D eslint eslint-plugin-summer
Setup .eslintrc
`json`
{
"plugins": ["summer"],
"rules": {
"summer/no-eqeqeq-null-undefined": "error",
"summer/no-let": "error",
"summer/no-plain-new-date": "error"
}
}
This plugin exports a recommended config that enforces good practices.
Setup on your .eslintrc with the extends option:
`json``
{
"extends": ["plugin:summer/recommended"]
}
See the ESLint docs for more information about extending config files.
Note: This config will also enable the correct parser options and environment.