You're Invited: Meet the Socket team at BSidesSF and RSAC - April 27 - May 1.RSVP
Socket
Sign inDemoInstall
Socket

@etchteam/eslint-plugin-patterns

Package Overview
Dependencies
Maintainers
3
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@etchteam/eslint-plugin-patterns

eslint rules for Patterns

0.1.3
latest
npm
Version published
Weekly downloads
1
-94.44%
Maintainers
3
Weekly downloads
 
Created
Source

eslint-plugin-patterns

Eslint rules specifically for Patterns to help encourage best practice usage.

Installation

You'll first need to install ESLint:

npm i eslint --save-dev

Next, install @etchteam/eslint-plugin-patterns:

npm install @etchteam/eslint-plugin-patterns --save-dev

Usage

Add @etchteam/patterns to the plugins section of your .eslintrc configuration file:

{
    "plugins": [
        "'@etchteam/patterns'"
    ]
}

Then configure the rules you want to use under the rules section. Recommended config is below.

{
    "rules": {
        "@etchteam/patterns/dont-touch-src": "warn",
        "@etchteam/patterns/dont-add-classes-to-components": "warn"
    }
}

Supported Rules

  • @etchteam/patterns/dont-touch-src
  • @etchteam/patterns/dont-add-classes-to-components

Keywords

eslint

FAQs

Package last updated on 04 Nov 2022

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