mirror of
https://github.com/typeorm/typeorm.git
synced 2025-12-08 21:26:23 +00:00
* style: 🚨 enable some linter rules * Revert "style: 🚨 enable some linter rules" This reverts commit 239fa2deb7aaf22cfac4bbb1369d6d973327efd4. * revert: ⏪ revert role "prefer-const" * revert: ⏪ enable linter warnings * style: 🚨 enable rule "no-extra-boolean-cast" * revert: ⏪ disable rule "no-empty" * style: 🚨 add linter rule "no-useless-escape" * style: 🚨 add linter rule "no-unsafe-optional-chaining"
30 lines
1.1 KiB
JSON
30 lines
1.1 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-empty": "warn",
|
|
"no-extra-semi": "warn",
|
|
"no-prototype-builtins": "warn",
|
|
"no-regex-spaces": "warn",
|
|
"prefer-const": "warn",
|
|
"prefer-rest-params": "warn",
|
|
"prefer-spread": "warn"
|
|
}
|
|
}
|