Use this in your project:
-
Install the plugin and ESLint:
npm install --save-dev @qawolf/eslint-plugin eslint@8
-
Create an .eslintrc.js file:
module.exports = { extends: ["plugin:@qawolf/main"], plugins: ["@qawolf"], };
-
Add linting scripts to your package.json:
{ "scripts": { "lint": "eslint .", "lint:thorough": "THOROUGH_LINT=true eslint ." } }
You probably want to run the thorough one in CI.
QA Wolf is a hybrid platform & service that helps software teams ship better software faster by taking QA completely off their plate.