From 2a534b6e50b5ae0b0221b6a82bd977362b5fe5fb Mon Sep 17 00:00:00 2001 From: chuangcaleb Date: Sat, 27 Apr 2024 12:38:14 +0800 Subject: [PATCH] style: use es5 trailing commas --- .eslintrc.json | 31 ++++++++----------------------- 1 file changed, 8 insertions(+), 23 deletions(-) diff --git a/.eslintrc.json b/.eslintrc.json index 285ed17..45ba446 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -11,16 +11,9 @@ ], "parser": "@typescript-eslint/parser", "parserOptions": { - "project": [ - "tsconfig.json" - ] + "project": ["tsconfig.json"] }, - "plugins": [ - "@typescript-eslint", - "prettier", - "unicorn", - "import" - ], + "plugins": ["@typescript-eslint", "prettier", "unicorn", "import"], "rules": { "@typescript-eslint/no-unused-vars": [ "error", @@ -29,23 +22,15 @@ "argsIgnorePattern": "^_" } ], - "arrow-body-style": "off", - "prefer-arrow-callback": "off", + "prettier/prettier": ["error", { "trailingComma": "es5" }], + // "arrow-body-style": "off", + // "prefer-arrow-callback": "off", "consistent-return": "off", "import/prefer-default-export": "off", "import/extensions": "off", - "no-underscore-dangle": "off", - "no-restricted-syntax": [ - "off", - "ForOfStatement" - ], - "prettier/prettier": [ - "error", - { - "trailingComma": "all" - } - ], - "unicorn/no-array-method-this-argument": "off", + // "no-underscore-dangle": "off", + // "no-restricted-syntax": ["off", "ForOfStatement"], + // "unicorn/no-array-method-this-argument": "off", "unicorn/no-array-callback-reference": "off", "unicorn/prevent-abbreviations": [ "error",