1.0.2 • Published 3 years ago
eslint-config-qualityworks v1.0.2
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-devN.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.jsonin the root of your projectThen add the code below to your
.eslintrc.jsonfile
{
"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.jsRun eslint against a folder
npx eslint test/For more information on Eslint please visit - https://eslint.org/docs/latest/user-guide/getting-started