🚀 Socket Launch Week Day 5:Introducing Repository Access Permissions and Custom Roles.Learn more
Sign In

eslint-plugin-plm

Package Overview
Dependencies
Maintainers
2
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eslint-plugin-plm

Custom eslint rules for PatientsLikeMe js projects

latest
npmnpm
Version
0.1.6
Version published
Weekly downloads
391
-6.01%
Maintainers
2
Weekly downloads
 
Created
Source

eslint-plugin-plm

PLM eslint rules

A set of eslint rules for plm javascript projects.

Installation

This project uses yarn, but any yarn commands can be replaced with npm.

Dev install

  git clone git@github.com:patientslikeme/eslint-plugin-plm.git
  cd eslint-plugin-plm
  yarn install

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

Usage

Run npm install --save-dev eslint-plugin-plm in your js project. Add plm to the plugins section of your .eslintrc configuration file. You can omit the eslint-plugin- prefix:

{
    "plugins": [
        "plm"
    ]
}

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

{
    "rules": {
        "plm/rule-name": 2
    }
}

Supported Rules

Adding a Rule

This project uses yeoman. To add a new rule:

  yarn generate:rule

Make sure all tests are passing: yarn run test.

For more details on writing rules, see this post and the official docs.

Copy and paste the tests cases for your rule into AST explorer to make life easier.

Keywords

eslint

FAQs

Package last updated on 06 Mar 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