@pedalboard/eslint-plugin-craftsmanlint
TypeScript icon, indicating that this package has built-in type declarations

1.2.17 • Public • Published

@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']}]
}

Readme

Keywords

none

Package Sidebar

Install

npm i @pedalboard/eslint-plugin-craftsmanlint

Weekly Downloads

0

Version

1.2.17

License

MIT

Unpacked Size

6.84 kB

Total Files

9

Last publish

Collaborators

  • mbarzeev