@nanopang/eslint-plugin
v0.0.12
Published
A custom ESLint plugin to sync the Typeorm, NestJs Graphql and NestJs Query decorators nullable with the TypeScript type.
Downloads
4
Readme
@nanopang/eslint-plugin
A custom ESLint plugin to sync the Typeorm, NestJs Graphql and NestJs Query decorators nullable with the TypeScript type.
Installation
You can install the plugin using npm:
npm install @nanopang/eslint-plugin --save-dev
or
yarn add @nanopang/eslint-plugin --dev
Usage
Add the plugin to the plugins
section of your ESLint configuration file:
{
"plugins": ["@nanopang/eslint-plugin"]
}
Then configure the rules you want to use under the rules section.
{
"rules": {
"@nanopang/nullable-sync": "error", // all rules
"@nanopang/graphql-nullable-sync'": "error",
"@nanopang/typeorm-nullable-sync'": "error",
"@nanopang/nestjs-query-nullable-sync": "error",
}
}