Skip to content

tools: improve update-eslint.sh - #21819

Closed
Trott wants to merge 1 commit into
nodejs:masterfrom
Trott:reduce-eslint-churn
Closed

tools: improve update-eslint.sh#21819
Trott wants to merge 1 commit into
nodejs:masterfrom
Trott:reduce-eslint-churn

Conversation

@Trott

Copy link
Copy Markdown
Member
  • Pin version numbers when using npx. This means we can be careful
    about updating what we run. (Thinking about the recent eslint-scope
    thing.)
  • Add removeNPMAbsolutePaths to get rid of unused fields in package.json
    files. These unused fields can cause unnecessary churn, as at least
    one contains an absolute path that will be different for each
    developer.
Checklist
  • make -j4 test (UNIX), or vcbuild test (Windows) passes
  • commit message follows commit guidelines

* Pin version numbers when using `npx`. This means we can be careful
about updating what we run. (Thinking about the recent eslint-scope
thing.)
* Add removeNPMAbsolutePaths to get rid of unused fields in package.json
files. These unused fields can cause unnecessary churn, as at least
one contains an absolute path that will be different for each
developer.
@nodejs-github-bot

Copy link
Copy Markdown
Collaborator

@nodejs-github-botnodejs-github-bot added the tools Issues and PRs related to the tools directory. label Jul 15, 2018
@TrottTrott mentioned this pull request Jul 15, 2018
3 tasks
@Trott

Copy link
Copy Markdown
MemberAuthor

Ref: #21817 (comment)

@Trott

Copy link
Copy Markdown
MemberAuthor

CI failure is clearly unrelated (this code does not get run in CI), but we should do a full run anyway:

https://ci.nodejs.org/job/node-test-pull-request/15885/

@hiroppyhiroppy left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM, thx. Confirmed!

npx dmn@1.0.10 -f clean
# Use removeNPMAbsolutePaths to remove unused data in package.json.
# This avoids churn as absolute paths can change from one dev to another.
npx removeNPMAbsolutePaths@1.0.4 .

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

There's really an npm module for everything :D

Trott added a commit to Trott/io.js that referenced this pull request Jul 20, 2018
* Pin version numbers when using `npx`. This means we can be careful
about updating what we run. (Thinking about the recent eslint-scope
thing.)
* Add removeNPMAbsolutePaths to get rid of unused fields in package.json
files. These unused fields can cause unnecessary churn, as at least
one contains an absolute path that will be different for each
developer.
PR-URL: nodejs#21819
Reviewed-By: Yuta Hiroto <hello@hiroppy.me>
Reviewed-By: Vse Mozhet Byt <vsemozhetbyt@gmail.com>
Reviewed-By: Michaël Zasso <targos@protonmail.com>
Reviewed-By: Richard Lau <riclau@uk.ibm.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
Reviewed-By: Roman Reiss <me@silverwind.io>
@Trott

Copy link
Copy Markdown
MemberAuthor

Landed in 6ca5a8a

@TrottTrott closed this Jul 20, 2018
targos pushed a commit that referenced this pull request Jul 20, 2018
* Pin version numbers when using `npx`. This means we can be careful
about updating what we run. (Thinking about the recent eslint-scope
thing.)
* Add removeNPMAbsolutePaths to get rid of unused fields in package.json
files. These unused fields can cause unnecessary churn, as at least
one contains an absolute path that will be different for each
developer.
PR-URL: #21819
Reviewed-By: Yuta Hiroto <hello@hiroppy.me>
Reviewed-By: Vse Mozhet Byt <vsemozhetbyt@gmail.com>
Reviewed-By: Michaël Zasso <targos@protonmail.com>
Reviewed-By: Richard Lau <riclau@uk.ibm.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
Reviewed-By: Roman Reiss <me@silverwind.io>
@targostargos mentioned this pull request Jul 31, 2018
@Trott
Trott deleted the reduce-eslint-churn branch January 13, 2022 22:49
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

toolsIssues and PRs related to the tools directory.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

10 participants

@Trott@nodejs-github-bot@silverwind@lpinca@targos@cjihrig@hiroppy@richardlau@vsemozhetbyt@trivikr