From 7f69fc6b1ee0ef43244785b4319dd53751ad74af Mon Sep 17 00:00:00 2001 From: Valentin Popov Date: Thu, 18 Jun 2020 00:20:56 +0400 Subject: Updated ESLint rules Signed-off-by: Valentin Popov --- src/rules/javascript/default.json | 44 +++++++++++++++++++-------------------- 1 file changed, 22 insertions(+), 22 deletions(-) (limited to 'src/rules/javascript/default.json') diff --git a/src/rules/javascript/default.json b/src/rules/javascript/default.json index 3014de5..3bc17cc 100644 --- a/src/rules/javascript/default.json +++ b/src/rules/javascript/default.json @@ -2,7 +2,8 @@ "array-callback-return": [ "error", { - "allowImplicit": false + "allowImplicit": false, + "checkForEach": true } ], "arrow-parens": [ @@ -23,9 +24,6 @@ "allowSingleLine": false } ], - "callback-return": [ - "warn" - ], "camelcase": [ "error", { @@ -53,10 +51,7 @@ ], "comma-style": [ "error", - "last", - { - "exceptions": {} - } + "last" ], "curly": [ "error", @@ -80,9 +75,6 @@ "error", "consistent" ], - "handle-callback-err": [ - "error" - ], "id-length": [ "warn", { @@ -115,6 +107,7 @@ "flatTernaryExpressions": true, "ignoreComments": false, "ignoredNodes": [], + "offsetTernaryExpressions": 1, "outerIIFEBody": 1 } ], @@ -330,9 +323,6 @@ "no-new-func": [ "error" ], - "no-new-require": [ - "error" - ], "no-new-wrappers": [ "error" ], @@ -345,12 +335,6 @@ "props": true } ], - "no-path-concat": [ - "error" - ], - "no-process-env": [ - "off" - ], "no-proto": [ "error" ], @@ -469,8 +453,24 @@ "object-curly-newline": [ "error", { + "ExportDeclaration": { + "consistent": true, + "minProperties": 1, + "multiline": true + }, + "ImportDeclaration": "never", + "ObjectExpression": { + "consistent": true, + "minProperties": 1, + "multiline": true + }, + "ObjectPattern": { + "consistent": true, + "minProperties": 1, + "multiline": true + }, "consistent": true, - "minProperties": 5, + "minProperties": 1, "multiline": true } ], @@ -642,4 +642,4 @@ "onlyEquality": false } ] -} +} \ No newline at end of file -- cgit v1.2.3 From 14cecabc106a9cf8e4f34ecb114fd26edd4c92f6 Mon Sep 17 00:00:00 2001 From: Valentin Popov Date: Thu, 18 Jun 2020 01:02:06 +0400 Subject: Fixed rules Signed-off-by: Valentin Popov --- ROADMAP.md | 3 ++- src/rules/javascript/default.json | 8 ++------ src/rules/typescript/default.json | 8 -------- 3 files changed, 4 insertions(+), 15 deletions(-) (limited to 'src/rules/javascript/default.json') diff --git a/ROADMAP.md b/ROADMAP.md index f671ba7..e7e9612 100644 --- a/ROADMAP.md +++ b/ROADMAP.md @@ -308,6 +308,7 @@ - [ ] "no-dynamic-require" - [ ] "no-extraneous-dependencies" - [ ] "no-internal-modules" +- [ ] "no-loss-of-precision" - [ ] "no-mutable-exports" - [ ] "no-named-as-default" - [ ] "no-named-as-default-member" @@ -380,6 +381,7 @@ - [ ] "ban-tslint-comment" - [ ] "ban-types" - [ ] "brace-style" +- [ ] "camelcase" - [X] "class-literal-property-style" - [X] "comma-spacing" - [ ] "consistent-type-assertions" @@ -436,7 +438,6 @@ - [X] "no-unsafe-call" - [X] "no-unsafe-member-access" - [X] "no-unsafe-return" -- [X] "no-untyped-public-signature" - [ ] "no-unused-expressions" - [X] "no-unused-vars" - [X] "no-unused-vars-experimental" diff --git a/src/rules/javascript/default.json b/src/rules/javascript/default.json index 3bc17cc..34e1d8f 100644 --- a/src/rules/javascript/default.json +++ b/src/rules/javascript/default.json @@ -106,8 +106,7 @@ "VariableDeclarator": 1, "flatTernaryExpressions": true, "ignoreComments": false, - "ignoredNodes": [], - "offsetTernaryExpressions": 1, + "offsetTernaryExpressions": true, "outerIIFEBody": 1 } ], @@ -468,10 +467,7 @@ "consistent": true, "minProperties": 1, "multiline": true - }, - "consistent": true, - "minProperties": 1, - "multiline": true + } } ], "object-curly-spacing": [ diff --git a/src/rules/typescript/default.json b/src/rules/typescript/default.json index fa868f6..f65f761 100644 --- a/src/rules/typescript/default.json +++ b/src/rules/typescript/default.json @@ -138,14 +138,6 @@ "@typescript-eslint/no-unsafe-return": [ "error" ], - "@typescript-eslint/no-untyped-public-signature": [ - "warn", - { - "ignoredMethods": [ - "constructor" - ] - } - ], "@typescript-eslint/no-unused-vars": [ "error", { -- cgit v1.2.3