Update gulp-eslint version to 4.0#12450
Update gulp-eslint version to 4.0#12450rsimha merged 4 commits intoampproject:masterfrom rsimha:2017-12-13-GulpEslint
Conversation
|
For a more sane code review without whitespace-only changes, use this link: https://github.com/ampproject/amphtml/pull/12450/files?w=1 |
aghassemi
left a comment
There was a problem hiding this comment.
My only comment is about making sure that gulp lint still picks up custom rules defined in elint-rules folder, my worry is that maybe gulp-eslint v4 has followed the path of eslint v4 and removed support for rulesPath in favour of either rulesdir or plugins.
One way to verify is using the banned spread operator. In any file change a function call like foo(bar); to foo(...bar); and run gulp lint if it does not complain, custom rules are not being picked up.
|
@aghassemi The rules in Output: |
|
Double-verified by making sure that adding a spread operator will result in a lint error :) |
|
Thanks @rsimha-amp . LGTM. |
This PR does the following:
gulp-eslintused bygulp lintto 4.0ecmaFeaturessection of.eslintrc(we've already setecmaVersionto 6) (See https://eslint.org/docs/user-guide/migrating-to-2.0.0#language-options)indentrule (See https://eslint.org/docs/user-guide/migrating-to-4.0.0#indent-rewrite)no-multi-spacesrule (See https://eslint.org/docs/user-guide/migrating-to-4.0.0#-the-no-multi-spaces-rule-is-more-strict-by-default)Partial fix for #12181
Follow up to #12350