eslint-plugin-sellernote
TypeScript icon, indicating that this package has built-in type declarations

0.1.1 • Public • Published

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-prefix The method name in repository should start with findOne, findMany for read, create for creation, update for modification, delete for deletion
typeorm-column-should-specify-type TypeORM Column annotation should specify a type property
typeorm-nullable-column-should-have-null-union-type TypeORM nullable column should have null union type
use-api-operation Use @ApiOperation for API endpoints

Special Thanks to

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

Package Sidebar

Install

npm i eslint-plugin-sellernote

Weekly Downloads

0

Version

0.1.1

License

MIT

Unpacked Size

56.2 kB

Total Files

54

Last publish

Collaborators

  • wisedog