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

Add no-import-side-effect rule #2155

Merged
merged 1 commit into from Jan 31, 2017

Conversation

mgechev
Copy link
Contributor

@mgechev mgechev commented Jan 30, 2017

Fix #2116

PR checklist

What changes did you make?

Introduced a rule which warns when used imports with side-effects. For more details here #2116.

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

Have I added the required documentation.

@palantirtech
Copy link
Member

Thanks for your interest in palantir/tslint, @mgechev! Before we can accept your pull request, you need to sign our contributor license agreement - just visit https://cla.palantir.com/ and follow the instructions. Once you sign, I'll automatically update this pull request.

Copy link
Contributor

@nchen63 nchen63 left a comment

Choose a reason for hiding this comment

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

couple of minor issues

@@ -0,0 +1,21 @@
{
Copy link
Contributor

Choose a reason for hiding this comment

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

file path should be ignore-module not ignore-pattern

@@ -0,0 +1,78 @@
/**
* @license
* Copyright 2015 Palantir Technologies, Inc.
Copy link
Contributor

Choose a reason for hiding this comment

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

2017

@mgechev
Copy link
Contributor Author

mgechev commented Jan 31, 2017

@nchen63 thanks for the review! I addressed your comments.

@nchen63 nchen63 merged commit a8c9a10 into palantir:master Jan 31, 2017
@nchen63
Copy link
Contributor

nchen63 commented Jan 31, 2017

@mgechev thanks!

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.

Warn for import statements with side-effects
3 participants