Apply formatting and fix web request utilities

Add consistent indent rule to ESLint and normalize formatting/indentation across multiple files. Refactor RequestUtil: improve cookie extraction, redirect handling, and HttpGetJson/HttpGetText request flow; fix cookie string builder formatting. Fix uploadGroupNoticeImage promise/error handling and network request flow. Also apply minor style/refactor tweaks in bridge web APIs, onebot handlers, message-store SQL alignment, and Proton AST collector utilities to improve readability and correctness.
This commit is contained in:
手瓜一十雪 committed 2026-05-20 19:16:06 +08:00
1 parent aea2676c31
commit 36c3ed031b
2 files changed
+4

No files matched your search

+3
View File
@@ -30,6 +30,7 @@ export default defineConfig([
}, },
}, },
rules: { rules: {
'indent': ['error', 2, { SwitchCase: 1 }],
'no-unused-vars': 'off', 'no-unused-vars': 'off',
'no-useless-assignment': 'off', 'no-useless-assignment': 'off',
'prefer-const': 'off', 'prefer-const': 'off',
@@ -45,6 +46,7 @@ export default defineConfig([
}, },
}, },
rules: { rules: {
'indent': ['error', 2, { SwitchCase: 1 }],
'prefer-const': 'off', 'prefer-const': 'off',
'@typescript-eslint/no-explicit-any': 'off', '@typescript-eslint/no-explicit-any': 'off',
'@typescript-eslint/no-empty-object-type': 'off', '@typescript-eslint/no-empty-object-type': 'off',
@@ -69,6 +71,7 @@ export default defineConfig([
}, },
}, },
rules: { rules: {
'indent': ['error', 2, { SwitchCase: 1 }],
'prefer-const': 'off', 'prefer-const': 'off',
'react-refresh/only-export-components': 'off', 'react-refresh/only-export-components': 'off',
'react-hooks/set-state-in-effect': 'off', 'react-hooks/set-state-in-effect': 'off',
+1
View File
@@ -25,6 +25,7 @@ export default defineConfig([
}, },
}, },
rules: { rules: {
'indent': ['error', 2, { SwitchCase: 1 }],
'react-refresh/only-export-components': 'off', 'react-refresh/only-export-components': 'off',
'react-hooks/set-state-in-effect': 'off', 'react-hooks/set-state-in-effect': 'off',
}, },