0.1.1 • Published 7 months ago

eslint-plugin-sellernote v0.1.1

Weekly downloads
-
License
MIT
Repository
github
Last release
7 months ago

eslint-plugin-sellernote

Custom ESLint rules for Sellernote.

Why?

Just developing for my team.

Installation

You'll first need to install ESLint:

$ npm i -D eslint

Next, install eslint-plugin-sellernote:

$ npm install -D eslint-plugin-sellernote

Usage

Add sellernote to the plugins section of your configuration file. Note that below configuration examples are for flat-configuration format.

import sellernote from 'eslint-plugin-sellernote';

export default [
  {
    plugins: {
      // ...
      sellernote,
    },
  },
];

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

export default [
  // ....
  {
    rules: {
      // .....
      'sellernote/rule-name-to-add': 'warn',
    },
  },
];

Supported Rules

Name                                               Description
repository-method-prefixThe method name in repository should start with findOne, findMany for read, create for creation, update for modification, delete for deletion
typeorm-column-should-specify-typeTypeORM Column annotation should specify a type property
typeorm-nullable-column-should-have-null-union-typeTypeORM nullable column should have null union type
use-api-operationUse @ApiOperation for API endpoints

Special Thanks to

https://ts-ast-viewer.com/

0.1.1

7 months ago

0.1.0

7 months ago

0.0.1

7 months ago