Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(228)

Issue 2872703003: WebUI: Hook up ESLint to web_dev_style PRESUBMIT. (Closed)

Created:
3 years, 7 months ago by dpapad
Modified:
3 years, 7 months ago
Reviewers:
Dan Beam, dglazkov
CC:
arv+watch_chromium.org, chromium-reviews
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

WebUI: Hook up ESLint to web_dev_style PRESUBMIT. Using a trivial .eslintrc.js config for now, just so that the checks can be enabled. More lint rules will be added in follow up CLs. BUG=720034 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:closure_compilation Review-Url: https://codereview.chromium.org/2872703003 Cr-Commit-Position: refs/heads/master@{#474720} Committed: https://chromium.googlesource.com/chromium/src/+/ff82d51d2b29b40486761fb60a2521af5f73e3cb

Patch Set 1 : More #

Patch Set 2 : Remove semicolon. #

Patch Set 3 : Merge conflicts. #

Patch Set 4 : Move to web_dev_style #

Patch Set 5 : Update #

Patch Set 6 : Fix case where no affected files exist. #

Patch Set 7 : Fix path. #

Total comments: 12

Patch Set 8 : Addressing comments. #

Total comments: 9

Patch Set 9 : Address comments. #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+54 lines, -0 lines) Patch
A .eslintrc.js View 1 2 3 4 1 chunk +16 lines, -0 lines 0 comments Download
M OWNERS View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M tools/web_dev_style/OWNERS View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M tools/web_dev_style/js_checker.py View 1 2 3 4 5 6 7 8 2 chunks +36 lines, -0 lines 2 comments Download

Messages

Total messages: 38 (25 generated)
dpapad
@dbeam: Please review tools/web_dev_style, and .eslintrc.js @dglazkov: Please OWNERS file change.
3 years, 7 months ago (2017-05-23 23:01:17 UTC) #18
dpapad
On 2017/05/23 at 23:01:17, dpapad wrote: > @dbeam: Please review tools/web_dev_style, and .eslintrc.js > @dglazkov: ...
3 years, 7 months ago (2017-05-23 23:03:45 UTC) #19
Dan Beam
looks pretty good to me! https://codereview.chromium.org/2872703003/diff/140001/tools/web_dev_style/js_checker.py File tools/web_dev_style/js_checker.py (right): https://codereview.chromium.org/2872703003/diff/140001/tools/web_dev_style/js_checker.py#newcode83 tools/web_dev_style/js_checker.py:83: \n\n between file-level globals ...
3 years, 7 months ago (2017-05-24 02:13:05 UTC) #23
dglazkov
lgtm
3 years, 7 months ago (2017-05-24 03:32:57 UTC) #24
dpapad
https://codereview.chromium.org/2872703003/diff/140001/tools/web_dev_style/js_checker.py File tools/web_dev_style/js_checker.py (right): https://codereview.chromium.org/2872703003/diff/140001/tools/web_dev_style/js_checker.py#newcode83 tools/web_dev_style/js_checker.py:83: On 2017/05/24 at 02:13:04, Dan Beam wrote: > \n\n ...
3 years, 7 months ago (2017-05-24 22:43:42 UTC) #25
Dan Beam
https://codereview.chromium.org/2872703003/diff/160001/tools/web_dev_style/js_checker.py File tools/web_dev_style/js_checker.py (right): https://codereview.chromium.org/2872703003/diff/160001/tools/web_dev_style/js_checker.py#newcode77 tools/web_dev_style/js_checker.py:77: import os use self.input_api.os_path instead of `import os` https://codereview.chromium.org/2872703003/diff/160001/tools/web_dev_style/js_checker.py#newcode78 ...
3 years, 7 months ago (2017-05-24 22:57:53 UTC) #26
Dan Beam
i guess these are all nits, so lgtm https://codereview.chromium.org/2872703003/diff/160001/tools/web_dev_style/js_checker.py File tools/web_dev_style/js_checker.py (right): https://codereview.chromium.org/2872703003/diff/160001/tools/web_dev_style/js_checker.py#newcode82 tools/web_dev_style/js_checker.py:82: old_path ...
3 years, 7 months ago (2017-05-24 23:01:34 UTC) #27
dpapad
https://codereview.chromium.org/2872703003/diff/160001/tools/web_dev_style/js_checker.py File tools/web_dev_style/js_checker.py (right): https://codereview.chromium.org/2872703003/diff/160001/tools/web_dev_style/js_checker.py#newcode77 tools/web_dev_style/js_checker.py:77: import os On 2017/05/24 at 22:57:53, Dan Beam wrote: ...
3 years, 7 months ago (2017-05-24 23:46:02 UTC) #29
Dan Beam
https://codereview.chromium.org/2872703003/diff/160001/tools/web_dev_style/js_checker.py File tools/web_dev_style/js_checker.py (right): https://codereview.chromium.org/2872703003/diff/160001/tools/web_dev_style/js_checker.py#newcode78 tools/web_dev_style/js_checker.py:78: _HERE_PATH = os.path.dirname(os.path.realpath(__file__)) On 2017/05/24 23:46:02, dpapad wrote: > ...
3 years, 7 months ago (2017-05-25 00:14:51 UTC) #30
Dan Beam
still lgtm, just a nit https://codereview.chromium.org/2872703003/diff/200001/tools/web_dev_style/js_checker.py File tools/web_dev_style/js_checker.py (right): https://codereview.chromium.org/2872703003/diff/200001/tools/web_dev_style/js_checker.py#newcode79 tools/web_dev_style/js_checker.py:79: _HERE_PATH = os_path.dirname(os_path.realpath(__file__)) why ...
3 years, 7 months ago (2017-05-25 01:01:20 UTC) #31
dpapad
https://codereview.chromium.org/2872703003/diff/200001/tools/web_dev_style/js_checker.py File tools/web_dev_style/js_checker.py (right): https://codereview.chromium.org/2872703003/diff/200001/tools/web_dev_style/js_checker.py#newcode79 tools/web_dev_style/js_checker.py:79: _HERE_PATH = os_path.dirname(os_path.realpath(__file__)) On 2017/05/25 at 01:01:20, Dan Beam ...
3 years, 7 months ago (2017-05-25 01:11:56 UTC) #32
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2872703003/200001
3 years, 7 months ago (2017-05-25 17:24:03 UTC) #35
commit-bot: I haz the power
3 years, 7 months ago (2017-05-25 18:40:31 UTC) #38
Message was sent while issue was closed.
Committed patchset #9 (id:200001) as
https://chromium.googlesource.com/chromium/src/+/ff82d51d2b29b40486761fb60a25...

Powered by Google App Engine
This is Rietveld 408576698