import xxx from 'dubbo/service/com.dianwoxx.xxx.' ClassName: should be lowercase
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.
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"
}
}
- Fill in provided rules here