Skip to content
This repository has been archived by the owner on May 10, 2023. It is now read-only.

POC for a Patterns Eslint plugin

Notifications You must be signed in to change notification settings

etchteam/eslint-plugin-patterns

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

POC for a Patterns Eslint plugin

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published