1.2.17 • Published 9 months ago
@pedalboard/eslint-plugin-craftsmanlint v1.2.17
@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']}]
}
1.2.17
9 months ago
1.2.13
2 years ago
1.2.16
2 years ago
1.2.15
2 years ago
1.2.12
2 years ago
1.2.11
2 years ago
1.2.9
3 years ago
1.2.10
2 years ago
1.2.8
3 years ago
1.2.7
3 years ago
1.2.6
3 years ago
1.2.5
3 years ago
1.2.4
3 years ago
1.2.3
3 years ago
1.2.2
3 years ago
1.2.1
3 years ago
1.2.0
3 years ago
1.1.3
3 years ago
1.1.2
3 years ago
1.1.1
3 years ago
1.1.0
3 years ago
1.0.8
3 years ago
1.0.7
3 years ago