eslint-config-qualityworks
v1.0.2
Published
This package includes QualityWorks Eslint configurations.
Downloads
8
Maintainers
Readme
QualityWorks Eslint Config
QualityWorks recommended JS Eslint configurations for writing Test Automation.
Dependencies
Installation
- Install QualityWorks NPM JS Eslint config module
npm install eslint-config-qualityworks --save-dev
N.B. The Eslint NPM module is required to use this config module and will be automatically installed.
Eslint config file
Create a file named
.eslintrc.json
in the root of your projectThen add the code below to your
.eslintrc.json
file
{
"extends": "qualityworks"
}
Usage
Examples of executing eslint
Run eslint against the whole project
npx eslint .
Run eslint against a single file
npx eslint test/specs/auth/login.test.js
Run eslint against a folder
npx eslint test/
For more information on Eslint please visit - https://eslint.org/docs/latest/user-guide/getting-started