1.0.8 • Published 8 months ago
@groww-tech/eslint-plugin-internal v1.0.8
eslint-plugin-internal
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-devUsage
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-aliastwo-line-above-functiontwo-line-between-class-membersThis plugin is for use in Groww projects. Use at your own risk.