mirror of
https://github.com/typeorm/typeorm.git
synced 2025-12-08 21:26:23 +00:00
* build: 👷 Initial setup of ESLint * build: 👷 show erros as warnings * refactor: ♻️ example of rule "no-var" * build: 🚨 add rule "no-unsafe-optional-chaining"
34 lines
1.2 KiB
JSON
34 lines
1.2 KiB
JSON
{
|
|
"extends": ["eslint:recommended", "plugin:@typescript-eslint/recommended"],
|
|
"parser": "@typescript-eslint/parser",
|
|
"plugins": ["@typescript-eslint"],
|
|
"ignorePatterns": ["*.d.ts"],
|
|
"rules": {
|
|
"@typescript-eslint/ban-types": "warn",
|
|
"@typescript-eslint/ban-ts-comment": "warn",
|
|
"@typescript-eslint/no-explicit-any": "warn",
|
|
"@typescript-eslint/no-loss-of-precision": "warn",
|
|
"@typescript-eslint/no-misused-new": "warn",
|
|
"@typescript-eslint/no-namespace": "warn",
|
|
"@typescript-eslint/no-this-alias": "warn",
|
|
"@typescript-eslint/no-unnecessary-type-constraint": "warn",
|
|
"@typescript-eslint/no-unsafe-declaration-merging": "warn",
|
|
"@typescript-eslint/no-unused-vars": "warn",
|
|
"@typescript-eslint/no-var-requires": "warn",
|
|
"@typescript-eslint/triple-slash-reference": "warn",
|
|
"no-async-promise-executor": "warn",
|
|
"no-control-regex": "warn",
|
|
"no-debugger": "warn",
|
|
"no-empty": "warn",
|
|
"no-extra-boolean-cast": "warn",
|
|
"no-extra-semi": "warn",
|
|
"no-prototype-builtins": "warn",
|
|
"no-regex-spaces": "warn",
|
|
"no-unsafe-optional-chaining": "warn",
|
|
"no-useless-escape": "warn",
|
|
"prefer-const": "warn",
|
|
"prefer-rest-params": "warn",
|
|
"prefer-spread": "warn"
|
|
}
|
|
}
|