Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.
Sign upstandard-strict #382
Comments
This comment has been minimized.
This comment has been minimized.
What is wrong with that? |
This comment has been minimized.
This comment has been minimized.
|
Because that will raise an error in strict mode. |
This comment has been minimized.
This comment has been minimized.
pbrinkmeier
commented
Jan 12, 2016
|
I like the idea, but I would keep |
This comment has been minimized.
This comment has been minimized.
|
yeah, we should avoid having options. @rstacruz have you raised those rules to be considered in individual issues? I'm not familiar with all of them, but perhaps they'd be a good addition. |
This comment has been minimized.
This comment has been minimized.
|
aye, a separate package makes sense. they were /sorta/ discussed in #216, with an exhaustive list of differences from xo here: #216 (comment) nonetheless, i think it makes sense to do it in a separate package at first (think of it as "standard-staging"), and we can eventually migrate rules into upstream standard. It really is no big deal to build it as a separate package, it's basically: /* eslintrc */
{
"extends": [ "standard", "standard-react", "standard-strict" ]
} |
This comment has been minimized.
This comment has been minimized.
denis-sokolov
commented
Jan 27, 2016
|
Awkward... |
This comment has been minimized.
This comment has been minimized.
|
nice one denis! |
This comment has been minimized.
This comment has been minimized.
|
@dcousens @feross any thoughts on those additional rules? |
This comment has been minimized.
This comment has been minimized.
|
Not completely against this idea. Need to think about it more. |
This comment has been minimized.
This comment has been minimized.
|
Here's another rule that would make sense for a stricter mode: #381 |
feross
added
feature request
enhancement
meta
labels
Feb 4, 2016
This comment has been minimized.
This comment has been minimized.
|
Another rule: standard/eslint-config-standard#21 |
This comment has been minimized.
This comment has been minimized.
|
Perhaps Make it the bleeding-edge of what can be expected in the next major version of |
This comment has been minimized.
This comment has been minimized.
|
Maybe |
This comment has been minimized.
This comment has been minimized.
|
One more rule: standard/eslint-config-standard#19 |
This comment has been minimized.
This comment has been minimized.
|
https://github.com/denis-sokolov/strict-standard @denis-sokolov did some fine work on this. |
This comment has been minimized.
This comment has been minimized.
|
@dcousens @feross Are you familiar with codemods? There's a Facebook library jscodeshift that lets you apply AST transformations to JS code, instead of doing text transformations. It may be worth considering writing a few transforms for breaking changes. Even if they don't catch all the cases, it makes it much easier for people to upgrade their projects. |
This comment has been minimized.
This comment has been minimized.
|
@cesarandreu Neat. This could come in handy for |
This comment has been minimized.
This comment has been minimized.
|
I'd say this has lost steam. Close? |
This comment has been minimized.
This comment has been minimized.
|
We've basically been making Now that we have |
rstacruz commentedJan 12, 2016
What are your thoughts on making
eslint-config-standard-strict?This would be extra rules on top of
eslint-config-standardthat would add more checks, like:return /=foo/)() => this)At first, it can be not integrated into standard at all, but eventually can be added as
standard --strictandstandard.lintFiles({ strict: true }). This will also set the precedent that we can have--no-reactor similar flags.