From 73b0de69cfe66a22ebd4c4f0383b86b1fa2d1ab5 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Thu, 19 Sep 2024 00:45:34 +0800 Subject: [PATCH] chore(deps): update dependency knip to v5.30.2 (#16679) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: fisker --- .github/workflows/lint.yml | 3 +++ knip.config.js | 8 +------- package.json | 2 +- yarn.lock | 10 +++++----- 4 files changed, 10 insertions(+), 13 deletions(-) diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index a687fe65725d..a77aa181c5e4 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -96,5 +96,8 @@ jobs: yarn dedupe --check working-directory: scripts/tools/eslint-plugin-prettier-internal-rules + - name: Knip + run: yarn lint:knip + - name: Check File Changes run: echo "Listing changed files:" && git diff --name-only --exit-code && echo "No files changed during lint." diff --git a/knip.config.js b/knip.config.js index c51d9c146e41..e2a6545129a6 100644 --- a/knip.config.js +++ b/knip.config.js @@ -22,13 +22,7 @@ export default { "pages/**/*.js", "static/**/*.js", ], - ignoreDependencies: [ - "docusaurus", - "codemirror", - "highlight.js", - "@babel/preset-react", - ], - ignoreBinaries: ["docusaurus-build", "docusaurus-version"], + ignoreDependencies: ["codemirror", "highlight.js", "@babel/preset-react"], ignore: ["pages/en/**"], }, "scripts/tools/bundle-test": {}, diff --git a/package.json b/package.json index 137ad0982f3a..662d2f1f9b47 100644 --- a/package.json +++ b/package.json @@ -142,7 +142,7 @@ "jest-snapshot-serializer-ansi": "2.1.0", "jest-snapshot-serializer-raw": "2.0.0", "jest-watch-typeahead": "2.2.2", - "knip": "5.30.1", + "knip": "5.30.2", "magic-string": "0.30.11", "npm-run-all2": "6.2.3", "prettier": "3.3.3", diff --git a/yarn.lock b/yarn.lock index 018885918030..a0222e7d373f 100644 --- a/yarn.lock +++ b/yarn.lock @@ -6237,9 +6237,9 @@ __metadata: languageName: node linkType: hard -"knip@npm:5.30.1": - version: 5.30.1 - resolution: "knip@npm:5.30.1" +"knip@npm:5.30.2": + version: 5.30.2 + resolution: "knip@npm:5.30.2" dependencies: "@nodelib/fs.walk": "npm:1.2.8" "@snyk/github-codeowners": "npm:1.1.0" @@ -6263,7 +6263,7 @@ __metadata: bin: knip: bin/knip.js knip-bun: bin/knip-bun.js - checksum: 10/20859a9845ef8145fb38173c518d42240f03697af5c5d1abd2ef08d3baaf8314e1c136f7b49859d2d2fd827c9362eb78138b37b61699d97b3e140e3346195ebc + checksum: 10/e46db15b3c2ed18c05656415d07136fbc4b90fd33336da6f4026f8af24c704f06176ad13a47ba0335ea6d6590f36af451ded503763a3378872bb49853ee6ce7d languageName: node linkType: hard @@ -7412,7 +7412,7 @@ __metadata: jest-watch-typeahead: "npm:2.2.2" js-yaml: "npm:4.1.0" json5: "npm:2.2.3" - knip: "npm:5.30.1" + knip: "npm:5.30.2" leven: "npm:4.0.0" lines-and-columns: "npm:2.0.4" linguist-languages: "npm:7.27.0"