1.2.17 • Published 2 months ago

@pedalboard/eslint-plugin-craftsmanlint v1.2.17

Weekly downloads
-
License
MIT
Repository
github
Last release
2 months ago

@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

2 months ago

1.2.13

1 year ago

1.2.16

1 year ago

1.2.15

1 year ago

1.2.12

2 years ago

1.2.11

2 years ago

1.2.9

2 years ago

1.2.10

2 years ago

1.2.8

2 years ago

1.2.7

2 years ago

1.2.6

2 years ago

1.2.5

2 years ago

1.2.4

2 years ago

1.2.3

2 years ago

1.2.2

2 years ago

1.2.1

2 years ago

1.2.0

2 years ago

1.1.3

2 years ago

1.1.2

2 years ago

1.1.1

2 years ago

1.1.0

2 years ago

1.0.8

2 years ago

1.0.7

2 years ago