2.0.1 • Published 6 years ago
eslint-config-dwt v2.0.1
eslint-config-dwt
DWT lint config that extends Standard.
Installation
yarn
yarn add eslint-config-dwt --devnpm
npm install --save-dev eslint-config-dwtUsage
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-dwtThen, 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"