Open addyosmani opened 8 years ago
I updated a few projects I work on with the new style guide and found three major areas of breakage:
1) comma-dangle
: New styles require trailing commas in arrays and object definition blocks. Many of our OSS projects do not do this.
2) arrow-parens
: The styleguide recommends using parens around single-argument arrow functions. Several of the projects I've seen extending this config include rules that actually require no parens in those cases. This may not cause breakage (if the rule is an override), but we should be consistent.
3) no-invalid-this
: I don't think this is a change for the previous Google style guide, closure compiler has always been pretty strict about where you could use this
for optimization reasons.
Is say make it a major release and don't worry about the breakage. If it's best practice / style then go with it.
Is there any way to view the new styleguide? The style guide linked in the readme is no longer accurate with these changes
It hasn't been published outside of Google just yet. We're working on it but it's going to take a bit :)
CC @dongbohu
Worth updating the readme to hint at using the eslint:recommended config as well as Google?
Found a few things that were nice to have from eslint:recommnded - forced env + ecmascript config.
I think so. Could you file an issue and we can get that tackled? On Tue, Oct 18, 2016 at 7:16 PM Matt Gaunt notifications@github.com wrote:
Worth updating the readme to hint at using the eslint:recommended config as well as Google?
Found a few things that were nice to have from eslint:recommnded - forced env + ecmascript config.
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/google/eslint-config-google/issues/24#issuecomment-254692088, or mute the thread https://github.com/notifications/unsubscribe-auth/AAGxaUijiOL73qPTpYT8wrwqSSRMLBXmks5q1X1lgaJpZM4KHHen .
Created #27. I'll send a PR for this shortly.
0.7.1 was published on NPM. Please, update url of "Google JavaScript style guide" in README.md @addyosmani and all the team, thank you.
cc @philipwalton @gauntface as an fyi