0.0.3 • Published 5 years ago

tslint-no-named-import-export v0.0.3

Weekly downloads
10
License
MIT
Repository
github
Last release
5 years ago

tslint-no-named-import-export

npm version CircleCI Dependency Status devDependencies Status npm

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$"]
    ...
  }
  ...