tslint-no-named-import-export
0.0.3 • Public • Published 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$"]
...
}
...
Dependencies (1)
Dev Dependencies (4)
Package Sidebar
Install
npm i tslint-no-named-import-export
Weekly Downloads