-
Notifications
You must be signed in to change notification settings - Fork 309
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
fix: drop shell for lint #183
Conversation
scripts/lint.js
Outdated
[ | ||
// Guess what happens if you don't do this? | ||
// Path resolution makes a \n, which becomes... | ||
path.join(base, 'node_modules/eslint/bin/eslint.js'), |
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.
This could be a problem in case of using pnpm.
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.
What about require.resolve('eslint') or something?
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.
pnpm will not break because both are explicit dependencies.
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.
doing a resolve sounds good but is pointless -- they are never going to resolve into global deps or the installation is broken. and if they are not global does they are going to be exactly there because they are explicitly listed as deps.
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.
reasonable. but hard code a path is little hack with me
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.
aghflaljdgajdlaj
Now use eslint api to lint. |
we can node it ourselves; triggered by nodejs/node#29532
4ed0445
a49b394
to
4ed0445
Compare
using
shell
breaks filenames with ampersands.we can node it ourselves; triggered by nodejs/node#29532