Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

eslint-plugin-stzhang

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eslint-plugin-stzhang

A group of ESLint plugin and presets for the AMO company. # Setup 1. Global tools 1. `npm install -g yo` 1. `npm install -g generator-eslint` 1. Generate the eslint-plugin skeleton 1. `yo eslint:plugin` 1. Generate the eslint-rules skel

  • 0.0.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

eslint-plugin-stzhang

A group of ESLint plugin and presets for the AMO company.

Setup

  1. Global tools
    1. npm install -g yo
    2. npm install -g generator-eslint
  2. Generate the eslint-plugin skeleton
    1. yo eslint:plugin
  3. Generate the eslint-rules skeleton
    1. yo eslint:rule

References

  1. https://medium.com/@btegelund/creating-an-eslint-plugin-87f1cb42767f
  2. https://www.kenneth-truyers.net/2016/05/27/writing-custom-eslint-rules/

Installation

You'll first need to install ESLint:

$ npm i eslint --save-dev

Next, install eslint-plugin-stzhang:

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

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

Usage

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

{
    "plugins": [
        "stzhang"
    ]
}

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

{
  "rules": {
    "stzhang/arrow-parens": ["error", "as-needed"],
    "stzhang/generator-star-spacing": ["error", "before"],
    "stzhang/no-array-concat": ["error"],
    "stzhang/no-string-charcode": ["error"],
    "stzhang/no-util-format": ["error"],
    "stzhang/require-yield": 2,
    "stzhang/no-console": 2
  }
}

Supported Rules

  • Fill in provided rules here

FAQs

Package last updated on 30 Jun 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

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc