Skip to content

Commit 90b9859

Browse files
Update Linting (#19)
> [!NOTE] > Mend has cancelled [the proposed renaming](https://redirect.github.com/renovatebot/renovate/discussions/37842) of the Renovate GitHub app being renamed to `mend[bot]`. > > This notice will be removed on 2025-10-07. <hr> This PR contains the following updates: | Package | Change | Age | Confidence | |---|---|---|---| | [@antfu/eslint-config](https://redirect.github.com/antfu/eslint-config) | [`5.0.0` -> `5.4.1`](https://renovatebot.com/diffs/npm/@antfu%2feslint-config/5.0.0/5.4.1) | [![age](https://developer.mend.io/api/mc/badges/age/npm/@antfu%2feslint-config/5.4.1?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/@antfu%2feslint-config/5.0.0/5.4.1?slim=true)](https://docs.renovatebot.com/merge-confidence/) | | [eslint](https://eslint.org) ([source](https://redirect.github.com/eslint/eslint)) | [`9.32.0` -> `9.36.0`](https://renovatebot.com/diffs/npm/eslint/9.32.0/9.36.0) | [![age](https://developer.mend.io/api/mc/badges/age/npm/eslint/9.36.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/eslint/9.32.0/9.36.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | | [lint-staged](https://redirect.github.com/lint-staged/lint-staged) | [`16.1.2` -> `16.2.3`](https://renovatebot.com/diffs/npm/lint-staged/16.1.2/16.2.3) | [![age](https://developer.mend.io/api/mc/badges/age/npm/lint-staged/16.2.3?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/lint-staged/16.1.2/16.2.3?slim=true)](https://docs.renovatebot.com/merge-confidence/) | | [publint](https://publint.dev) ([source](https://redirect.github.com/publint/publint/tree/HEAD/packages/publint)) | [`0.3.12` -> `0.3.13`](https://renovatebot.com/diffs/npm/publint/0.3.12/0.3.13) | [![age](https://developer.mend.io/api/mc/badges/age/npm/publint/0.3.13?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/publint/0.3.12/0.3.13?slim=true)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes <details> <summary>antfu/eslint-config (@&#8203;antfu/eslint-config)</summary> ### [`v5.4.1`](https://redirect.github.com/antfu/eslint-config/releases/tag/v5.4.1) [Compare Source](https://redirect.github.com/antfu/eslint-config/compare/v5.4.0...v5.4.1) *No significant changes* #####     [View changes on GitHub](https://redirect.github.com/antfu/eslint-config/compare/v5.4.0...v5.4.1) ### [`v5.4.0`](https://redirect.github.com/antfu/eslint-config/releases/tag/v5.4.0) [Compare Source](https://redirect.github.com/antfu/eslint-config/compare/v5.3.0...v5.4.0) *No significant changes* #####     [View changes on GitHub](https://redirect.github.com/antfu/eslint-config/compare/v5.3.0...v5.4.0) ### [`v5.3.0`](https://redirect.github.com/antfu/eslint-config/releases/tag/v5.3.0) [Compare Source](https://redirect.github.com/antfu/eslint-config/compare/v5.2.2...v5.3.0) #####    🐞 Bug Fixes - Use ecmaVersion 'latest' per eslint's docs recommendation. fixes support for import attributes  -  by [@&#8203;romansp](https://redirect.github.com/romansp) in [#&#8203;756](https://redirect.github.com/antfu/eslint-config/issues/756) [<samp>(2031b)</samp>](https://redirect.github.com/antfu/eslint-config/commit/2031bf7) #####     [View changes on GitHub](https://redirect.github.com/antfu/eslint-config/compare/v5.2.2...v5.3.0) ### [`v5.2.2`](https://redirect.github.com/antfu/eslint-config/releases/tag/v5.2.2) [Compare Source](https://redirect.github.com/antfu/eslint-config/compare/v5.2.1...v5.2.2) #####    🚀 Features - Add sort support of Bun catalogs  -  by [@&#8203;letstri](https://redirect.github.com/letstri) in [#&#8203;754](https://redirect.github.com/antfu/eslint-config/issues/754) [<samp>(800d8)</samp>](https://redirect.github.com/antfu/eslint-config/commit/800d84f) #####     [View changes on GitHub](https://redirect.github.com/antfu/eslint-config/compare/v5.2.1...v5.2.2) ### [`v5.2.1`](https://redirect.github.com/antfu/eslint-config/releases/tag/v5.2.1) [Compare Source](https://redirect.github.com/antfu/eslint-config/compare/v5.2.0...v5.2.1) *No significant changes* #####     [View changes on GitHub](https://redirect.github.com/antfu/eslint-config/compare/v5.2.0...v5.2.1) ### [`v5.2.0`](https://redirect.github.com/antfu/eslint-config/releases/tag/v5.2.0) [Compare Source](https://redirect.github.com/antfu/eslint-config/compare/v5.1.0...v5.2.0) #####    🚀 Features - Update deps  -  by [@&#8203;antfu](https://redirect.github.com/antfu) [<samp>(ca1b4)</samp>](https://redirect.github.com/antfu/eslint-config/commit/ca1b4c9) #####     [View changes on GitHub](https://redirect.github.com/antfu/eslint-config/compare/v5.1.0...v5.2.0) ### [`v5.1.0`](https://redirect.github.com/antfu/eslint-config/releases/tag/v5.1.0) [Compare Source](https://redirect.github.com/antfu/eslint-config/compare/v5.0.0...v5.1.0) #####    🚀 Features - Add eslint-plugin-jsx-a11y via jsx.a11y option  -  by [@&#8203;ccpu](https://redirect.github.com/ccpu) in [#&#8203;743](https://redirect.github.com/antfu/eslint-config/issues/743) [<samp>(aeeeb)</samp>](https://redirect.github.com/antfu/eslint-config/commit/aeeeb14) - Upgrade `eslint-plugin-jsdoc` to v52  -  by [@&#8203;antfu](https://redirect.github.com/antfu) [<samp>(80e4a)</samp>](https://redirect.github.com/antfu/eslint-config/commit/80e4a8a) #####     [View changes on GitHub](https://redirect.github.com/antfu/eslint-config/compare/v5.0.0...v5.1.0) </details> <details> <summary>eslint/eslint (eslint)</summary> ### [`v9.36.0`](https://redirect.github.com/eslint/eslint/compare/v9.35.0...b4857e54e54b5dba96d156cd8d8b4d42dc5a3bf4) [Compare Source](https://redirect.github.com/eslint/eslint/compare/v9.35.0...v9.36.0) ### [`v9.35.0`](https://redirect.github.com/eslint/eslint/compare/v9.34.0...8401101d1e3e3e4e1edc2a9e59cafc9956bf2610) [Compare Source](https://redirect.github.com/eslint/eslint/compare/v9.34.0...v9.35.0) ### [`v9.34.0`](https://redirect.github.com/eslint/eslint/compare/v9.33.0...b8875f67a7bc99824f19147f4a669be7e98f3eee) [Compare Source](https://redirect.github.com/eslint/eslint/compare/v9.33.0...v9.34.0) ### [`v9.33.0`](https://redirect.github.com/eslint/eslint/compare/v9.32.0...a90d7c4fe5ef83054e29d21d7ffb442103429d03) [Compare Source](https://redirect.github.com/eslint/eslint/compare/v9.32.0...v9.33.0) </details> <details> <summary>lint-staged/lint-staged (lint-staged)</summary> ### [`v16.2.3`](https://redirect.github.com/lint-staged/lint-staged/blob/HEAD/CHANGELOG.md#1623) [Compare Source](https://redirect.github.com/lint-staged/lint-staged/compare/v16.2.2...v16.2.3) ##### Patch Changes - [#&#8203;1669](https://redirect.github.com/lint-staged/lint-staged/pull/1669) [`27cd541`](https://redirect.github.com/lint-staged/lint-staged/commit/27cd5413d973baea6b4f3da704fb3bee8298e751) Thanks [@&#8203;iiroj](https://redirect.github.com/iiroj)! - When using `--fail-on-changes`, automatically hidden (partially) unstaged changes are no longer counted to make *lint-staged* fail. ### [`v16.2.2`](https://redirect.github.com/lint-staged/lint-staged/blob/HEAD/CHANGELOG.md#1622) [Compare Source](https://redirect.github.com/lint-staged/lint-staged/compare/v16.2.1...v16.2.2) ##### Patch Changes - [#&#8203;1667](https://redirect.github.com/lint-staged/lint-staged/pull/1667) [`699f95d`](https://redirect.github.com/lint-staged/lint-staged/commit/699f95df8f89ac7f7d360bbf93740d19d5899ac5) Thanks [@&#8203;iiroj](https://redirect.github.com/iiroj)! - The backup stash will not be dropped when using `--fail-on-changes` and there are errors. When reverting to original state is disabled (via `--no-revert` or `--fail-on-changes`), hidden (partially) unstaged changes are still restored automatically so that it's easier to resolve the situation manually. Additionally, the example for using the backup stash manually now uses the correct backup hash, if available: ```shell % npx lint-staged --fail-on-changes ✔ Backed up original state in git stash (c18d55a3) ✔ Running tasks for staged files... ✖ Tasks modified files and --fail-on-changes was used! ↓ Cleaning up temporary files... ✖ lint-staged failed because `--fail-on-changes` was used. Any lost modifications can be restored from a git stash: > git stash list --format="%h %s" c18d55a3 On main: lint-staged automatic backup > git apply --index c18d55a3 ``` ### [`v16.2.1`](https://redirect.github.com/lint-staged/lint-staged/blob/HEAD/CHANGELOG.md#1621) [Compare Source](https://redirect.github.com/lint-staged/lint-staged/compare/v16.2.0...v16.2.1) ##### Patch Changes - [#&#8203;1664](https://redirect.github.com/lint-staged/lint-staged/pull/1664) [`8277b3b`](https://redirect.github.com/lint-staged/lint-staged/commit/8277b3b298421ebbb39c43d7e3538481e15c4659) Thanks [@&#8203;iiroj](https://redirect.github.com/iiroj)! - The built-in TypeScript types have been updated to more closely match the implementation. Notably, the list of staged files supplied to task functions is `readonly string[]` and can't be mutated. Thanks [@&#8203;outslept](https://redirect.github.com/outslept)! ```diff export default { --- "*": (files: string[]) => void console.log('staged files', files) +++ "*": (files: readonly string[]) => void console.log('staged files', files) } ``` - [#&#8203;1654](https://redirect.github.com/lint-staged/lint-staged/pull/1654) [`70b9af3`](https://redirect.github.com/lint-staged/lint-staged/commit/70b9af3ac3fd66af94936e55bb3e91381937b41f) Thanks [@&#8203;iiroj](https://redirect.github.com/iiroj)! - This version has been published from GitHub Actions using [Trusted Publishing for npm packages](https://docs.npmjs.com/trusted-publishers). - [#&#8203;1659](https://redirect.github.com/lint-staged/lint-staged/pull/1659) [`4996817`](https://redirect.github.com/lint-staged/lint-staged/commit/49968170abb3bab7ac8dc0a6bc5ea92850337baa) Thanks [@&#8203;iiroj](https://redirect.github.com/iiroj)! - Fix searching configuration files when the working directory is a subdirectory of a git repository, and there are `package.json` files in the working directory. This situation might happen when running *lint-staged* for a single package in a monorepo. - [#&#8203;1654](https://redirect.github.com/lint-staged/lint-staged/pull/1654) [`7021f0a`](https://redirect.github.com/lint-staged/lint-staged/commit/7021f0af40ac1d5787501894c0f2222980023703) Thanks [@&#8203;iiroj](https://redirect.github.com/iiroj)! - Return the caret semver range (`^`) to direct dependencies so that future patch and minor versions are allowed. This enables projects to better maintain and deduplicate their own transitive dependencies while not requiring direct updates to *lint-staged*. This was changed in [16.2.0](https://redirect.github.com/lint-staged/lint-staged/releases/tag/v16.2.0) after the vulnerability issues with `chalk` and `debug`, which were also removed in the same version. Given the recent vulnerabilities in the *npm* ecosystem, it's best to be very careful when updating dependencies. ### [`v16.2.0`](https://redirect.github.com/lint-staged/lint-staged/blob/HEAD/CHANGELOG.md#1620) [Compare Source](https://redirect.github.com/lint-staged/lint-staged/compare/v16.1.6...v16.2.0) ##### Minor Changes - [#&#8203;1615](https://redirect.github.com/lint-staged/lint-staged/pull/1615) [`99eb742`](https://redirect.github.com/lint-staged/lint-staged/commit/99eb74200e8db69e72dba45314025953b8b0794e) Thanks [@&#8203;iiroj](https://redirect.github.com/iiroj)! - Added a new option `--fail-on-changes` to make *lint-staged* exit with code 1 when tasks modify any files, making the `precommit` hook fail. This is similar to the `git diff --exit-code` option. Using this flag also implies the `--no-revert` flag which means any changes made my tasks will be left in the working tree after failing, so that they can be manually staged and the commit tried again. - [#&#8203;1611](https://redirect.github.com/lint-staged/lint-staged/pull/1611) [`cd05fd3`](https://redirect.github.com/lint-staged/lint-staged/commit/cd05fd349594baf586fbafb05588ff07d86060b7) Thanks [@&#8203;rlorenzo](https://redirect.github.com/rlorenzo)! - Added a new option `--continue-on-error` so that *lint-staged* will run all tasks to completion even if some of them fail. By default, *lint-staded* will exit early on the first failure. - [#&#8203;1637](https://redirect.github.com/lint-staged/lint-staged/pull/1637) [`82fcc07`](https://redirect.github.com/lint-staged/lint-staged/commit/82fcc0789c17bf6b2ea2649147abec77fa619375) Thanks [@&#8203;iiroj](https://redirect.github.com/iiroj)! - Internal *lint-staged* errors are now thrown and visible in the console output. Previously they were caught with the process exit code set to 1, but not logged. This happens when, for example, there's a syntax error in the *lint-staged* configuration file. - [#&#8203;1647](https://redirect.github.com/lint-staged/lint-staged/pull/1647) [`a5ecc06`](https://redirect.github.com/lint-staged/lint-staged/commit/a5ecc0605d52756167417c84cb0007ea7bceaaa3) Thanks [@&#8203;iiroj](https://redirect.github.com/iiroj)! - Remove [debug](https://redirect.github.com/debug-js/debug) as a dependency due to recent malware issue; read more at [debug-js/debug#1005](https://redirect.github.com/debug-js/debug/issues/1005). Because of this, the `DEBUG` environment variable is no longer supported — use the `--debug` to enable debugging - [#&#8203;1636](https://redirect.github.com/lint-staged/lint-staged/pull/1636) [`8db2717`](https://redirect.github.com/lint-staged/lint-staged/commit/8db2717574ebfa2b80e0fc4eb0b24d705fd264fc) Thanks [@&#8203;iiroj](https://redirect.github.com/iiroj)! - Added a new option `--hide-unstaged` so that *lint-staged* will hide all unstaged changes to tracked files before running tasks. The changes will be applied back after running the tasks. Note that the combination of flags `--hide-unstaged --no-hide-partially-staged` isn't meaningful and behaves the same as just `--hide-unstaged`. Thanks to [@&#8203;ItsNickBarry](https://redirect.github.com/ItsNickBarry) for the idea and initial implementation in [#&#8203;1552](https://redirect.github.com/lint-staged/lint-staged/pull/1552). - [#&#8203;1648](https://redirect.github.com/lint-staged/lint-staged/pull/1648) [`7900b3b`](https://redirect.github.com/lint-staged/lint-staged/commit/7900b3b79c5e2e69662cb8b1bcbcae79c3549421) Thanks [@&#8203;iiroj](https://redirect.github.com/iiroj)! - Remove [lilconfig](https://redirect.github.com/antonk52/lilconfig) to reduce reliance on third-party dependencies. It was used to find possible config files outside of those tracked in Git, including from the parent directories. This behavior has been moved directly into *lint-staged* and should work about the same. ##### Patch Changes - [#&#8203;1633](https://redirect.github.com/lint-staged/lint-staged/pull/1633) [`7f9e485`](https://redirect.github.com/lint-staged/lint-staged/commit/7f9e485a981707897e0d417f6a62008f0c098e00) Thanks [@&#8203;dependabot](https://redirect.github.com/apps/dependabot)! - Bumps [listr2](https://redirect.github.com/listr2/listr2) from 9.0.3 to 9.0.4. - [#&#8203;1626](https://redirect.github.com/lint-staged/lint-staged/pull/1626) [`99d5a9b`](https://redirect.github.com/lint-staged/lint-staged/commit/99d5a9b0ddcba7d471d39ff3969d37988f1e2705) Thanks [@&#8203;iiroj](https://redirect.github.com/iiroj)! - Due to recent phishing attacks, for example [chalk@5.6.1](https://redirect.github.com/chalk/chalk/issues/656) was released with malware. To avoid *lint-staged*'s users being at risk the **direct dependencies are pinned to exact versions**, instead of allowing future patch versions with the [caret (`^`) range](https://docs.npmjs.com/cli/v6/using-npm/semver#caret-ranges-123-025-004). - [#&#8203;1588](https://redirect.github.com/lint-staged/lint-staged/pull/1588) [`035bbf2`](https://redirect.github.com/lint-staged/lint-staged/commit/035bbf268ac47bbaf2cfa737c3b2240d38feb22e) Thanks [@&#8203;outslept](https://redirect.github.com/outslept)! - Increase performance by listing staged files and searching for configuration concurrently. - [#&#8203;1645](https://redirect.github.com/lint-staged/lint-staged/pull/1645) [`deba3ad`](https://redirect.github.com/lint-staged/lint-staged/commit/deba3ad83581938dd71b86b563e62827b5fc2a0a) Thanks [@&#8203;iiroj](https://redirect.github.com/iiroj)! - Remove [chalk](https://redirect.github.com/chalk/chalk) as a dependency due to recent malware issue; read more at [chalk/chalk#656](https://redirect.github.com/chalk/chalk/issues/656). If you are having trouble with ANSI color codes when using *lint-staged*, you can try setting either `FORCE_COLOR=true` or `NO_COLOR=true` env variables. ### [`v16.1.6`](https://redirect.github.com/lint-staged/lint-staged/blob/HEAD/CHANGELOG.md#1616) [Compare Source](https://redirect.github.com/lint-staged/lint-staged/compare/v16.1.5...v16.1.6) ##### Patch Changes - [#&#8203;1610](https://redirect.github.com/lint-staged/lint-staged/pull/1610) [`e93578e`](https://redirect.github.com/lint-staged/lint-staged/commit/e93578e265a69ed6b02fcaa11486078c1bdbdaaa) Thanks [@&#8203;iiroj](https://redirect.github.com/iiroj)! - Try to improve terminating of subprocess of tasks by using `SIGKILL`, and only calling `pidtree` when the the main task process has a known pid. ### [`v16.1.5`](https://redirect.github.com/lint-staged/lint-staged/blob/HEAD/CHANGELOG.md#1615) [Compare Source](https://redirect.github.com/lint-staged/lint-staged/compare/v16.1.4...v16.1.5) ##### Patch Changes - [#&#8203;1608](https://redirect.github.com/lint-staged/lint-staged/pull/1608) [`4e3ce22`](https://redirect.github.com/lint-staged/lint-staged/commit/4e3ce225b33f759f78a84d156189dc38e536cdc6) Thanks [@&#8203;srsatt](https://redirect.github.com/srsatt)! - Detect the git repo's top-level directory correctly when in a worktree. ### [`v16.1.4`](https://redirect.github.com/lint-staged/lint-staged/blob/HEAD/CHANGELOG.md#1614) [Compare Source](https://redirect.github.com/lint-staged/lint-staged/compare/v16.1.3...v16.1.4) ##### Patch Changes - [#&#8203;1604](https://redirect.github.com/lint-staged/lint-staged/pull/1604) [`90b37b0`](https://redirect.github.com/lint-staged/lint-staged/commit/90b37b00c2c30b9cacf6c080f6a0885e1151eb7a) Thanks [@&#8203;iiroj](https://redirect.github.com/iiroj)! - Add another `types` field to `package.json` to make even more sure NPM detects that *lint-staged* includes built-in TypeScript type definitions. ### [`v16.1.3`](https://redirect.github.com/lint-staged/lint-staged/blob/HEAD/CHANGELOG.md#1613) [Compare Source](https://redirect.github.com/lint-staged/lint-staged/compare/v16.1.2...v16.1.3) ##### Patch Changes - [#&#8203;1602](https://redirect.github.com/lint-staged/lint-staged/pull/1602) [`7ea700b`](https://redirect.github.com/lint-staged/lint-staged/commit/7ea700bcf3d0078a01720a9c8dc13a271387afbd) Thanks [@&#8203;dword-design](https://redirect.github.com/dword-design)! - Add the `types` field to `package.json` to make sure NPM detects *lint-staged* includes built-in TypeScript type definitions. </details> <details> <summary>publint/publint (publint)</summary> ### [`v0.3.13`](https://redirect.github.com/publint/publint/blob/HEAD/packages/publint/CHANGELOG.md#0313) [Compare Source](https://redirect.github.com/publint/publint/compare/publint@0.3.12...publint@0.3.13) ##### Patch Changes - Improve message for `"main"` field with empty value and has missing files ([`0499518`](https://redirect.github.com/publint/publint/commit/04995188cd08f42f2a8bc389a3f089405d56c293)) - Update fallback arrays message for CLI output ([`37b9dd5`](https://redirect.github.com/publint/publint/commit/37b9dd59e05c7af2bf7fabf9aac8d28098847e0a)) </details> --- ### Configuration 📅 **Schedule**: Branch creation - Between 12:00 AM and 03:59 AM, on day 1 of the month ( * 0-3 1 * * ) (UTC), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Enabled. ♻ **Rebasing**: Whenever PR is behind base branch, or you tick the rebase/retry checkbox. 👻 **Immortal**: This PR will be recreated if closed unmerged. Get [config help](https://redirect.github.com/renovatebot/renovate/discussions) if that's undesired. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR was generated by [Mend Renovate](https://mend.io/renovate/). View the [repository job log](https://developer.mend.io/github/beeequeue/gmd). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0MS4xMzEuOSIsInVwZGF0ZWRJblZlciI6IjQxLjEzMS45IiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6WyJkZXBlbmRlbmNpZXMiXX0=--> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
1 parent 5d1079c commit 90b9859

2 files changed

Lines changed: 414 additions & 334 deletions

File tree

‎package.json‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
"prepare": "simple-git-hooks"
4242
},
4343
"devDependencies": {
44-
"@antfu/eslint-config": "5.0.0",
44+
"@antfu/eslint-config": "5.4.1",
4545
"@bomb.sh/args": "0.3.1",
4646
"@changesets/changelog-github": "0.5.1",
4747
"@changesets/cli": "2.29.2",
@@ -54,13 +54,13 @@
5454
"binary-util": "1.1.1",
5555
"cli-progress": "3.12.0",
5656
"dotenv": "16.5.0",
57-
"eslint": "9.32.0",
57+
"eslint": "9.36.0",
5858
"fdir": "6.4.4",
5959
"is-glob": "4.0.3",
60-
"lint-staged": "16.1.2",
60+
"lint-staged": "16.2.3",
6161
"picomatch": "4.0.2",
6262
"prettier": "3.5.3",
63-
"publint": "0.3.12",
63+
"publint": "0.3.13",
6464
"simple-git-hooks": "2.13.0",
6565
"tinyrainbow": "2.0.0",
6666
"tsup": "8.4.0",

0 commit comments

Comments
 (0)