dtslint/docs/no-relative-import-in-test.md

16 строки
317 B
Markdown
Исходник Обычный вид История

2017-08-29 19:03:37 +03:00
# no-relative-import-in-test
A test file should not contain relative imports; it should use a global import of the library using [module resolution](http://www.typescriptlang.org/docs/handbook/module-resolution.html).
**Bad**:
```ts
import foo from "./index.d.ts";
```
**Good**:
```ts
import foo from "foo";
```