tslint-no-named-import-export
v0.0.3
Published
TSLint rule that prohibits named exports
Downloads
2
Maintainers
Readme
tslint-no-named-import-export
Disallows named imports and exports in ES6-style modules. Can be used to mimic "module interface".
Getting started
$ npm i tslint-no-named-import-export -D
Usage
Specify affected files/modules with regex pattern or list of patterns:
// tslint.json
"extends": [
"tslint-no-named-import-export"
],
"rules": {
"no-named-export": [true, "^view\\.(native|web|ios|android)\\.tsx?$"],
"no-named-import": [true, "^view$"]
...
}
...