Skip to content

Commit

Permalink
chore: upgrade typescript-eslint
Browse files Browse the repository at this point in the history
  • Loading branch information
markokajzer committed Mar 25, 2023
1 parent 4acf3ec commit ffc7bbb
Show file tree
Hide file tree
Showing 4 changed files with 254 additions and 89 deletions.
7 changes: 0 additions & 7 deletions .eslintrc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,11 +64,6 @@ rules:
message: Labels are a form of GOTO; using them makes code confusing and hard to maintain and understand.
- selector: WithStatement
message: "`with` is disallowed in strict mode because it makes code impossible to predict and optimize."
no-unused-vars:
- error
- vars: all
args: all
argsIgnorePattern: ^_
radix: off

# @typescript-eslint
Expand Down Expand Up @@ -107,7 +102,5 @@ rules:
# sort-keys-fix
sort-keys-fix/sort-keys-fix: error



# Custom rules
prefer-early-return: error
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,8 @@
"@types/node": "^16.11.7",
"@types/node-fetch": "^2.5.7",
"@types/ws": "7.4.0",
"@typescript-eslint/eslint-plugin": "4.8.1",
"@typescript-eslint/parser": "4.8.1",
"@typescript-eslint/eslint-plugin": "^5.56.0",
"@typescript-eslint/parser": "^5.56.0",
"eslint": "7.13.0",
"eslint-config-airbnb-base": "14.2.1",
"eslint-config-prettier": "6.15.0",
Expand Down
2 changes: 1 addition & 1 deletion src/types/custom.d.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
type Nullable<T> = T | undefined | null;
type Dictionary<TValues extends unknown> = Record<string, TValues>;
type Dictionary<TValues> = Record<string, TValues>;
Loading

0 comments on commit ffc7bbb

Please sign in to comment.