Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add use-t-well rule #73

Merged
merged 1 commit into from
Apr 12, 2016
Merged

Add use-t-well rule #73

merged 1 commit into from
Apr 12, 2016

Conversation

jfmengels
Copy link
Contributor

Adds use-t-well rule

I originally wanted to make the rule no-unknown-assertions, but adding checks to member expressions (t.context, ...) was easy, so I've made the rule more global. It now handles quite a few cases. It looks fine to me now, but I wouldn't be surprised if I missed some edge cases (false positives mostly). (If you guys have a a few projects to test it on, that'd be nice)

Let me know what you think :)

## Fail

```js
import test = from 'ava';
Copy link
Member

Choose a reason for hiding this comment

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

Illegal = there 😉

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Just checking whether you guys actually read the diffs whistle

Copy link
Member

Choose a reason for hiding this comment

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

Nah I just lint them 😜

@sindresorhus
Copy link
Member

No comments. This is perfect. Seriously. 🦄

@sindresorhus sindresorhus merged commit 1a67712 into master Apr 12, 2016
@sindresorhus sindresorhus deleted the no-unknown-t-members branch April 12, 2016 17:17
@jfmengels
Copy link
Contributor Author

:D

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants