实现安全开关默认关闭与响应头透传逻辑 - URL 校验与响应头过滤支持开关并覆盖流式路径 - 非流式 Content-Type 透传/默认值按配置生效 - 接入 go test、golangci-lint 与前端 lint/typecheck - 补充相关测试与配置/文档说明
37 lines
953 B
JavaScript
37 lines
953 B
JavaScript
module.exports = {
|
|
root: true,
|
|
env: {
|
|
browser: true,
|
|
es2021: true,
|
|
node: true,
|
|
},
|
|
parser: "vue-eslint-parser",
|
|
parserOptions: {
|
|
parser: "@typescript-eslint/parser",
|
|
ecmaVersion: "latest",
|
|
sourceType: "module",
|
|
extraFileExtensions: [".vue"],
|
|
},
|
|
plugins: ["vue", "@typescript-eslint"],
|
|
extends: [
|
|
"eslint:recommended",
|
|
"plugin:vue/vue3-essential",
|
|
"plugin:@typescript-eslint/recommended",
|
|
],
|
|
rules: {
|
|
"no-constant-condition": "off",
|
|
"no-mixed-spaces-and-tabs": "off",
|
|
"no-useless-escape": "off",
|
|
"no-unused-vars": "off",
|
|
"@typescript-eslint/no-unused-vars": [
|
|
"warn",
|
|
{ argsIgnorePattern: "^_", varsIgnorePattern: "^_" },
|
|
],
|
|
"@typescript-eslint/ban-types": "off",
|
|
"@typescript-eslint/ban-ts-comment": "off",
|
|
"@typescript-eslint/no-explicit-any": "off",
|
|
"vue/multi-word-component-names": "off",
|
|
"vue/no-use-v-if-with-v-for": "off",
|
|
},
|
|
};
|