Copyright (c) 2021-2024 Check Digit, LLC
Check Digit ESLint configuration
$ npm i @checkdigit/eslint-config --save-dev
Note that @checkdigit/eslint-config
automatically brings in the correct version of eslint
and the various
plugins that are supported by the configuration via peerDependencies
.
{
// ...
"scripts": {
"lint": "eslint --max-warnings 0 --ignore-path .gitignore .",
"lint:fix": "eslint --ignore-path .gitignore . --fix",
"test": "... && npm run lint"
}
"eslintConfig": {
"extends": [
"@checkdigit/eslint-config"
]
}
// ...
}
MIT