-
Notifications
You must be signed in to change notification settings - Fork 6
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 missing rules and improve tests #69
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Other than some small comments, LGTM.
test/fixtures/incorrect.js
Outdated
@@ -123,17 +131,16 @@ try { | |||
noop(); | |||
} catch (e) {} | |||
|
|||
// `no-labels`. | |||
// `no-labels` and `no-unused-labels`. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We're not using no-unused-labels
in our list of rules. Should we ignore this, since it's a rule that gets redundant by no-labels
anyway?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good point. I used the label in the fixtures so that this particular rule no longer triggers.
test/fixtures/incorrect.js
Outdated
@@ -193,10 +196,10 @@ noop(oneVar1); | |||
noop(oneVar2); | |||
|
|||
// `one-var-declaration-per-line`. | |||
const oneVar1 = 'foo'; const oneVar2 = 'bar'; | |||
const oneVar3 = 'foo'; const oneVar4 = 'bar'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Having these variables start counting at 3 is weird. Follow another naming pattern maybe?
804d70a
to
737599c
Compare
737599c
to
963e693
Compare
This PR: