Skip to content

Commit 67bb0e7

Browse files
committedAug 24, 2024··
fix: deps security issue
Signed-off-by: Zxilly <zxilly@outlook.com>
1 parent f3fb864 commit 67bb0e7

File tree

4 files changed

+250
-1481
lines changed

4 files changed

+250
-1481
lines changed
 

‎.golangci.yaml

+3-3
Original file line numberDiff line numberDiff line change
@@ -109,9 +109,9 @@ linters-settings:
109109
- name: empty-lines
110110
disabled: true
111111

112-
misspell:
113-
locale: "US" # Fix the colour => color, and co
114-
112+
gosec:
113+
excludes:
114+
- G115
115115

116116
output:
117117
# Make issues output unique by line.

‎ui/package.json

+5-3
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,8 @@
3333
"@antfu/eslint-config": "^2.27.1",
3434
"@codecov/vite-plugin": "0.0.1-beta.10",
3535
"@microsoft/eslint-formatter-sarif": "^3.1.0",
36-
"@million/lint": "1.0.0-rc.84",
3736
"@testing-library/dom": "^10.4.0",
38-
"@testing-library/jest-dom": "^6.4.8",
37+
"@testing-library/jest-dom": "^6.5.0",
3938
"@testing-library/react": "^16.0.0",
4039
"@testing-library/user-event": "^14.5.2",
4140
"@types/d3-array": "^3.2.1",
@@ -49,7 +48,7 @@
4948
"@vitejs/plugin-react-swc": "^3.7.0",
5049
"@vitest/coverage-v8": "^2.0.5",
5150
"@vitest/web-worker": "^2.0.5",
52-
"eslint": "^9.9.0",
51+
"eslint": "^9.9.1",
5352
"eslint-plugin-import-x": "^3.1.0",
5453
"eslint-plugin-react-hooks": "5.1.0-rc.0",
5554
"eslint-plugin-react-refresh": "^0.4.11",
@@ -67,6 +66,9 @@
6766
"allowedVersions": {
6867
"eslint": "9"
6968
}
69+
},
70+
"overrides": {
71+
"micromatch": "4.0.8"
7072
}
7173
}
7274
}

‎ui/pnpm-lock.yaml

+241-1,467
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎ui/vite.common.ts

+1-8
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ import process from "node:process";
44
import type { BuildOptions, HtmlTagDescriptor, Plugin, PluginOption } from "vite";
55
import { codecovVitePlugin } from "@codecov/vite-plugin";
66
import react from "@vitejs/plugin-react-swc";
7-
import MillionLint from "@million/lint";
87

98
export function getSha(): string | undefined {
109
const envs = process.env;
@@ -62,15 +61,9 @@ export function codecov(name: string): Plugin[] | undefined {
6261
}
6362

6463
export function commonPlugin(): (PluginOption[] | Plugin | Plugin[])[] {
65-
const plugins: (PluginOption[] | Plugin | Plugin[])[] = [
64+
return [
6665
react(),
6766
];
68-
69-
if (process.env.TERM_PROGRAM === "vscode") {
70-
plugins.push(MillionLint.vite());
71-
}
72-
73-
return plugins;
7467
}
7568

7669
export function build(dir: string): BuildOptions {

0 commit comments

Comments
 (0)
Please sign in to comment.