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

chore: fix eslint no-undef #1462

Merged
merged 3 commits into from
Jan 13, 2017
Merged

chore: fix eslint no-undef #1462

merged 3 commits into from
Jan 13, 2017

Conversation

patrickhulce
Copy link
Collaborator

addresses #1461

@@ -5,6 +5,11 @@ module.exports = {
"env": {
"node": true
},
"globals": {
"Map": false,
Copy link
Member

Choose a reason for hiding this comment

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

shouldn't these be false by default?

@brendankenny
Copy link
Member

looks like eslint-config-google now takes a strict interpretation of the google styleguide and takes no opinion about things not mentioned in it. They recommend to get the eslint:recommended things that you actually extend both the google config and the recommended one. Somehow we missed that: https://github.com/google/eslint-config-google#using-the-google-config-with-eslintrecommended

So should we switch to "extends": ["eslint:recommended", "google"]?

Copy link
Member

@brendankenny brendankenny left a comment

Choose a reason for hiding this comment

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

looking good (contingent on travis). Two suggestions to narrow the no-console scope

@@ -16,6 +16,8 @@
*/
'use strict';

/* eslint-disable no-console */
Copy link
Member

Choose a reason for hiding this comment

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

since there's only one console.log in here for a specific reason, but it's mostly a log.*() file, does it make sense to limit to // eslint-disable-next-line no-console over line 285?

@@ -17,6 +17,8 @@

'use strict';

/* eslint-disable no-console */
Copy link
Member

Choose a reason for hiding this comment

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

maybe just // eslint-disable-next-line no-console for just the one line in this file too?

@patrickhulce
Copy link
Collaborator Author

patrickhulce commented Jan 12, 2017 via email

@brendankenny
Copy link
Member

🎉🎆🎉

@brendankenny brendankenny merged commit 96173a2 into master Jan 13, 2017
@brendankenny brendankenny deleted the fix_eslint branch January 13, 2017 00:56
andrewrota pushed a commit to andrewrota/lighthouse that referenced this pull request Jan 13, 2017
* update to bring in `eslint:recommended` as base config
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants