Skip to content
This repository has been archived by the owner on Mar 25, 2021. It is now read-only.

Update to latest tsutils, fix import-blacklist #3258

Merged
merged 2 commits into from Oct 5, 2017
Merged

Update to latest tsutils, fix import-blacklist #3258

merged 2 commits into from Oct 5, 2017

Conversation

ajafff
Copy link
Contributor

@ajafff ajafff commented Sep 28, 2017

PR checklist

Overview of change:

Simplify import related rules.
[enhancement] import-blacklist also checks exports and dynamic imports
Fixes: #3254
[enhancement] no-submodule-imports also checks exports

Is there anything you'd like reviewers to focus on?

CHANGELOG.md entry:

Simplify import related rules.
[enhancement] `import-blacklist` also checks exports and dynamic imports
Fixes: #3254
[enhancement] `no-submodule-imports` also checks exports
Copy link
Contributor

@adidahiya adidahiya left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

generally lgtm, but do you want to upgrade to 2.11 now that it's out?

import {
isCallExpression, isExternalModuleReference, isIdentifier, isImportDeclaration, isImportEqualsDeclaration, isTextualLiteral,
} from "tsutils";
import { findImports, ImportOptions } from "tsutils";
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ImportOptions is a little opaque to me; I think a better name might be ImportKind?

@ajafff
Copy link
Contributor Author

ajafff commented Oct 5, 2017

Updated to 2.12.0 and changed the name of the enum to ImportKind as suggested

@ajafff ajafff merged commit cef6ec5 into palantir:master Oct 5, 2017
HyphnKnight pushed a commit to HyphnKnight/tslint that referenced this pull request Apr 9, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

import-blacklist does not check export statements
2 participants