Skip to content

Commit ad49b7b

Browse files
authored
Update JS deps and eslint enhancements (#36147)
- Update all JS deps - Tested affected `dependencies` - Replace eslint `unstable_native_nodejs_ts_config` with optional `jiti` dependency. This will be more compatible with editor integrations that may not pass this flag. - Enable additional eslint rules, no new issues - Move `typescript` to `devDependencies` because `make frontend` works without it
1 parent 852bf5e commit ad49b7b

File tree

4 files changed

+839
-552
lines changed

4 files changed

+839
-552
lines changed

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -339,12 +339,12 @@ lint-backend-fix: lint-go-fix lint-go-gitea-vet lint-editorconfig ## lint backen
339339

340340
.PHONY: lint-js
341341
lint-js: node_modules ## lint js files
342-
$(NODE_VARS) pnpm exec eslint --color --max-warnings=0 --flag unstable_native_nodejs_ts_config $(ESLINT_FILES)
342+
$(NODE_VARS) pnpm exec eslint --color --max-warnings=0 $(ESLINT_FILES)
343343
$(NODE_VARS) pnpm exec vue-tsc
344344

345345
.PHONY: lint-js-fix
346346
lint-js-fix: node_modules ## lint js files and fix issues
347-
$(NODE_VARS) pnpm exec eslint --color --max-warnings=0 --flag unstable_native_nodejs_ts_config $(ESLINT_FILES) --fix
347+
$(NODE_VARS) pnpm exec eslint --color --max-warnings=0 $(ESLINT_FILES) --fix
348348
$(NODE_VARS) pnpm exec vue-tsc
349349

350350
.PHONY: lint-css

eslint.config.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ export default defineConfig([
215215
'@typescript-eslint/no-unnecessary-condition': [0],
216216
'@typescript-eslint/no-unnecessary-qualifier': [0],
217217
'@typescript-eslint/no-unnecessary-template-expression': [0],
218-
'@typescript-eslint/no-unnecessary-type-arguments': [0],
218+
'@typescript-eslint/no-unnecessary-type-arguments': [2],
219219
'@typescript-eslint/no-unnecessary-type-assertion': [2],
220220
'@typescript-eslint/no-unnecessary-type-constraint': [2],
221221
'@typescript-eslint/no-unnecessary-type-conversion': [2],
@@ -228,11 +228,12 @@ export default defineConfig([
228228
'@typescript-eslint/no-unsafe-member-access': [0],
229229
'@typescript-eslint/no-unsafe-return': [0],
230230
'@typescript-eslint/no-unsafe-unary-minus': [2],
231-
'@typescript-eslint/no-unused-expressions': [0],
231+
'@typescript-eslint/no-unused-expressions': [2],
232232
'@typescript-eslint/no-unused-private-class-members': [2],
233233
'@typescript-eslint/no-unused-vars': [2, {vars: 'all', args: 'all', caughtErrors: 'all', ignoreRestSiblings: false, argsIgnorePattern: '^_', varsIgnorePattern: '^_', caughtErrorsIgnorePattern: '^_', destructuredArrayIgnorePattern: '^_'}],
234234
'@typescript-eslint/no-use-before-define': [2, {functions: false, classes: true, variables: true, allowNamedExports: true, typedefs: false, enums: false, ignoreTypeReferences: true}],
235235
'@typescript-eslint/no-useless-constructor': [0],
236+
'@typescript-eslint/no-useless-default-assignment': [0], // https://github.com/typescript-eslint/typescript-eslint/issues/11847
236237
'@typescript-eslint/no-useless-empty-export': [0],
237238
'@typescript-eslint/no-wrapper-object-types': [2],
238239
'@typescript-eslint/non-nullable-type-assertion-style': [0],
@@ -584,7 +585,7 @@ export default defineConfig([
584585
'no-unreachable': [2],
585586
'no-unsafe-finally': [2],
586587
'no-unsafe-negation': [2],
587-
'no-unused-expressions': [2],
588+
'no-unused-expressions': [0], // handled by @typescript-eslint/no-unused-expressions
588589
'no-unused-labels': [2],
589590
'no-unused-private-class-members': [0], // handled by @typescript-eslint/no-unused-private-class-members
590591
'no-unused-vars': [0], // handled by @typescript-eslint/no-unused-vars

package.json

Lines changed: 18 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"type": "module",
3-
"packageManager": "pnpm@10.24.0",
3+
"packageManager": "pnpm@10.26.0",
44
"engines": {
55
"node": ">= 22.6.0",
66
"pnpm": ">= 10.0.0"
@@ -12,7 +12,7 @@
1212
"@citation-js/plugin-software-formats": "0.6.1",
1313
"@github/markdown-toolbar-element": "2.2.3",
1414
"@github/paste-markdown": "1.5.3",
15-
"@github/relative-time-element": "4.5.1",
15+
"@github/relative-time-element": "5.0.0",
1616
"@github/text-expander-element": "2.9.2",
1717
"@mcaptcha/vanilla-glue": "0.1.0-alpha-3",
1818
"@primer/octicons": "19.21.1",
@@ -21,7 +21,7 @@
2121
"@techknowlogick/license-checker-webpack-plugin": "0.3.0",
2222
"add-asset-webpack-plugin": "3.1.1",
2323
"ansi_up": "6.0.6",
24-
"asciinema-player": "3.12.1",
24+
"asciinema-player": "3.13.5",
2525
"chart.js": "4.5.1",
2626
"chartjs-adapter-dayjs-4": "1.0.4",
2727
"chartjs-plugin-zoom": "2.2.0",
@@ -36,32 +36,31 @@
3636
"htmx.org": "2.0.8",
3737
"idiomorph": "0.7.4",
3838
"jquery": "3.7.1",
39-
"katex": "0.16.25",
39+
"katex": "0.16.27",
4040
"mermaid": "11.12.2",
4141
"mini-css-extract-plugin": "2.9.4",
4242
"monaco-editor": "0.55.1",
4343
"monaco-editor-webpack-plugin": "7.1.1",
44-
"online-3d-viewer": "0.16.0",
44+
"online-3d-viewer": "0.17.0",
4545
"pdfobject": "2.3.1",
4646
"perfect-debounce": "2.0.0",
4747
"postcss": "8.5.6",
4848
"postcss-loader": "8.2.0",
4949
"sortablejs": "1.15.6",
50-
"swagger-ui-dist": "5.30.3",
50+
"swagger-ui-dist": "5.31.0",
5151
"tailwindcss": "3.4.17",
5252
"throttle-debounce": "5.0.2",
5353
"tinycolor2": "1.6.0",
5454
"tippy.js": "6.3.7",
5555
"toastify-js": "1.12.0",
5656
"tributejs": "5.1.3",
57-
"typescript": "5.9.3",
5857
"uint8-to-base64": "0.2.1",
5958
"vanilla-colorful": "0.7.2",
6059
"vue": "3.5.25",
6160
"vue-bar-graph": "2.2.0",
6261
"vue-chartjs": "5.3.3",
6362
"vue-loader": "17.4.2",
64-
"webpack": "5.103.0",
63+
"webpack": "5.104.0",
6564
"webpack-cli": "6.0.1",
6665
"wrap-ansi": "9.0.2"
6766
},
@@ -80,10 +79,10 @@
8079
"@types/throttle-debounce": "5.0.2",
8180
"@types/tinycolor2": "1.4.6",
8281
"@types/toastify-js": "1.12.4",
83-
"@typescript-eslint/parser": "8.48.1",
84-
"@vitejs/plugin-vue": "6.0.2",
85-
"@vitest/eslint-plugin": "1.5.1",
86-
"eslint": "9.39.1",
82+
"@typescript-eslint/parser": "8.50.0",
83+
"@vitejs/plugin-vue": "6.0.3",
84+
"@vitest/eslint-plugin": "1.5.2",
85+
"eslint": "9.39.2",
8786
"eslint-import-resolver-typescript": "4.4.4",
8887
"eslint-plugin-array-func": "5.1.0",
8988
"eslint-plugin-github": "6.0.0",
@@ -97,7 +96,8 @@
9796
"eslint-plugin-wc": "3.0.2",
9897
"globals": "16.5.0",
9998
"happy-dom": "20.0.11",
100-
"markdownlint-cli": "0.46.0",
99+
"jiti": "2.6.1",
100+
"markdownlint-cli": "0.47.0",
101101
"material-icon-theme": "5.29.0",
102102
"nolyfill": "1.0.44",
103103
"postcss-html": "1.8.0",
@@ -108,11 +108,12 @@
108108
"stylelint-declaration-strict-value": "1.10.11",
109109
"stylelint-value-no-unknown-custom-properties": "6.0.1",
110110
"svgo": "4.0.0",
111-
"typescript-eslint": "8.48.1",
112-
"updates": "17.0.4",
111+
"typescript": "5.9.3",
112+
"typescript-eslint": "8.50.0",
113+
"updates": "17.0.7",
113114
"vite-string-plugin": "1.4.9",
114-
"vitest": "4.0.15",
115-
"vue-tsc": "3.1.5"
115+
"vitest": "4.0.16",
116+
"vue-tsc": "3.1.8"
116117
},
117118
"browserslist": [
118119
"defaults"

0 commit comments

Comments
 (0)