Skip to content

Commit

Permalink
chore: re-introduce "unicorn"
Browse files Browse the repository at this point in the history
  • Loading branch information
43081j committed Mar 26, 2022
1 parent 2752db8 commit 23d4ada
Show file tree
Hide file tree
Showing 4 changed files with 472 additions and 10 deletions.
20 changes: 12 additions & 8 deletions .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"node": true,
"jest": true
},
"extends": ["eslint:recommended", "prettier"],
"extends": ["eslint:recommended", "plugin:unicorn/recommended", "prettier"],
"rules": {
"no-console": "error",
"curly": ["error", "all"],
Expand All @@ -21,20 +21,24 @@
}
],
"prefer-template": "error",
"arrow-body-style": ["error", "as-needed"]
"arrow-body-style": ["error", "as-needed"],

"unicorn/no-null": "off",
"unicorn/prevent-abbreviations": "off",
"unicorn/prefer-string-slice": "off",
"unicorn/prefer-code-point": "off",
"unicorn/no-array-push-push": "off",
"unicorn/no-for-loop": "off",
"unicorn/consistent-destructuring": "off",
"unicorn/prefer-switch": ["error", { "emptyDefaultCase": "do-nothing-comment" }]
},
"parserOptions": {
"sourceType": "module"
},
"overrides": [
{
"files": "*.ts",
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended",
"prettier"
],
"extends": ["plugin:@typescript-eslint/eslint-recommended", "plugin:@typescript-eslint/recommended"],
"rules": {
"@typescript-eslint/no-non-null-assertion": "warn",
"@typescript-eslint/no-explicit-any": "warn",
Expand Down

0 comments on commit 23d4ada

Please sign in to comment.