From 29c0be4a798ac89a3154cdac48870977970c1383 Mon Sep 17 00:00:00 2001 From: Muunatic Date: Fri, 29 Dec 2023 17:26:19 +0700 Subject: [PATCH] test(linter) add lines-between-class-members, no-multi-spaces, no-multiple-empty-lines --- .eslintrc.json | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/.eslintrc.json b/.eslintrc.json index 3d1a4c8..8a9f115 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -29,6 +29,8 @@ "before": false }], "comma-style": ["warn", "last"], + "curly": ["error", "all"], + "default-case": 1, "eol-last": ["warn", "always"], "indent": ["warn", 4, { "SwitchCase": 1 @@ -40,6 +42,11 @@ "after": true, "before": true }], + "lines-between-class-members": ["warn", "always"], + "no-multi-spaces": 1, + "no-multiple-empty-lines": ["warn", { + "max": 1 + }], "no-trailing-spaces": 1, "no-unused-vars": 1, "no-useless-escape": 0, @@ -71,7 +78,8 @@ "multilineDetection": "brackets" }], "@typescript-eslint/no-unnecessary-condition": 2, - "@typescript-eslint/no-var-requires": 0 + "@typescript-eslint/no-require-imports": 2, + "@typescript-eslint/no-var-requires": 1 }, "ignorePatterns": ["dist/*.js", "dist/**/*.js"] }