Skip to content

Commit

Permalink
refactor(lint): Add eslint-plugin-n and -unicorn (#1352)
Browse files Browse the repository at this point in the history
  • Loading branch information
fb55 authored Nov 29, 2022
1 parent 72e844f commit f7a655b
Show file tree
Hide file tree
Showing 14 changed files with 997 additions and 199 deletions.
20 changes: 17 additions & 3 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
{
"extends": ["eslint:recommended", "prettier"],
"extends": [
"eslint:recommended",
"prettier",
"plugin:n/recommended",
"plugin:unicorn/recommended"
],
"env": {
"node": true,
"es6": true
Expand All @@ -21,7 +26,14 @@
"spaced-comment": 2,
"yoda": [2, "never"],
"curly": [2, "multi-line"],
"no-else-return": 2
"no-else-return": 2,

"unicorn/prefer-module": 0,
"unicorn/filename-case": 0,
"unicorn/no-null": 0,
"unicorn/prefer-code-point": 0,
"unicorn/prefer-string-slice": 0,
"unicorn/prefer-add-event-listener": 0
},
"overrides": [
{
Expand Down Expand Up @@ -55,7 +67,9 @@
"@typescript-eslint/prefer-includes": 2,
"@typescript-eslint/no-unnecessary-condition": 2,
"@typescript-eslint/switch-exhaustiveness-check": 2,
"@typescript-eslint/prefer-nullish-coalescing": 2
"@typescript-eslint/prefer-nullish-coalescing": 2,

"n/no-unsupported-features/es-syntax": 0
}
}
]
Expand Down
Loading

0 comments on commit f7a655b

Please sign in to comment.