1
0
mirror of https://github.com/go-gitea/gitea.git synced 2024-11-04 08:17:24 -05:00

Update JS dependencies, add new eslint rules (#30840)

This commit is contained in:
silverwind 2024-05-10 20:53:43 +02:00 committed by GitHub
parent 080486e47d
commit 1f3ada47a3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 671 additions and 491 deletions

View File

@ -127,19 +127,21 @@ rules:
"@stylistic/js/computed-property-spacing": [2, never] "@stylistic/js/computed-property-spacing": [2, never]
"@stylistic/js/dot-location": [2, property] "@stylistic/js/dot-location": [2, property]
"@stylistic/js/eol-last": [2] "@stylistic/js/eol-last": [2]
"@stylistic/js/function-call-spacing": [2, never]
"@stylistic/js/function-call-argument-newline": [0] "@stylistic/js/function-call-argument-newline": [0]
"@stylistic/js/function-call-spacing": [2, never]
"@stylistic/js/function-paren-newline": [0] "@stylistic/js/function-paren-newline": [0]
"@stylistic/js/generator-star-spacing": [0] "@stylistic/js/generator-star-spacing": [0]
"@stylistic/js/implicit-arrow-linebreak": [0] "@stylistic/js/implicit-arrow-linebreak": [0]
"@stylistic/js/indent": [2, 2, {ignoreComments: true, SwitchCase: 1}] "@stylistic/js/indent": [2, 2, {ignoreComments: true, SwitchCase: 1}]
"@stylistic/js/key-spacing": [2] "@stylistic/js/key-spacing": [2]
"@stylistic/js/keyword-spacing": [2] "@stylistic/js/keyword-spacing": [2]
"@stylistic/js/line-comment-position": [0]
"@stylistic/js/linebreak-style": [2, unix] "@stylistic/js/linebreak-style": [2, unix]
"@stylistic/js/lines-around-comment": [0] "@stylistic/js/lines-around-comment": [0]
"@stylistic/js/lines-between-class-members": [0] "@stylistic/js/lines-between-class-members": [0]
"@stylistic/js/max-len": [0] "@stylistic/js/max-len": [0]
"@stylistic/js/max-statements-per-line": [0] "@stylistic/js/max-statements-per-line": [0]
"@stylistic/js/multiline-comment-style": [0]
"@stylistic/js/multiline-ternary": [0] "@stylistic/js/multiline-ternary": [0]
"@stylistic/js/new-parens": [2] "@stylistic/js/new-parens": [2]
"@stylistic/js/newline-per-chained-call": [0] "@stylistic/js/newline-per-chained-call": [0]
@ -705,6 +707,7 @@ rules:
unicorn/better-regex: [0] unicorn/better-regex: [0]
unicorn/catch-error-name: [0] unicorn/catch-error-name: [0]
unicorn/consistent-destructuring: [2] unicorn/consistent-destructuring: [2]
unicorn/consistent-empty-array-spread: [2]
unicorn/consistent-function-scoping: [2] unicorn/consistent-function-scoping: [2]
unicorn/custom-error-definition: [0] unicorn/custom-error-definition: [0]
unicorn/empty-brace-spaces: [2] unicorn/empty-brace-spaces: [2]
@ -731,9 +734,11 @@ rules:
unicorn/no-for-loop: [0] unicorn/no-for-loop: [0]
unicorn/no-hex-escape: [0] unicorn/no-hex-escape: [0]
unicorn/no-instanceof-array: [0] unicorn/no-instanceof-array: [0]
unicorn/no-invalid-fetch-options: [2]
unicorn/no-invalid-remove-event-listener: [2] unicorn/no-invalid-remove-event-listener: [2]
unicorn/no-keyword-prefix: [0] unicorn/no-keyword-prefix: [0]
unicorn/no-lonely-if: [2] unicorn/no-lonely-if: [2]
unicorn/no-magic-array-flat-depth: [0]
unicorn/no-negated-condition: [0] unicorn/no-negated-condition: [0]
unicorn/no-nested-ternary: [0] unicorn/no-nested-ternary: [0]
unicorn/no-new-array: [0] unicorn/no-new-array: [0]
@ -799,10 +804,12 @@ rules:
unicorn/prefer-set-has: [0] unicorn/prefer-set-has: [0]
unicorn/prefer-set-size: [2] unicorn/prefer-set-size: [2]
unicorn/prefer-spread: [0] unicorn/prefer-spread: [0]
unicorn/prefer-string-raw: [0]
unicorn/prefer-string-replace-all: [0] unicorn/prefer-string-replace-all: [0]
unicorn/prefer-string-slice: [0] unicorn/prefer-string-slice: [0]
unicorn/prefer-string-starts-ends-with: [2] unicorn/prefer-string-starts-ends-with: [2]
unicorn/prefer-string-trim-start-end: [2] unicorn/prefer-string-trim-start-end: [2]
unicorn/prefer-structured-clone: [2]
unicorn/prefer-switch: [0] unicorn/prefer-switch: [0]
unicorn/prefer-ternary: [0] unicorn/prefer-ternary: [0]
unicorn/prefer-text-content: [2] unicorn/prefer-text-content: [2]

1115
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -5,7 +5,7 @@
}, },
"dependencies": { "dependencies": {
"@citation-js/core": "0.7.11", "@citation-js/core": "0.7.11",
"@citation-js/plugin-bibtex": "0.7.11", "@citation-js/plugin-bibtex": "0.7.12",
"@citation-js/plugin-csl": "0.7.11", "@citation-js/plugin-csl": "0.7.11",
"@citation-js/plugin-software-formats": "0.6.1", "@citation-js/plugin-software-formats": "0.6.1",
"@github/markdown-toolbar-element": "2.2.3", "@github/markdown-toolbar-element": "2.2.3",
@ -14,15 +14,15 @@
"@mcaptcha/vanilla-glue": "0.1.0-alpha-3", "@mcaptcha/vanilla-glue": "0.1.0-alpha-3",
"@primer/octicons": "19.9.0", "@primer/octicons": "19.9.0",
"@silverwind/vue3-calendar-heatmap": "2.0.6", "@silverwind/vue3-calendar-heatmap": "2.0.6",
"add-asset-webpack-plugin": "2.0.1", "add-asset-webpack-plugin": "3.0.0",
"ansi_up": "6.0.2", "ansi_up": "6.0.2",
"asciinema-player": "3.7.1", "asciinema-player": "3.7.1",
"chart.js": "4.4.2", "chart.js": "4.4.2",
"chartjs-adapter-dayjs-4": "1.0.4", "chartjs-adapter-dayjs-4": "1.0.4",
"chartjs-plugin-zoom": "2.0.1", "chartjs-plugin-zoom": "2.0.1",
"clippie": "4.0.7", "clippie": "4.1.1",
"css-loader": "7.1.1", "css-loader": "7.1.1",
"dayjs": "1.11.10", "dayjs": "1.11.11",
"dropzone": "6.0.0-beta.2", "dropzone": "6.0.0-beta.2",
"easymde": "2.18.0", "easymde": "2.18.0",
"esbuild-loader": "4.1.0", "esbuild-loader": "4.1.0",
@ -43,7 +43,7 @@
"postcss-loader": "8.1.1", "postcss-loader": "8.1.1",
"postcss-nesting": "12.1.2", "postcss-nesting": "12.1.2",
"sortablejs": "1.15.2", "sortablejs": "1.15.2",
"swagger-ui-dist": "5.17.2", "swagger-ui-dist": "5.17.7",
"tailwindcss": "3.4.3", "tailwindcss": "3.4.3",
"temporal-polyfill": "0.2.4", "temporal-polyfill": "0.2.4",
"throttle-debounce": "5.0.0", "throttle-debounce": "5.0.0",
@ -53,7 +53,7 @@
"tributejs": "5.1.3", "tributejs": "5.1.3",
"uint8-to-base64": "0.2.0", "uint8-to-base64": "0.2.0",
"vanilla-colorful": "0.7.2", "vanilla-colorful": "0.7.2",
"vue": "3.4.25", "vue": "3.4.27",
"vue-bar-graph": "2.0.0", "vue-bar-graph": "2.0.0",
"vue-chartjs": "5.3.1", "vue-chartjs": "5.3.1",
"vue-loader": "17.4.2", "vue-loader": "17.4.2",
@ -63,10 +63,10 @@
}, },
"devDependencies": { "devDependencies": {
"@eslint-community/eslint-plugin-eslint-comments": "4.3.0", "@eslint-community/eslint-plugin-eslint-comments": "4.3.0",
"@playwright/test": "1.43.1", "@playwright/test": "1.44.0",
"@stoplight/spectral-cli": "6.11.1", "@stoplight/spectral-cli": "6.11.1",
"@stylistic/eslint-plugin-js": "1.7.2", "@stylistic/eslint-plugin-js": "2.1.0",
"@stylistic/stylelint-plugin": "2.1.1", "@stylistic/stylelint-plugin": "2.1.2",
"@vitejs/plugin-vue": "5.0.4", "@vitejs/plugin-vue": "5.0.4",
"eslint": "8.57.0", "eslint": "8.57.0",
"eslint-plugin-array-func": "4.0.0", "eslint-plugin-array-func": "4.0.0",
@ -76,24 +76,24 @@
"eslint-plugin-no-jquery": "2.7.0", "eslint-plugin-no-jquery": "2.7.0",
"eslint-plugin-no-use-extend-native": "0.5.0", "eslint-plugin-no-use-extend-native": "0.5.0",
"eslint-plugin-regexp": "2.5.0", "eslint-plugin-regexp": "2.5.0",
"eslint-plugin-sonarjs": "0.25.1", "eslint-plugin-sonarjs": "1.0.3",
"eslint-plugin-unicorn": "52.0.0", "eslint-plugin-unicorn": "53.0.0",
"eslint-plugin-vitest": "0.4.1", "eslint-plugin-vitest": "0.4.1",
"eslint-plugin-vitest-globals": "1.5.0", "eslint-plugin-vitest-globals": "1.5.0",
"eslint-plugin-vue": "9.25.0", "eslint-plugin-vue": "9.26.0",
"eslint-plugin-vue-scoped-css": "2.8.0", "eslint-plugin-vue-scoped-css": "2.8.0",
"eslint-plugin-wc": "2.1.0", "eslint-plugin-wc": "2.1.0",
"happy-dom": "14.7.1", "happy-dom": "14.10.1",
"markdownlint-cli": "0.39.0", "markdownlint-cli": "0.40.0",
"postcss-html": "1.6.0", "postcss-html": "1.7.0",
"stylelint": "16.4.0", "stylelint": "16.5.0",
"stylelint-declaration-block-no-ignored-properties": "2.8.0", "stylelint-declaration-block-no-ignored-properties": "2.8.0",
"stylelint-declaration-strict-value": "1.10.4", "stylelint-declaration-strict-value": "1.10.4",
"stylelint-value-no-unknown-custom-properties": "6.0.1", "stylelint-value-no-unknown-custom-properties": "6.0.1",
"svgo": "3.2.0", "svgo": "3.3.2",
"updates": "16.0.1", "updates": "16.0.1",
"vite-string-plugin": "1.2.0", "vite-string-plugin": "1.3.1",
"vitest": "1.5.2" "vitest": "1.6.0"
}, },
"browserslist": [ "browserslist": [
"defaults" "defaults"