-
-
Notifications
You must be signed in to change notification settings - Fork 3k
chore: use neostandard
as base for linting
#5302
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
67a4bda
to
0ba51f4
Compare
Could possibly add |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Aside from the comments, can confirm all this does is change var
to const
or let
and make some whitespace changes
@@ -239,14 +239,14 @@ const loadPkgRc = (args = {}) => { | |||
configData = fs.readFileSync(filepath, 'utf8'); | |||
} catch (err) { | |||
// If `args.package` was explicitly specified, throw an error | |||
if (filepath == args.package) { | |||
if (filepath === args.package) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
are double-equals and triple-equals always equivalent in this case?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since filepath
is a string that should be the case
@@ -128,8 +127,7 @@ | |||
"chai": "^4.3.4", | |||
"coffeescript": "^2.6.1", | |||
"cross-env": "^7.0.2", | |||
"eslint": "^8.56.0", | |||
"eslint-plugin-n": "^17.15.1", | |||
"eslint": "^9.22.0", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just commenting here as a reminder that this PR updates to ESLint v9 (might otherwise get lost in all the other changes)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, I was surprised that we hadn't already updated
There are still many warnings that should be dealt with, and the comments in the issue suggests that we add Can also note that this PR improves / fixes how the |
Style less alternative: #5313 |
Can't spend more time on this, create a PR of your own if there's any interest in neostandard. |
PR Checklist
That issue was marked asstatus: accepting prs
Overview
Since it was requested that I took time to do this if I wanted this done, then here's an initial migration to
neostandard