zhongjie-chen / eslint-plugin-import-service

@dwd/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

eslint-plugin-import-service

import xxx from 'dubbo/service/com.dianwoxx.xxx.' ClassName: should be lowercase

Installation

You'll first need to install ESLint:

$ npm i eslint --save-dev

Next, install @dwd/eslint-plugin-import-service:

$ npm install @dwd/eslint-plugin-import-service --save-dev

Note: If you installed ESLint globally (using the -g flag) then you must also install @dwd/eslint-plugin-import-service globally.

Usage

Add @dwd/import-service to the plugins section of your .eslintrc configuration file. You can omit the eslint-plugin- prefix:

{
    "plugins": [
        "@dwd/import-service"
    ]
}

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

{
    "rules": {
        "@dwd/import-service/lowercase-service-path": "error"
    }
}

Supported Rules

  • Fill in provided rules here

About

@dwd/


Languages

Language:JavaScript 100.0%