mirror of
https://github.com/sourcegraph/sourcegraph.git
synced 2026-02-06 18:51:59 +00:00
This PR adds the eslint rules @typescript-eslint/consistent-type-imports and @typescript-eslint/no-import-type-side-effects. Having type imports be explicitly declared as such makes it easier for modern bundlers to strip those imports which is useful if e.g. a module is sent directly to the browser. I added both rules as a warning because @typescript-eslint/consistent-type-exports is also a warning. |
||
|---|---|---|
| .. | ||
| src | ||
| .eslintignore | ||
| .eslintrc.js | ||
| babel.config.js | ||
| BUILD.bazel | ||
| jest.config.js | ||
| package.json | ||
| README.md | ||
| tsconfig.json | ||