Socket
Book a DemoInstallSign in
Socket

eslint-plugin-percolate

Package Overview
Dependencies
Maintainers
3
Versions
18
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eslint-plugin-percolate

Percolate's Eslint rules

1.0.4
latest
Source
npmnpm
Version published
Weekly downloads
1
Maintainers
3
Weekly downloads
 
Created
Source

eslint-plugin-percolate

Percolate's custom Eslint rules

Installation

You'll first need to install ESLint and eslint-plugin-import:

$ npm i eslint eslint-plugin-import --save-dev

Next, install eslint-plugin-percolate:

$ npm install eslint-plugin-percolate --save-dev

Note: If you installed ESLint globally (using the -g flag) then you must also install eslint-plugin-percolate globally.

Usage

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

{
    "plugins": ["percolate"]
}

Then configure the rules you want to use under the rules section.

{
    "rules": {
        "percolate/cjs-default": "error",
        "percolate/no-jsx-id-attrs": "error"
    }
}

Supported Rules

  • cjs-default: Verifies that commonJS require(...).default and export default ... are in sync
  • no-jsx-id-attrs: Prevents "id" attribute on DOM elements in JSX

Keywords

eslint

FAQs

Package last updated on 11 Jun 2019

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.