Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Issue 29346539: Issue 3692 - Created global eslintrc (Closed)

Created:
June 15, 2016, 3:17 p.m. by juliandoucette
Modified:
Feb. 20, 2017, 2:06 p.m.
CC:
Felix Dahlke, martin, ppastour
Visibility:
Public.

Description

See https://codereview.adblockplus.org/29374555/ for continuation.

Patch Set 1 #

Patch Set 2 : Merged browser and plugin configs. Changed error to warn for all rules related to code style. Changed no-console and no-unused-var to warn. #

Patch Set 3 : Extended Palant's starter based on https://adblockplus.org/coding-style #

Total comments: 39

Patch Set 4 : removed rules covered by eslint:recommends #

Patch Set 5 : Changed all "warn"ings to "error"s #

Patch Set 6 : turned no-eq-null and no-unused-vars off #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+56 lines, -0 lines) Patch
A eslintrc.json View 1 2 3 4 5 1 chunk +56 lines, -0 lines 3 comments Download

Messages

Total messages: 30
juliandoucette
June 15, 2016, 3:17 p.m. (2016-06-15 15:17:45 UTC) #1
juliandoucette
On 2016/06/15 15:17:45, juliandoucette wrote: I used trev's eslint from easypasswords as a base and ...
June 15, 2016, 3:27 p.m. (2016-06-15 15:27:44 UTC) #2
Wladimir Palant
As I mentioned in the issue, we shouldn't be duplicating this code. Globals are better ...
June 15, 2016, 3:36 p.m. (2016-06-15 15:36:28 UTC) #3
juliandoucette
On 2016/06/15 15:36:28, Wladimir Palant wrote: > As I mentioned in the issue, we shouldn't ...
June 15, 2016, 3:49 p.m. (2016-06-15 15:49:40 UTC) #4
juliandoucette
On 2016/06/15 15:49:40, juliandoucette wrote: > On 2016/06/15 15:36:28, Wladimir Palant wrote: > > As ...
June 15, 2016, 3:51 p.m. (2016-06-15 15:51:23 UTC) #5
juliandoucette
On 2016/06/15 15:51:23, juliandoucette wrote: > On 2016/06/15 15:49:40, juliandoucette wrote: > > On 2016/06/15 ...
June 20, 2016, 7:20 p.m. (2016-06-20 19:20:50 UTC) #6
juliandoucette
Ready for review.
June 25, 2016, 6:44 p.m. (2016-06-25 18:44:36 UTC) #7
juliandoucette
On 2016/06/25 18:44:36, juliandoucette wrote: > Ready for review. Updated reviewers based on last Frontend ...
Sept. 15, 2016, 3:53 p.m. (2016-09-15 15:53:31 UTC) #8
Wladimir Palant
On 2016/06/15 15:49:40, juliandoucette wrote: > In that case, ES6 specific rules, like "no-var", will ...
Sept. 16, 2016, 8:07 a.m. (2016-09-16 08:07:42 UTC) #9
kzar
https://codereview.adblockplus.org/29346539/diff/29347028/.eslintrc.json File .eslintrc.json (right): https://codereview.adblockplus.org/29346539/diff/29347028/.eslintrc.json#newcode4 .eslintrc.json:4: /* MDN General practices */ (It surprised me to ...
Sept. 16, 2016, 10:33 a.m. (2016-09-16 10:33:51 UTC) #10
Wladimir Palant
https://codereview.adblockplus.org/29346539/diff/29347028/.eslintrc.json File .eslintrc.json (right): https://codereview.adblockplus.org/29346539/diff/29347028/.eslintrc.json#newcode8 .eslintrc.json:8: "no-alert": "warn", On 2016/09/16 10:33:50, kzar wrote: > There ...
Sept. 16, 2016, 11:37 a.m. (2016-09-16 11:37:06 UTC) #11
kzar
https://codereview.adblockplus.org/29346539/diff/29347028/.eslintrc.json File .eslintrc.json (right): https://codereview.adblockplus.org/29346539/diff/29347028/.eslintrc.json#newcode8 .eslintrc.json:8: "no-alert": "warn", On 2016/09/16 11:37:06, Wladimir Palant wrote: > ...
Sept. 16, 2016, 12:12 p.m. (2016-09-16 12:12:58 UTC) #12
juliandoucette
> If the point was turning an error into a warning - I don't see ...
Sept. 16, 2016, 12:42 p.m. (2016-09-16 12:42:13 UTC) #13
kzar
On 2016/09/16 12:42:13, juliandoucette wrote: > PS: I'm hoping that you guys will review **and** ...
Sept. 16, 2016, 2:05 p.m. (2016-09-16 14:05:22 UTC) #14
juliandoucette
> Is it even possible to submit patch sets to someone else's review? (I always ...
Sept. 16, 2016, 3:09 p.m. (2016-09-16 15:09:25 UTC) #15
Wladimir Palant
On 2016/09/16 15:09:25, juliandoucette wrote: > > Is it even possible to submit patch sets ...
Sept. 19, 2016, 12:28 p.m. (2016-09-19 12:28:34 UTC) #16
juliandoucette
> No, by default other people cannot submit changes. You have to edit issue > ...
Sept. 26, 2016, 6:37 p.m. (2016-09-26 18:37:40 UTC) #17
juliandoucette
I think I've covered everyones comments so far. https://codereview.adblockplus.org/29346539/diff/29347028/.eslintrc.json File .eslintrc.json (right): https://codereview.adblockplus.org/29346539/diff/29347028/.eslintrc.json#newcode4 .eslintrc.json:4: /* ...
Oct. 13, 2016, 2:14 p.m. (2016-10-13 14:14:10 UTC) #18
kzar
https://codereview.adblockplus.org/29346539/diff/29347028/.eslintrc.json File .eslintrc.json (right): https://codereview.adblockplus.org/29346539/diff/29347028/.eslintrc.json#newcode22 .eslintrc.json:22: "consistent-return": "error", On 2016/10/13 14:14:08, juliandoucette wrote: > On ...
Jan. 31, 2017, 10:17 a.m. (2017-01-31 10:17:49 UTC) #19
Sebastian Noack
I had a go running ESLint with the configuration from this review on the code ...
Jan. 31, 2017, 8:36 p.m. (2017-01-31 20:36:45 UTC) #20
kzar
On 2017/01/31 20:36:45, Sebastian Noack wrote: > I had a go running ESLint with the ...
Feb. 1, 2017, 5:23 a.m. (2017-02-01 05:23:22 UTC) #21
kzar
On 2017/02/01 05:23:22, kzar wrote: > On 2017/01/31 20:36:45, Sebastian Noack wrote: > > no-undef ...
Feb. 1, 2017, 6:32 a.m. (2017-02-01 06:32:44 UTC) #22
Sebastian Noack
On 2017/02/01 06:32:44, kzar wrote: > On 2017/02/01 05:23:22, kzar wrote: > > On 2017/01/31 ...
Feb. 1, 2017, 10:04 a.m. (2017-02-01 10:04:47 UTC) #23
kzar
On 2017/02/01 10:04:47, Sebastian Noack wrote: > no-cond-assign > -------------- > ... > Well, so ...
Feb. 1, 2017, 10:23 a.m. (2017-02-01 10:23:52 UTC) #24
Sebastian Noack
On 2017/02/01 10:23:52, kzar wrote: > Cool idea. Unfortunately it works with a whitelist not ...
Feb. 1, 2017, 10:51 a.m. (2017-02-01 10:51:44 UTC) #25
Sebastian Noack
I went through the list of available rules that we don't use yet, and found ...
Feb. 1, 2017, 7:50 p.m. (2017-02-01 19:50:36 UTC) #26
Sebastian Noack
On 2017/02/01 19:50:36, Sebastian Noack wrote: > I went through the list of available rules ...
Feb. 2, 2017, 1:01 p.m. (2017-02-02 13:01:37 UTC) #27
kzar
On 2017/02/02 13:01:37, Sebastian Noack wrote: > I revised the list of rules, I suggest ...
Feb. 3, 2017, 8:42 a.m. (2017-02-03 08:42:47 UTC) #28
kzar
On 2017/02/03 08:42:47, kzar wrote: > I've just gone through all of those and they ...
Feb. 3, 2017, 9:28 a.m. (2017-02-03 09:28:52 UTC) #29
Sebastian Noack
Feb. 3, 2017, 10:18 a.m. (2017-02-03 10:18:20 UTC) #30
On 2017/02/03 08:42:47, kzar wrote:
> I've just gone through all of those and they all look good to me. I'll add
those
> all, then go through and figure out which duplicates we have and also check to
> see if any are set by default by eslint:recommended.

There should be no rules that we've added before or are already included in
eslint:recommended, among those I suggested to add. I already checked that.
However, as I pointed out previously, there were some redundancies in the rules
we added before. Anyway, I'm happy that you agree to the rules I suggested to
add.

> Well how about using it but with the extra option so that property names
aren't
> checked? That mostly passes on adblockpluschrome with just two fixes required
to
> options.js:
> 
> "camelcase": ["error", {"properties": "never"}]

Well spotted. I guess we could use that option in combination with an eslint
comment in the prefs module. It's not ideal though, preferable we'd check
property definitions as well, just not lookups which is kinda stupid that ESLint
does that in the first place (if an API doesn't use camelcase, it's generally
the mistake of the code that defines the API, not of the code that uses it).

On 2017/02/03 09:28:52, kzar wrote:
> OK, I've now checked for duplicates and for any redundant rules which are on /
> off by default. Here's the new review:
> https://codereview.adblockplus.org/29374555/

Did you try to upload a new patch set to this review? The COLLABORATOR line in
the review's description aboce should allow you to so. It's one of Rietveld's
hidden features. I never tried it, and have no idea whether it works with our
Rietveld instance, though.

Powered by Google App Engine
This is Rietveld