1.0.2 • Published 2 years ago

eslint-config-qualityworks v1.0.2

Weekly downloads
-
License
ISC
Repository
github
Last release
2 years ago

QualityWorks Eslint Config

QualityWorks recommended JS Eslint configurations for writing Test Automation.

Dependencies

  1. NodeJS & NPM
  2. Sample JavaScript Test Automation Project
  3. Eslint

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 project

  • Then 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