0.1.3 • Published 3 years ago

eslint-config-prodperfectqa v0.1.3

Weekly downloads
1,759
License
UNLICENSED
Repository
-
Last release
3 years ago

eslint-config-prodperfectqa

Shareable ESLint configuration for ProdPerfect customer test suites.

Installation

Install the config with this command:

npm i eslint-config-prodperfectqa --save-dev

For ease of use, this package includes the eslint, babel-eslint, eslint-plugin-prodperfectqa, and eslint-plugin-prodperfectqa-skip-json dependencies, so there is no need to install them separately.

Configuration

To use the recommended configuration for customer test suites, set the extends property of the ESLint configuration file to eslint-config-prodperfectqa. By default, customer test suite should include a .eslintrc.json file at the repository root with the following contents:

{
  "extends": "eslint-config-prodperfectqa"
}

Use

Lint test suites by running eslint tests/test_*.js skip.json -c .eslintrc.json

For added convenience, include the following entry in the scripts section of the suite's package.json file:

"lint": "node_modules/.bin/eslint tests/regression-tests.js -c .eslintrc.json"

The test suite can then be linted by running npm run lint.