eslint-config-qualityworks

1.0.2 • Public • Published

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

Package Sidebar

Install

npm i eslint-config-qualityworks

Weekly Downloads

1

Version

1.0.2

License

ISC

Unpacked Size

2.58 kB

Total Files

3

Last publish

Collaborators

  • ofindley