执行npm init @eslint/config 后和老师的文件内容不同 是不是版本不一致的原因
来源:3-4 ESLint 简介和初步使用

秋雨先生
2024-05-09
import globals from "globals";
import tseslint from "typescript-eslint";
import pluginVue from "eslint-plugin-vue";
export default [
{languageOptions: { globals: globals.browser }},
...tseslint.configs.recommended,
...pluginVue.configs["flat/essential"],
];
写回答
1回答
-
张轩
2024-05-10
同学你好
有可能是版本问题,因为eslint 刚上了一个大版本,不过这个没有关系,就用新版本也可以兼容后面的内容。
012024-05-10
相似问题