google / eslint-config-google

ESLint shareable config for the Google JavaScript style guide
Apache License 2.0
1.74k stars 140 forks source link

[added] no-unused-vars: args:none #15

Closed appsforartists closed 8 years ago

appsforartists commented 8 years ago

This is another case where @sindresorhus appears to be more opinionated than Google is. Moreover, there are valid reasons that you may have unused arguments in a function, such as:

Therefore, I'm disabling the no-unused-vars check on arguments.

sindresorhus commented 8 years ago

@appsforartists Are there any official docs about this convention? A lot of non-Googler are using this preset too, so would be nice to refer them to something.

appsforartists commented 8 years ago

@sindresorhus

Most of the changes I'm making are on things where there doesn't seem to be an established internal edict. If I find comments about any of it, of course, I'll post them here.

sindresorhus commented 8 years ago

Maybe document what the preset is not opinionated about so users can set those rules themselves? For example, the curly rule is something that most users would want to enforce (regardless of its value).

sindresorhus commented 8 years ago

The change itself looks good to me though. @addyosmani ?

addyosmani commented 8 years ago

Changes here LGTM

appsforartists commented 8 years ago

Thanks guys. Somebody want to press the Merge button? 😉

@sindresorhus Documenting intentionally unset style choices is an interesting idea, but honestly it's not high on my priority list. Perhaps people who want something more strict than Google should try xo. 😄

sindresorhus commented 8 years ago

People want the Google preset because Google.

I'll document this later.

appsforartists commented 8 years ago

Thanks.