Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 15 additions & 5 deletions .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,16 @@
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
"plugin:import/typescript",
"prettier"
],
"ignorePatterns": ["bin/generateRedisCommander/template.ts"],
"ignorePatterns": ["bin/generateRedisCommander/template.ts", "built/"],
"parser": "@typescript-eslint/parser",
"plugins": ["@typescript-eslint"],
"plugins": ["@typescript-eslint", "eslint-plugin-import"],
"env": { "node": true },
"settings": {
"import/extensions": [".js"]
},
"rules": {
"prefer-rest-params": 0,
"no-var": 0,
Expand Down Expand Up @@ -59,15 +63,21 @@
{
"args": "none"
}
]
],
"import/extensions": ["error", { "ts": "always" }],
"@typescript-eslint/no-require-imports": 1
},
"overrides": [
{
"files": ["test/cluster/*", "test/unit/*", "test/functional/*"],
"files": ["test/cluster/**/*", "test/unit/**/*", "test/functional/**/*"],
"env": {
"mocha": true
},
"rules": { "prefer-const": 0 }
"rules": {
"prefer-const": 0,
"import/extensions": 0,
"@typescript-eslint/no-require-imports": 0
}
}
]
}
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ node_modules
/test.*
/.idea
built
.DS_Store

.nyc_output
coverage
Expand Down
2 changes: 1 addition & 1 deletion benchmarks/fixtures/generate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

const start = process.hrtime.bigint();

import * as calculateSlot from "cluster-key-slot";
import calculateSlot from "cluster-key-slot";
import { writeFileSync } from "fs";
import { join } from "path";
import { v4 as uuid } from "uuid";
Expand Down
1 change: 1 addition & 0 deletions docs/assets/hierarchy.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
window.hierarchyData = "eJyrVirKzy8pVrKKjtVRKkpNy0lNLsnMzytWsqqurQUAmx4Kpg=="
6 changes: 3 additions & 3 deletions docs/assets/highlight.css
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
--dark-hl-7: #C586C0;
--light-hl-8: #098658;
--dark-hl-8: #B5CEA8;
--light-code-background: #F5F5F5;
--light-code-background: #FFFFFF;
--dark-code-background: #1E1E1E;
}

Expand Down Expand Up @@ -47,7 +47,7 @@
--code-background: var(--dark-code-background);
} }

body.light {
:root[data-theme='light'] {
--hl-0: var(--light-hl-0);
--hl-1: var(--light-hl-1);
--hl-2: var(--light-hl-2);
Expand All @@ -60,7 +60,7 @@ body.light {
--code-background: var(--light-code-background);
}

body.dark {
:root[data-theme='dark'] {
--hl-0: var(--dark-hl-0);
--hl-1: var(--dark-hl-1);
--hl-2: var(--dark-hl-2);
Expand Down
Loading