|
@ -34,6 +34,7 @@ |
|
|
{ |
|
|
{ |
|
|
"files": ["*.ts"], |
|
|
"files": ["*.ts"], |
|
|
"plugins": ["eslint-plugin-import", "@typescript-eslint"], |
|
|
"plugins": ["eslint-plugin-import", "@typescript-eslint"], |
|
|
|
|
|
"extends": ["plugin:@typescript-eslint/recommended-type-checked"], |
|
|
"rules": { |
|
|
"rules": { |
|
|
"@typescript-eslint/consistent-type-definitions": "warn", |
|
|
"@typescript-eslint/consistent-type-definitions": "warn", |
|
|
"@typescript-eslint/dot-notation": "off", |
|
|
"@typescript-eslint/dot-notation": "off", |
|
@ -53,7 +54,6 @@ |
|
|
"ignoreParameters": true |
|
|
"ignoreParameters": true |
|
|
} |
|
|
} |
|
|
], |
|
|
], |
|
|
"@typescript-eslint/no-misused-new": "error", |
|
|
|
|
|
"@typescript-eslint/no-non-null-assertion": "warn", |
|
|
"@typescript-eslint/no-non-null-assertion": "warn", |
|
|
"@typescript-eslint/no-shadow": [ |
|
|
"@typescript-eslint/no-shadow": [ |
|
|
"warn", |
|
|
"warn", |
|
@ -61,12 +61,10 @@ |
|
|
"hoist": "all" |
|
|
"hoist": "all" |
|
|
} |
|
|
} |
|
|
], |
|
|
], |
|
|
"@typescript-eslint/no-unused-expressions": "warn", |
|
|
|
|
|
"@typescript-eslint/prefer-function-type": "warn", |
|
|
"@typescript-eslint/prefer-function-type": "warn", |
|
|
"@typescript-eslint/unified-signatures": "error", |
|
|
"@typescript-eslint/unified-signatures": "error", |
|
|
"@typescript-eslint/no-loss-of-precision": "warn", |
|
|
"@typescript-eslint/no-loss-of-precision": "warn", |
|
|
"@typescript-eslint/no-var-requires": "warn", |
|
|
"@typescript-eslint/no-var-requires": "warn", |
|
|
"@typescript-eslint/ban-ts-comment": "warn", |
|
|
|
|
|
"@typescript-eslint/ban-types": "warn", |
|
|
"@typescript-eslint/ban-types": "warn", |
|
|
"arrow-body-style": "off", |
|
|
"arrow-body-style": "off", |
|
|
"constructor-super": "error", |
|
|
"constructor-super": "error", |
|
@ -83,11 +81,9 @@ |
|
|
"no-fallthrough": "error", |
|
|
"no-fallthrough": "error", |
|
|
"no-new-wrappers": "error", |
|
|
"no-new-wrappers": "error", |
|
|
"no-restricted-imports": ["error", "rxjs/Rx"], |
|
|
"no-restricted-imports": ["error", "rxjs/Rx"], |
|
|
"no-throw-literal": "warn", |
|
|
|
|
|
"no-undef-init": "error", |
|
|
"no-undef-init": "error", |
|
|
"no-underscore-dangle": "off", |
|
|
"no-underscore-dangle": "off", |
|
|
"no-var": "error", |
|
|
"no-var": "error", |
|
|
"prefer-const": "warn", |
|
|
|
|
|
"radix": "error", |
|
|
"radix": "error", |
|
|
"no-unsafe-optional-chaining": "warn", |
|
|
"no-unsafe-optional-chaining": "warn", |
|
|
"no-extra-boolean-cast": "warn", |
|
|
"no-extra-boolean-cast": "warn", |
|
@ -96,7 +92,30 @@ |
|
|
"no-unsafe-finally": "warn", |
|
|
"no-unsafe-finally": "warn", |
|
|
"no-prototype-builtins": "warn", |
|
|
"no-prototype-builtins": "warn", |
|
|
"no-async-promise-executor": "warn", |
|
|
"no-async-promise-executor": "warn", |
|
|
"no-constant-condition": "warn" |
|
|
"no-constant-condition": "warn", |
|
|
|
|
|
|
|
|
|
|
|
// The following rules are part of @typescript-eslint/recommended-type-checked |
|
|
|
|
|
// and can be remove once solved |
|
|
|
|
|
"@typescript-eslint/await-thenable": "warn", |
|
|
|
|
|
"@typescript-eslint/ban-ts-comment": "warn", |
|
|
|
|
|
"@typescript-eslint/no-base-to-string": "warn", |
|
|
|
|
|
"@typescript-eslint/no-explicit-any": "warn", |
|
|
|
|
|
"@typescript-eslint/no-floating-promises": "warn", |
|
|
|
|
|
"@typescript-eslint/no-misused-promises": "warn", |
|
|
|
|
|
"@typescript-eslint/no-redundant-type-constituents": "warn", |
|
|
|
|
|
"@typescript-eslint/no-unnecessary-type-assertion": "warn", |
|
|
|
|
|
"@typescript-eslint/no-unsafe-argument": "warn", |
|
|
|
|
|
"@typescript-eslint/no-unsafe-assignment": "warn", |
|
|
|
|
|
"@typescript-eslint/no-unsafe-enum-comparison": "warn", |
|
|
|
|
|
"@typescript-eslint/no-unused-expressions": "warn", |
|
|
|
|
|
"@typescript-eslint/no-unsafe-member-access": "warn", |
|
|
|
|
|
"@typescript-eslint/no-unsafe-return": "warn", |
|
|
|
|
|
"@typescript-eslint/no-unused-vars": "warn", |
|
|
|
|
|
"@typescript-eslint/no-unsafe-call": "warn", |
|
|
|
|
|
"@typescript-eslint/require-await": "warn", |
|
|
|
|
|
"@typescript-eslint/restrict-template-expressions": "warn", |
|
|
|
|
|
"@typescript-eslint/unbound-method": "warn", |
|
|
|
|
|
"prefer-const": "warn" |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
], |
|
|
], |
|
|