Socket
Book a DemoInstallSign in
Socket

eslint-plugin-react-percy

Package Overview
Dependencies
Maintainers
2
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eslint-plugin-react-percy

ESLint rules for @percy/react

0.2.4
latest
Source
npmnpm
Version published
Weekly downloads
59
-68.45%
Maintainers
2
Weekly downloads
 
Created
Source

eslint-plugin-react-percy

Package Status Build Status

ESLint plugin for react-percy.

Installation

$ yarn add --dev eslint eslint-plugin-react-percy

Note: If you installed ESLint globally then you must also install eslint-plugin-react-percy globally.

Usage

Add react-percy to the plugins section of your .eslintrc configuration file:

{
  "plugins": [
    "react-percy"
  ]
}

You can whitelist the environment variables provided by react-percy by doing:

{
  "env": {
    "react-percy/globals": true
  }
}

If you're using ESLint v4.1.0 or later, you can instead scope the react-percy environment variables to only react-percy test files by doing:

{
  "overrides": [
    {
      "files": [
        "**/__percy__/**/.*.{js,jsx}",
        "**/*.percy.{js,jsx}"
      ],
      "env": {
        "react-percy/globals": true
      }
    }
  ]
}

Keywords

eslint

FAQs

Package last updated on 13 Sep 2018

Did you know?

Socket

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

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.