chore: enable ESLint's recommended JS rules#5282
chore: enable ESLint's recommended JS rules#5282JoshuaKGoldberg wants to merge 5 commits intomochajs:mainfrom
Conversation
| spy(); | ||
| done(); | ||
| }, 50); | ||
| }, 10); |
There was a problem hiding this comment.
I tweaked this to have a bit smaller of a total setTimeout time.
There was a problem hiding this comment.
Everything else looks good so I'm happy to approve, but I'm too new to comment on this one, hoping someone else can weigh in to confirm no breaking changes or anything!
| spy(); | ||
| done(); | ||
| }, 50); | ||
| }, 10); |
There was a problem hiding this comment.
Everything else looks good so I'm happy to approve, but I'm too new to comment on this one, hoping someone else can weigh in to confirm no breaking changes or anything!
voxpelli
left a comment
There was a problem hiding this comment.
I think we should go with neostandard instead of continue to customize our own. Mocha used to be a standard linted project
|
@voxpelli I don't see why we need to block this in the meantime. Are there specific lint rules from the ESLint recommended set that you don't think we should enable? I personally don't like big conglomeration projects like neostandard. I find them to conflate logical rules with stylistic ones, and obfuscate the differences by presenting a single unified config area. I might not be correct and am certainly open to the discussion - but I think there's going to be back-and-forth on whether to use neostandard. If anything, I would think enabling the ESLint recommended rules would help onboard to neostandard, no? Either:
|
|
I don't see the reluctance to move to neostandard – both me and @Uzlopak was pro that in #5281 (comment) and we both use it in our other projects such as As such: Why should we spend time setting up different rules and possibly diverging mocha from what it was prior to #5060 ? Isn't that just a waste of time that may in turn cause even more waste of time?
Not true with
There is no relation between ESLint recommended and neostandard at all – any subset / superset is completely coincidental – I do not believe ESLint recommended is a subset |
Heh, this confuses me. Are you saying there are rules in ESLint's recommended set that you wouldn't want enabled? I'm not clear on how this answers #5282 (comment) - what work do you see as likely needing to be undone if+when Mocha switches to neostandard? Especially given:
(ACK, thanks - I had misinterpreted. Filed neostandard/neostandard#273) |
| rules: { | ||
| 'no-empty': 'off', | ||
| 'no-redeclare': 'off', | ||
| 'no-var': 'off', |
There was a problem hiding this comment.
This would be a TODO for a subsequent PR, to keep the diff small.
|
Marking as blocked per discussion in #5301. |
voxpelli
left a comment
There was a problem hiding this comment.
Can't spend more time on this, either create a PR of your own if there's any interest in neostandard or just merge this and disregard that.
voxpelli
left a comment
There was a problem hiding this comment.
I guess I have to approve to get rid of the blocker
PR Checklist
status: accepting prsOverview
Fixes all the
no-unused-varscomplaints, and suppresses the rules that would be more intricate to fix.