Skip to content

Commit 1d6dca5

Browse files
fix type export compatibility with node next projects
Signed-off-by: rawpixel-vincent <[email protected]>
1 parent 1b9a911 commit 1d6dca5

File tree

110 files changed

+9471
-9036
lines changed

Some content is hidden

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

110 files changed

+9471
-9036
lines changed

.eslintrc.json

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,16 @@
22
"extends": [
33
"eslint:recommended",
44
"plugin:@typescript-eslint/recommended",
5+
"plugin:import/typescript",
56
"prettier"
67
],
78
"ignorePatterns": ["bin/generateRedisCommander/template.ts"],
89
"parser": "@typescript-eslint/parser",
9-
"plugins": ["@typescript-eslint"],
10+
"plugins": ["@typescript-eslint", "eslint-plugin-import"],
1011
"env": { "node": true },
12+
"settings": {
13+
"import/extensions": [".js"]
14+
},
1115
"rules": {
1216
"prefer-rest-params": 0,
1317
"no-var": 0,
@@ -59,15 +63,21 @@
5963
{
6064
"args": "none"
6165
}
62-
]
66+
],
67+
"import/extensions": ["error", { "ts": "always" }],
68+
"@typescript-eslint/no-require-imports": 1
6369
},
6470
"overrides": [
6571
{
66-
"files": ["test/cluster/*", "test/unit/*", "test/functional/*"],
72+
"files": ["test/cluster/**/*", "test/unit/**/*", "test/functional/**/*"],
6773
"env": {
6874
"mocha": true
6975
},
70-
"rules": { "prefer-const": 0 }
76+
"rules": {
77+
"prefer-const": 0,
78+
"import/extensions": 0,
79+
"@typescript-eslint/no-require-imports": 0
80+
}
7181
}
7282
]
7383
}

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ node_modules
33
/test.*
44
/.idea
55
built
6+
.DS_Store
67

78
.nyc_output
89
coverage

benchmarks/fixtures/generate.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
const start = process.hrtime.bigint();
44

5-
import * as calculateSlot from "cluster-key-slot";
5+
import calculateSlot from "cluster-key-slot";
66
import { writeFileSync } from "fs";
77
import { join } from "path";
88
import { v4 as uuid } from "uuid";

docs/assets/hierarchy.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
window.hierarchyData = "eJyrVirKzy8pVrKKjtVRKkpNy0lNLsnMzytWsqqurQUAmx4Kpg=="

docs/assets/highlight.css

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
--dark-hl-7: #C586C0;
1818
--light-hl-8: #098658;
1919
--dark-hl-8: #B5CEA8;
20-
--light-code-background: #F5F5F5;
20+
--light-code-background: #FFFFFF;
2121
--dark-code-background: #1E1E1E;
2222
}
2323

@@ -47,7 +47,7 @@
4747
--code-background: var(--dark-code-background);
4848
} }
4949

50-
body.light {
50+
:root[data-theme='light'] {
5151
--hl-0: var(--light-hl-0);
5252
--hl-1: var(--light-hl-1);
5353
--hl-2: var(--light-hl-2);
@@ -60,7 +60,7 @@ body.light {
6060
--code-background: var(--light-code-background);
6161
}
6262

63-
body.dark {
63+
:root[data-theme='dark'] {
6464
--hl-0: var(--dark-hl-0);
6565
--hl-1: var(--dark-hl-1);
6666
--hl-2: var(--dark-hl-2);

0 commit comments

Comments
 (0)