8 Star 43 Fork 16

Gitee 极速下载/TypeORM

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
此仓库是为了提升国内下载速度的镜像仓库,每日同步一次。 原始仓库: https://github.com/typeorm/typeorm
克隆/下载
eslint.config.mjs 3.10 KB
一键复制 编辑 原始数据 按行查看 历史
import eslint from "@eslint/js"
import tseslint from "typescript-eslint"
import globals from "globals"
export default tseslint.config([
{
ignores: [
"build/**",
"docs/**",
"node_modules/**",
"sample/playground/**",
"temp/**",
],
},
{
files: ["**/*.ts"],
languageOptions: {
parser: tseslint.parser,
parserOptions: {
project: "tsconfig.json",
},
globals: {
...globals.browser,
...globals.node,
},
},
extends: [
eslint.configs.recommended,
...tseslint.configs.recommendedTypeChecked,
],
rules: {
// exceptions from typescript-eslint/recommended
"@typescript-eslint/ban-ts-comment": "warn",
"@typescript-eslint/no-empty-object-type": "warn",
"@typescript-eslint/no-explicit-any": "warn",
"@typescript-eslint/no-require-imports": "warn",
"@typescript-eslint/no-this-alias": "warn",
"@typescript-eslint/no-unnecessary-type-constraint": "warn",
"@typescript-eslint/no-unsafe-declaration-merging": "warn",
"@typescript-eslint/no-unsafe-function-type": "warn",
"@typescript-eslint/no-unused-expressions": "warn",
"@typescript-eslint/no-unused-vars": [
"warn",
{ argsIgnorePattern: "^_" },
],
"@typescript-eslint/no-wrapper-object-types": "off",
"prefer-const": ["error", { destructuring: "all" }],
// exceptions from typescript-eslint/recommended-type-checked
"@typescript-eslint/no-base-to-string": "off",
"@typescript-eslint/no-misused-promises": [
"error",
{
checksConditionals: false,
checksVoidReturn: false,
},
],
"@typescript-eslint/no-redundant-type-constituents": "warn",
"@typescript-eslint/no-unnecessary-type-assertion": "off",
"@typescript-eslint/no-unsafe-argument": "off",
"@typescript-eslint/no-unsafe-assignment": "off",
"@typescript-eslint/no-unsafe-call": "off",
"@typescript-eslint/no-unsafe-member-access": "off",
"@typescript-eslint/no-unsafe-return": "off",
"@typescript-eslint/prefer-promise-reject-errors": "off",
"@typescript-eslint/require-await": "warn",
"@typescript-eslint/restrict-plus-operands": "warn",
"@typescript-eslint/restrict-template-expressions": "warn",
"@typescript-eslint/unbound-method": [
"warn",
{ ignoreStatic: true },
],
// exceptions for eslint/recommended
"no-async-promise-executor": "warn",
"no-control-regex": "warn",
"no-empty": "warn",
"no-loss-of-precision": "warn",
"no-prototype-builtins": "warn",
"no-regex-spaces": "warn",
},
},
])
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
TypeScript
1
https://gitee.com/mirrors/TypeORM.git
git@gitee.com:mirrors/TypeORM.git
mirrors
TypeORM
TypeORM
master

搜索帮助