Skip to content
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

Merged
merged 2 commits into from
Sep 16, 2019
Merged

fix: drop shell for lint #183

merged 2 commits into from
Sep 16, 2019

Conversation

Artoria2e5
Copy link
Contributor

using shell breaks filenames with ampersands.

we can node it ourselves; triggered by nodejs/node#29532

Misaka-0x447f
Misaka-0x447f previously approved these changes Sep 13, 2019
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'),
Copy link
Contributor

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.

Copy link
Member

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?

Copy link
Contributor Author

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.

Copy link
Contributor Author

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.

Copy link
Member

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

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

aghflaljdgajdlaj

@SunriseFox
Copy link
Contributor

Now use eslint api to lint.

Jack-Works
Jack-Works previously approved these changes Sep 16, 2019
SunriseFox
SunriseFox previously approved these changes Sep 16, 2019
@Jack-Works Jack-Works self-requested a review September 16, 2019 09:43
@Jack-Works Jack-Works merged commit fd12d9b into master Sep 16, 2019
@Jack-Works Jack-Works deleted the fix/no-path-bs branch September 16, 2019 09:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants