JSPM

@groww-tech/eslint-plugin-internal

1.0.8
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 679
  • Score
    100M100P100Q112829F
  • License MIT

ESLint Plugin with customized rules as per requirement and preferences of devs in Groww.

Package Exports

  • @groww-tech/eslint-plugin-internal
  • @groww-tech/eslint-plugin-internal/lib/index.js

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@groww-tech/eslint-plugin-internal) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

eslint-plugin-internal

npm version


ESLint Plugin with customized rules as per requirement and preferences of devs in Groww.

Installation

You'll first need to install ESLint:

$ npm i eslint @typescript-eslint/parser --save-dev 

Next, install @groww-tech/eslint-plugin-internal:

$ npm install @groww-tech/eslint-plugin-internal --save-dev

Usage

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

{
    "plugins": [
        "@groww-tech/eslint-plugin-internal"
    ]
}

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

{  
    "parser": "@typescript-eslint/parser",
    "rules": {
    "@groww-tech/internal/two-line-above-function":"error",
    }
}

Supported Rules

avoid-negation-unary-if-else  
padded-blocks-bottom-if-else-try-catch 
prefer-type-alias
two-line-above-function
two-line-between-class-members

This plugin is for use in Groww projects. Use at your own risk.