2 Star 0 Fork 0

mirrors_confluentinc/vscode

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
eslint.config.mjs 1.44 KB
一键复制 编辑 原始数据 按行查看 历史
Oleksii 提交于 2024-09-16 11:03 . fix ignore list in eslint config (#183)
import js from "@eslint/js";
import ts from "@typescript-eslint/eslint-plugin";
import parser from "@typescript-eslint/parser";
import prettier from "eslint-plugin-prettier/recommended";
import globals from "globals";
export default [
{
files: ["*.js", "*.mjs"],
rules: {
...js.configs.recommended.rules,
eqeqeq: ["error", "smart"],
"no-unused-vars": "warn",
},
languageOptions: {
globals: {
...globals.builtin,
...globals.node,
},
},
},
{
files: ["src/**/*.ts", "src/**/*.mts"],
ignores: ["src/clients/**"],
plugins: { "@typescript-eslint": ts },
rules: {
...js.configs.recommended.rules,
...ts.configs.recommended.rules,
eqeqeq: ["error", "smart"],
// TypeScript covers undefined things instead
"no-undef": "off",
"no-unused-vars": "off",
"no-redeclare": "off",
"@typescript-eslint/no-unused-vars": "warn",
// Some untyped things may require extra effort to be fixed
"@typescript-eslint/no-explicit-any": "off",
// replacement of ESLint's no-redeclare with support for function overload
"@typescript-eslint/no-redeclare": "error",
},
languageOptions: {
parser,
globals: {
...globals.builtin,
...globals.browser,
...globals.node,
},
},
},
{
files: ["src/**/*.test.ts"],
languageOptions: { globals: { ...globals.mocha } },
},
prettier,
];
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/mirrors_confluentinc/vscode.git
git@gitee.com:mirrors_confluentinc/vscode.git
mirrors_confluentinc
vscode
vscode
570-respell-gettopicsforcluster-using-resourceloader-operations-only

搜索帮助