From 31e0b6d44858d0a935d9693333924ff292efbdc8 Mon Sep 17 00:00:00 2001 From: Xymorot Date: Wed, 26 Jun 2019 23:29:34 +0200 Subject: [PATCH] change eslint rules to warnings, add more rules --- .eslintrc.json | 5 +++-- .prettierrc.yml | 1 + tslint.json | 13 +++++++++++-- 3 files changed, 15 insertions(+), 4 deletions(-) diff --git a/.eslintrc.json b/.eslintrc.json index 3563858..ca3aba9 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -10,7 +10,8 @@ "ecmaVersion": 2017 }, "rules": { - "no-shadow": "error", - "no-magic-numbers": "error" + "no-shadow": "warn", + "no-magic-numbers": "warn", + "no-param-reassign": "warn" } } diff --git a/.prettierrc.yml b/.prettierrc.yml index a785dbb..194b624 100644 --- a/.prettierrc.yml +++ b/.prettierrc.yml @@ -2,6 +2,7 @@ trailingComma: 'es5' tabWidth: 2 semi: true singleQuote: true +arrowParens: always printWidth: 80 overrides: - files: '*.svelte' diff --git a/tslint.json b/tslint.json index 7301352..b474f86 100644 --- a/tslint.json +++ b/tslint.json @@ -4,18 +4,27 @@ "defaultSeverity": "warn", "rules": { "prettier": true, + "typedef": [ + true, + "arrow-call-signature", + "arrow-parameter", + "call-signature", + "member-variable-declaration", + "parameter", + "property-declaration" + ], "no-console": true, "object-literal-sort-keys": [true, "match-declaration-order-only"], "no-implicit-dependencies": false, "no-submodule-imports": false, - "arrow-parens": [true, "ban-single-arg-parens"], "no-floating-promises": true, "no-unused-expression": true, "await-promise": true, "no-inferrable-types": true, "prefer-for-of": true, "no-empty": [true, "allow-empty-functions"], - "no-magic-numbers": true + "no-magic-numbers": true, + "no-parameter-reassignment": true }, "jsRules": true }