WACG ESLint Config
ESLint configuration file for WACG projects
Installing
npm
npm i -D eslint @wacg/eslint-config
yarn
yarn add -D eslint @wacg/eslint-config
Configuration
add .eslintrc.js
in the root dirictory of your project with following content:
module.exports = {
extends: [
'@wacg/eslint-config'
]
}
Tasks
add the following task to the scripts
section of your package.json
"scripts": {
"lint": "eslint **/*.js",
"lint:fix": "eslint **/*.js --fix"
}