@nanopang/eslint-plugin

0.0.12 • Public • Published

@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",
  }
}

Readme

Keywords

none

Package Sidebar

Install

npm i @nanopang/eslint-plugin

Weekly Downloads

24

Version

0.0.12

License

ISC

Unpacked Size

3.09 kB

Total Files

4

Last publish

Collaborators

  • nanopang