@pedalboard/eslint-plugin-craftsmanlint
v1.2.17
Published
A set of ESlint rules for your code craftsmanship
Downloads
9
Readme
@pedalboard/eslint-plugin-craftsmanlint
A set of ESlint rules for your code craftsmanship
Installation
yarn
yarn add @pedalboard/eslint-plugin-craftsmanlint -D
npm
npm i @pedalboard/eslint-plugin-craftsmanlint -D
Rules
no-namespace-imports
This rule will disallow importing namespaces from modules, e.g. import * as something from 'module'
.
Here is how you include it in your .eslintrc.json
"plugins": ["@pedalboard/craftsmanlint"],
"rules": {
"@pedalboard/craftsmanlint/no-namespace-imports": ["error"]
}
If you don't give it any configuration it will prevent these imports from any module, but you can configure it to disallow these imports only for certain modules, e.g. in the following example it applies only for ./forbidden/module
:
{
"@pedalboard/craftsmanlint/no-namespace-imports": ["error", {forbiddenModules: ['./forbidden/module']}]
}