您的位置:首页 > 科技 > IT业 > 电商推广绩效_杭州系统开发_电商营销策划方案_抖音seo系统

电商推广绩效_杭州系统开发_电商营销策划方案_抖音seo系统

2025/4/28 15:23:12 来源:https://blog.csdn.net/printf_hello/article/details/147483521  浏览:    关键词:电商推广绩效_杭州系统开发_电商营销策划方案_抖音seo系统
电商推广绩效_杭州系统开发_电商营销策划方案_抖音seo系统

在这里插入图片描述

问题
An empty interface declaration allows any non-nullish value, including literals like 0 and "".

  • If that’s what you want, disable this lint rule with an inline comment or configure the ‘allowInterfaces’ rule option.
  • If you want a type meaning “any object”, you probably want object instead.
  • If you want a type meaning “any value”, you probably want unknown instead.eslint@typescript-eslint/no-empty-object-type

新增 规则

 ...compat.config({rules: {"@typescript-eslint/no-empty-object-type": "off",},}),

or

...compat.config({rules: {allowInterfaces: 'with-single-extends'},}),
import { dirname } from "path";
import { fileURLToPath } from "url";
import { FlatCompat } from "@eslint/eslintrc";const __filename = fileURLToPath(import.meta.url);
const __dirname = dirname(__filename);const compat = new FlatCompat({baseDirectory: __dirname,
});const eslintConfig = [...compat.extends("next/core-web-vitals", "next/typescript"),...compat.config({rules: {// "@typescript-eslint/no-empty-object-type": "off",allowInterfaces: "with-single-extends",},}),
];export default eslintConfig;

版权声明:

本网仅为发布的内容提供存储空间,不对发表、转载的内容提供任何形式的保证。凡本网注明“来源:XXX网络”的作品,均转载自其它媒体,著作权归作者所有,商业转载请联系作者获得授权,非商业转载请注明出处。

我们尊重并感谢每一位作者,均已注明文章来源和作者。如因作品内容、版权或其它问题,请及时与我们联系,联系邮箱:809451989@qq.com,投稿邮箱:809451989@qq.com