diff options
author | Valentin Popov <info@valentineus.link> | 2020-03-26 21:38:42 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-03-26 21:38:42 +0300 |
commit | 4aa0bc667bea03259f8bb26dba63795e74a86299 (patch) | |
tree | f31989196049dc78a45e29f057a375c202ed8405 /src/rules/typescript/default.json | |
parent | 1380e3839788779a3402a0bf4fb1a3ba57c0d162 (diff) | |
parent | 2bdf5c87990e7ebcd338f15245ca1e937a361750 (diff) | |
download | eslint-config-0.0.14.tar.xz eslint-config-0.0.14.zip |
Merge pull request #2 from valentineus/developv0.0.14
Develop
Diffstat (limited to 'src/rules/typescript/default.json')
-rw-r--r-- | src/rules/typescript/default.json | 56 |
1 files changed, 54 insertions, 2 deletions
diff --git a/src/rules/typescript/default.json b/src/rules/typescript/default.json index 43ad740..fe556bc 100644 --- a/src/rules/typescript/default.json +++ b/src/rules/typescript/default.json @@ -2,6 +2,10 @@ "@typescript-eslint/await-thenable": [ "error" ], + "@typescript-eslint/class-literal-property-style": [ + "error", + "getters" + ], "@typescript-eslint/comma-spacing": [ "error", { @@ -64,6 +68,9 @@ "prefixWithI": "always" } ], + "@typescript-eslint/no-base-to-string": [ + "error" + ], "@typescript-eslint/no-empty-interface": [ "warn", { @@ -73,7 +80,7 @@ "@typescript-eslint/no-explicit-any": [ "warn", { - "fixToUnknown": false, + "fixToUnknown": true, "ignoreRestArgs": false } ], @@ -115,6 +122,26 @@ "allowTupleTypes": "in-unions-and-intersections" } ], + "@typescript-eslint/no-unnecessary-condition": [ + "error", + { + "allowConstantLoopConditions": false, + "checkArrayPredicates": true, + "ignoreRhs": true + } + ], + "@typescript-eslint/no-unnecessary-type-assertion": [ + "error" + ], + "@typescript-eslint/no-unsafe-call": [ + "error" + ], + "@typescript-eslint/no-unsafe-member-access": [ + "error" + ], + "@typescript-eslint/no-unsafe-return": [ + "error" + ], "@typescript-eslint/no-untyped-public-signature": [ "warn", { @@ -151,6 +178,12 @@ "@typescript-eslint/no-var-requires": [ "error" ], + "@typescript-eslint/prefer-readonly-parameter-types": [ + "error", + { + "checkParameterProperties": true + } + ], "@typescript-eslint/quotes": [ "error", "double", @@ -188,6 +221,8 @@ "@typescript-eslint/type-annotation-spacing": [ "error", { + "after": true, + "before": true, "overrides": { "arrow": { "after": true, @@ -196,6 +231,22 @@ "colon": { "after": true, "before": false + }, + "parameter": { + "after": true, + "before": true + }, + "property": { + "after": true, + "before": true + }, + "returnType": { + "after": true, + "before": true + }, + "variable": { + "after": true, + "before": true } } } @@ -209,7 +260,8 @@ "objectDestructuring": true, "parameter": true, "propertyDeclaration": true, - "variableDeclaration": true + "variableDeclaration": true, + "variableDeclarationIgnoreFunction": false } ], "comma-spacing": [ |