1.0.0-alpha.1 ⢠Published 2 years ago
eslint-plugin-lodash-specific-import v1.0.0-alpha.1
eslint-plugin-lodash-specific-import
Installation
You'll first need to install ESLint:
yarn add eslint -D
Next, install eslint-plugin-lodash-specific-import
:
yarn add eslint-plugin-lodash-specific-import -D
Usage
Add lodash-specific-import
to the plugins section of your .eslintrc
configuration file. You can omit the eslint-plugin-
prefix:
{
"plugins": [
"lodash-specific-import"
]
}
Then configure the rules you want to use under the rules section.
{
"rules": {
"lodash-specific-import/no-global": 2
}
}
Rules
š§ Automatically fixable by the --fix
CLI option.
Name | Description | š§ |
---|---|---|
no-global | enforce method-specific lodash imports | š§ |
1.0.0-alpha.1
2 years ago