Skip to content

Commit a8ffa80

Browse files
committedMar 14, 2022
feat: Refactor code with modern settings
BREAKING CHANGE: We now require Node.js v10.12.0 or newer. * We now only work with Redis v3.0.0 or newer. * `Redis` can't be called as a function anymore as it's now a class. Please change `Redis()` to `new Redis()`. Note that `Redis()` was already deprecated in the previous version.
1 parent e4c9d01 commit a8ffa80

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

74 files changed

+2403
-2685
lines changed
 

‎.eslintrc.json

+40
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
{
2+
"extends": [
3+
"eslint:recommended",
4+
"plugin:@typescript-eslint/recommended",
5+
"plugin:@typescript-eslint/eslint-recommended",
6+
"prettier"
7+
],
8+
"parser": "@typescript-eslint/parser",
9+
"plugins": ["@typescript-eslint"],
10+
"env": { "node": true },
11+
"rules": {
12+
"prefer-rest-params": 0,
13+
"no-var": 0,
14+
"no-prototype-builtins": 0,
15+
"prefer-spread": 0,
16+
"@typescript-eslint/no-var-requires": 0,
17+
"@typescript-eslint/no-explicit-any": 0,
18+
"@typescript-eslint/no-this-alias": 0,
19+
"@typescript-eslint/ban-ts-ignore": 0,
20+
"@typescript-eslint/ban-ts-comment": 0,
21+
"@typescript-eslint/ban-types": 0,
22+
"@typescript-eslint/no-empty-interface": 0,
23+
"@typescript-eslint/no-empty-function": 0,
24+
"@typescript-eslint/no-unused-vars": [
25+
"warn",
26+
{
27+
"args": "none"
28+
}
29+
]
30+
},
31+
"overrides": [
32+
{
33+
"files": ["test/**/*"],
34+
"env": {
35+
"mocha": true
36+
},
37+
"rules": { "prefer-const": 0 }
38+
}
39+
]
40+
}

‎.eslintrc.yml

-42
This file was deleted.

0 commit comments

Comments
 (0)
Please sign in to comment.