From 1b471a2ca26cbb3449cb9ac4290f721be8094513 Mon Sep 17 00:00:00 2001 From: Fernand Date: Sat, 9 Mar 2024 01:29:54 +0900 Subject: [PATCH 1/2] chore: added ternary rules for eslint --- .eslintrc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.eslintrc b/.eslintrc index 5996f04..1ebf73c 100644 --- a/.eslintrc +++ b/.eslintrc @@ -17,9 +17,11 @@ "@typescript-eslint/no-invalid-this": ["error"], "no-restricted-syntax": ["error", "ForInStatement"], "use-isnan": "error", + "no-unneeded-ternary": "error", + "no-nested-ternary": "error", "@typescript-eslint/no-unused-vars": [ "error", - { + { "args": "after-used", "ignoreRestSiblings": true, "vars": "all", From a05352e880a03a8cd0b68e9f7b6d8912c71f8352 Mon Sep 17 00:00:00 2001 From: Fernand Date: Sat, 9 Mar 2024 01:33:07 +0900 Subject: [PATCH 2/2] chore: fixed trailing space in conf --- .eslintrc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.eslintrc b/.eslintrc index 1ebf73c..ae05460 100644 --- a/.eslintrc +++ b/.eslintrc @@ -21,7 +21,7 @@ "no-nested-ternary": "error", "@typescript-eslint/no-unused-vars": [ "error", - { + { "args": "after-used", "ignoreRestSiblings": true, "vars": "all",