-
Notifications
You must be signed in to change notification settings - Fork 0
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
build(deps): bump lint-staged from 14.0.1 to 15.0.2 #1642
Closed
Closed
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Diff between lint-staged 14.0.1 and 15.0.2diff --git a/bin/lint-staged.js b/bin/lint-staged.js
index v14.0.1..v15.0.2 100755
--- a/bin/lint-staged.js
+++ b/bin/lint-staged.js
@@ -16,4 +16,6 @@
}
+const debugLog = debug('lint-staged:bin')
+
// Do not terminate main Listr process on SIGINT
process.on('SIGINT', () => {})
@@ -22,7 +24,4 @@
const version = packageJson.version
-const debugLog = debug('lint-staged:bin')
-debugLog('Running `lint-staged@%s`', version)
-
const cli = program.version(version)
@@ -91,4 +90,6 @@
}
+debugLog('Running `lint-staged@%s` on Node.js %s (%s)', version, process.version, process.platform)
+
const options = {
allowEmpty: !!cliOptions.allowEmpty,
diff --git a/lib/makeCmdTasks.js b/lib/makeCmdTasks.js
index v14.0.1..v15.0.2 100644
--- a/lib/makeCmdTasks.js
+++ b/lib/makeCmdTasks.js
@@ -25,6 +25,8 @@
// command function may return array of commands that already include `stagedFiles`
const isFn = typeof cmd === 'function'
- const resolved = isFn ? await cmd(files) : cmd
+ /** Pass copy of file list to prevent mutation by function from config file. */
+ const resolved = isFn ? await cmd([...files]) : cmd
+
const resolvedArray = Array.isArray(resolved) ? resolved : [resolved] // Wrap non-array command as array
diff --git a/lib/runAll.js b/lib/runAll.js
index v14.0.1..v15.0.2 100644
--- a/lib/runAll.js
+++ b/lib/runAll.js
@@ -284,5 +284,5 @@
},
{
- title: `Running tasks for staged files...`,
+ title: `Running tasks for ${diff ? 'changed' : 'staged'} files...`,
task: (ctx, task) => task.newListr(listrTasks, { concurrent }),
skip: () => listrTasks.every((task) => task.skip()),
diff --git a/package.json b/package.json
index v14.0.1..v15.0.2 100644
--- a/package.json
+++ b/package.json
@@ -1,5 +1,5 @@
{
"name": "lint-staged",
- "version": "14.0.1",
+ "version": "15.0.2",
"description": "Lint files staged by git",
"license": "MIT",
@@ -15,5 +15,5 @@
},
"engines": {
- "node": "^16.14.0 || >=18.0.0"
+ "node": ">=18.12.0"
},
"type": "module",
@@ -31,35 +31,42 @@
"lint": "eslint .",
"test": "jest --coverage",
- "test:watch": "jest --watch"
+ "test:watch": "jest --watch",
+ "version": "npx changeset version",
+ "postversion": "npm i --package-lock-only && git commit -am \"chore(changeset): release\"",
+ "tag": "npx changeset tag"
},
"dependencies": {
"chalk": "5.3.0",
- "commander": "11.0.0",
+ "commander": "11.1.0",
"debug": "4.3.4",
- "execa": "7.2.0",
+ "execa": "8.0.1",
"lilconfig": "2.1.0",
- "listr2": "6.6.1",
+ "listr2": "7.0.2",
"micromatch": "4.0.5",
"pidtree": "0.6.0",
"string-argv": "0.3.2",
- "yaml": "2.3.1"
+ "yaml": "2.3.3"
},
"devDependencies": {
- "@babel/core": "7.22.10",
- "@babel/eslint-parser": "7.22.10",
- "@babel/preset-env": "7.22.10",
- "babel-jest": "29.6.2",
+ "@babel/core": "7.23.2",
+ "@babel/eslint-parser": "7.22.15",
+ "@babel/preset-env": "7.23.2",
+ "@changesets/changelog-github": "0.4.8",
+ "@changesets/cli": "2.26.2",
+ "@commitlint/cli": "17.8.0",
+ "@commitlint/config-conventional": "17.8.0",
+ "babel-jest": "29.7.0",
"babel-plugin-transform-imports": "2.0.0",
"consolemock": "1.1.0",
- "eslint": "8.46.0",
+ "eslint": "8.51.0",
"eslint-config-prettier": "9.0.0",
- "eslint-plugin-import": "2.28.0",
+ "eslint-plugin-import": "2.28.1",
"eslint-plugin-node": "11.1.0",
- "eslint-plugin-prettier": "5.0.0",
+ "eslint-plugin-prettier": "5.0.1",
"husky": "8.0.3",
- "jest": "29.6.2",
+ "jest": "29.7.0",
"jest-snapshot-serializer-ansi": "2.1.0",
"mock-stdin": "1.0.0",
- "prettier": "3.0.1"
+ "prettier": "3.0.3"
},
"keywords": [
diff --git a/README.md b/README.md
index v14.0.1..v15.0.2 100644
--- a/README.md
+++ b/README.md
@@ -1,3 +1,3 @@
-# 🚫💩 lint-staged ![GitHub Actions](https://github.com/okonet/lint-staged/workflows/CI/badge.svg) [![npm version](https://badge.fury.io/js/lint-staged.svg)](https://badge.fury.io/js/lint-staged) [![Codecov](https://codecov.io/gh/okonet/lint-staged/branch/master/graph/badge.svg)](https://codecov.io/gh/okonet/lint-staged)
+# 🚫💩 lint-staged [![Test & Release](https://github.com/okonet/lint-staged/actions/workflows/push.yml/badge.svg)](https://github.com/okonet/lint-staged/actions/workflows/push.yml) [![Publish](https://github.com/okonet/lint-staged/actions/workflows/tag.yml/badge.svg)](https://github.com/okonet/lint-staged/actions/workflows/tag.yml) [![npm version](https://badge.fury.io/js/lint-staged.svg)](https://badge.fury.io/js/lint-staged) [![Codecov](https://codecov.io/gh/okonet/lint-staged/branch/master/graph/badge.svg)](https://codecov.io/gh/okonet/lint-staged)
Run linters against staged git files and don't let :poop: slip into your code base!
@@ -907,3 +907,20 @@
</details>
+#### ESLint >= 8.51.0 && [Flat ESLint config](https://eslint.org/docs/latest/use/configure/configuration-files-new)
+
+<details>
+ <summary>Click to expand</summary>
+
+ESLint v8.51.0 introduced [`--no-warn-ignored` CLI flag](https://eslint.org/docs/latest/use/command-line-interface#--no-warn-ignored). It suppresses the `warning File ignored because of a matching ignore pattern. Use "--no-ignore" to override` warning, so manually ignoring files via `eslint.isPathIgnored` is no longer necessary.
+
+```json
+{
+ "*.js": "eslint --max-warnings=0 --no-warn-ignored"
+}
+```
+
+**NOTE:** `--no-warn-ignored` flag is only available when [Flat ESLint config](https://eslint.org/docs/latest/use/configure/configuration-files-new) is used.
+
</details>
+
+</details>
Command detailsnpm diff [email protected] [email protected] --diff-unified=2 See also the Reported by ybiquitous/[email protected] (Node.js 20.8.1 and npm 10.2.1) |
3d192c7
to
8d5069e
Compare
30da0fc
to
afa7d6f
Compare
Bumps [lint-staged](https://github.com/okonet/lint-staged) from 14.0.1 to 15.0.2. - [Release notes](https://github.com/okonet/lint-staged/releases) - [Changelog](https://github.com/lint-staged/lint-staged/blob/master/CHANGELOG.md) - [Commits](lint-staged/lint-staged@v14.0.1...v15.0.2) --- updated-dependencies: - dependency-name: lint-staged dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <[email protected]>
afa7d6f
to
866314e
Compare
Superseded by #1652. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
dependencies
Pull requests that update a dependency file
javascript
Pull requests that update Javascript code
0 participants
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Bumps lint-staged from 14.0.1 to 15.0.2.
Release notes
Sourced from lint-staged's releases.
Changelog
Sourced from lint-staged's changelog.
Commits
2ca6652
chore(changeset): release (#1340)8e82364
fix(deps): update dependencies (#1339)500f45f
refactor: update desc when pass --diff option (#1230)e799ce1
chore(changeset): release67e3854
fix: run task command on files deep copy (#1217)d2e6f8b
fix: run task command on files deep copy499e367
ci: remove dependabot configac54ea5
ci: rename npm script, because it was triggered when running "npm publish"3949492
ci: update Actions workflow for publishing Changeset releases to npm correctly59ff2ef
Merge pull request #1328 from lint-staged/changeset-release/masterDependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting
@dependabot rebase
.Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
@dependabot rebase
will rebase this PR@dependabot recreate
will recreate this PR, overwriting any edits that have been made to it@dependabot merge
will merge this PR after your CI passes on it@dependabot squash and merge
will squash and merge this PR after your CI passes on it@dependabot cancel merge
will cancel a previously requested merge and block automerging@dependabot reopen
will reopen this PR if it is closed@dependabot close
will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually@dependabot show <dependency name> ignore conditions
will show all of the ignore conditions of the specified dependency@dependabot ignore <dependency name> major version
will close this group update PR and stop Dependabot creating any more for the specific dependency's major version (unless you unignore this specific dependency's major version or upgrade to it yourself)@dependabot ignore <dependency name> minor version
will close this group update PR and stop Dependabot creating any more for the specific dependency's minor version (unless you unignore this specific dependency's minor version or upgrade to it yourself)@dependabot ignore <dependency name>
will close this group update PR and stop Dependabot creating any more for the specific dependency (unless you unignore this specific dependency or upgrade to it yourself)@dependabot unignore <dependency name>
will remove all of the ignore conditions of the specified dependency@dependabot unignore <dependency name> <ignore condition>
will remove the ignore condition of the specified dependency and ignore conditions