diff --git a/.eslintrc.js b/.eslintrc.js index 15f3eb686..3ac5deced 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -4,9 +4,9 @@ module.exports = { es2020: true, }, extends: [ - 'plugin:vue/recommended', - 'plugin:@typescript-eslint/recommended', 'airbnb-base', + 'plugin:vue/vue3-recommended', + 'plugin:@typescript-eslint/recommended', 'plugin:prettier/recommended', ], globals: { @@ -30,10 +30,11 @@ module.exports = { 'import/no-default-export': 'error', 'import/no-named-default': 'off', + '@typescript-eslint/no-non-null-assertion': 'off', + '@typescript-eslint/consistent-type-imports': 'error', '@typescript-eslint/member-delimiter-style': 'off', '@typescript-eslint/explicit-function-return-type': 'off', '@typescript-eslint/explicit-module-boundary-types': 'off', - '@typescript-eslint/no-unused-vars': 'error', '@typescript-eslint/no-shadow': ['error', { builtinGlobals: false }], '@typescript-eslint/no-explicit-any': 'off', '@typescript-eslint/no-use-before-define': ['error'], @@ -52,6 +53,7 @@ module.exports = { 'vue/require-prop-types': 'off', 'vue/one-component-per-file': 'off', 'vue/singleline-html-element-content-newline': 'off', + 'vue/multi-word-component-names': 'off', // 使用 @typescript-eslint/no-unused-vars, 否则 interface 都是 unused 'no-unused-vars': 'off', @@ -77,6 +79,7 @@ module.exports = { 'arrow-body-style': 'off', 'prefer-arrow-callback': 'off', + 'prefer-regex-literals': 'off', 'object-curly-newline': 'off', 'linebreak-style': 'off', camelcase: 'off', diff --git a/.vscode/tasks.json b/.vscode/tasks.json index 7fcd64c6b..2307a197f 100644 --- a/.vscode/tasks.json +++ b/.vscode/tasks.json @@ -54,7 +54,7 @@ }, { "type": "shell", - "command": "pnpm tsc -p tsconfig.type-check.json --noEmit", + "command": "pnpm vue-tsc -p tsconfig.type-check.json --noEmit", "group": "build", "problemMatcher": [], "label": "生产:类型检查 prod:type" diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index e9f1a014a..626d1f944 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -153,9 +153,6 @@ pnpm install ### 全局 全局变量, 无需 `import` 就可以直接使用. (Tampermonkey API 这里不再列出了, 可根据代码提示使用) -- `Vue`: Vue 库的主对象, 在创建 `.vue` 组件时, 其中的 ` diff --git a/registry/lib/components/video/default-location/Options.vue b/registry/lib/components/video/default-location/Options.vue index 0b05a13f6..a106089eb 100644 --- a/registry/lib/components/video/default-location/Options.vue +++ b/registry/lib/components/video/default-location/Options.vue @@ -3,9 +3,9 @@
页面
@@ -14,18 +14,18 @@
默认位置
- +