DWT lint config that extends Standard.
yarn add eslint-config-dwt --dev
npm install --save-dev eslint-config-dwt
Shareable configs are designed to work with the extends
feature of .eslintrc
files. You can learn more about Shareable Configs on the official ESLint website.
To use the configuration in an empty project, first install it:
yarn add eslint eslint-config-dwt --dev
# or...
npm install --save-dev eslint eslint-config-dwt
Then, add this to your .eslintrc
config
{
"extends": "dwt"
}
Lastly, to ease the use of eslint
, add this to the scripts
section of your package.json
"lint": "eslint '**/*.js' --ignore-path .gitignore"