Socket
Socket
Sign inDemoInstall

eslint-plugin-prodperfectqa

Package Overview
Dependencies
185
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    eslint-plugin-prodperfectqa

ESLint plugin with rules for ProdPerfect customer test suites


Version published
Maintainers
1
Install size
4.43 MB
Created

Readme

Source

eslint-plugin-prodperfectqa

ESLint plugin with rules for ProdPerfect customer test suites

Build Status

Installation

You'll first need to install ESLint:

$ npm i eslint --save-dev

Next, install eslint-plugin-prodperfectqa:

$ npm install "https://github.com/ProdPerfect/eslint-plugin-prodperfectqa" --save-dev

Usage

Add prodperfectqa to the plugins section of your .eslintrc configuration file. You can omit the eslint-plugin- prefix:

{
  "plugins": ["prodperfectqa"]
}

To use the recommended configuration for customer test suites, add plugin:prodperfectqa/recommended to the extends

{
  "extends": ["plugin:prodperfectqa/recommended"]
}

Alternately, configure the specific rules you want to use under the rules section.

{
  "rules": {
    "prodperfectqa/no-only": "error",
    "prodperfectqa/no-skip": "warn",
    "prodperfectqa/no-debug": "error"
  }
}

Supported Rules

Name✔️🛠Description
no-debug✔️Prevent use of .debug method on tests and fixtures
no-native-test✔️Prevent use of TestCafe's native test function
no-only✔️Prevent use of .only method on tests and fixtures
no-p2-tracking✔️Prevent use of deprecated methods setProdPerfectTracking and setProdPerfectCookie
no-skip✔️Prevent use of .skip method on tests and fixtures
valid-test-name✔️Validate test name
valid-test-metadata✔️Validate test metadata

Best practices

The rules set for best practices are based off eslint and unicorn recommended rules:

Override rules by configuring specific rules in your eslint configuration file

{
  "rules": {
    "no-undef": "off",
    "semi": "warn",
    "unicorn/filename-case": ["error", { case: "camelCase" }],
  }
}

Keywords

FAQs

Last updated on 10 Oct 2022

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc