Skip to content

Commit

Permalink
style: use es5 trailing commas
Browse files Browse the repository at this point in the history
  • Loading branch information
chuangcaleb committed Apr 27, 2024
1 parent 5679e93 commit 2a534b6
Showing 1 changed file with 8 additions and 23 deletions.
31 changes: 8 additions & 23 deletions .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -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",
Expand Down

0 comments on commit 2a534b6

Please sign in to comment.