🎨 update eslint.config.js

This commit is contained in:
landaiqing
2024-11-05 17:43:34 +08:00
parent 462818ff9d
commit 2263ff213c
4 changed files with 1 additions and 6 deletions

2
components.d.ts vendored
View File

@@ -50,8 +50,6 @@ declare module 'vue' {
CommentInput: typeof import('./src/components/CommentReply/src/CommentInput/CommentInput.vue')['default']
CommentList: typeof import('./src/components/CommentReply/src/CommentList/CommentList.vue')['default']
CommentReply: typeof import('./src/components/CommentReply/index.vue')['default']
DivTextarea: typeof import('./src/components/MyUI/Textarea/DivTextarea.vue')['default']
DownloadOutlined: typeof import('@ant-design/icons-vue')['DownloadOutlined']
DynamicTitle: typeof import('./src/components/DynamicTitle/DynamicTitle.vue')['default']
EffectsCard: typeof import('./src/components/EffectsCard/EffectsCard.vue')['default']
Ellipsis: typeof import('./src/components/MyUI/Ellipsis/Ellipsis.vue')['default']

View File

@@ -24,9 +24,8 @@ export default [
rules: {
semi: "error",
"@typescript-eslint/no-explicit-any": "off",
// "no-unused-vars": "off",
// "@typescript-eslint/no-unused-vars": ["off"],
"vue/multi-word-component-names": "off",
'@typescript-eslint/no-unused-vars': ['error', {"argsIgnorePattern": "^_"}],
}
}
];

View File

@@ -1,6 +1,5 @@
<script setup lang="ts">
import { ref, computed, watch, onMounted } from 'vue';
import Tooltip from '../tooltip/Tooltip.vue';
import { useResizeObserver } from '../utils';
interface Props {
maxWidth?: string | number // 文本最大宽度,单位 px

View File

@@ -28,7 +28,6 @@ interface CommentContent {
}
export interface ReplyCommentParams {
user_id: string,
topic_id: string,
content: string,
images: string[],