Skip to content

Commit

Permalink
add import sort and warnings as errors to TS lint.
Browse files Browse the repository at this point in the history
  • Loading branch information
shachlanAmazon committed Oct 1, 2023
1 parent 43e5284 commit a6968ca
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 7 deletions.
14 changes: 10 additions & 4 deletions .eslintrc.cjs
Original file line number Diff line number Diff line change
@@ -1,14 +1,20 @@
module.exports = {
extends: ["eslint:recommended", "plugin:@typescript-eslint/recommended"],
extends: [
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
"plugin:import/errors",
"plugin:import/warnings",
],
parser: "@typescript-eslint/parser",
plugins: ["@typescript-eslint", 'eslint-plugin-tsdoc'],
plugins: ["@typescript-eslint", "eslint-plugin-tsdoc", "import"],
root: true,
env: {
browser: true,
node: true,
jest: true,
},
rules: {
'tsdoc/syntax': 'error'
}
"tsdoc/syntax": "error",
"import/no-unresolved": "off",
},
};
2 changes: 1 addition & 1 deletion .github/workflows/lint-ts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,4 @@ jobs:
run: |
npm install @typescript-eslint/parser @typescript-eslint/eslint-plugin eslint-plugin-tsdoc eslint typescript
npm i
npx eslint .
npx eslint . --max-warnings=0
4 changes: 2 additions & 2 deletions node/tests/RedisClusterClient.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@ import {
it,
} from "@jest/globals";
import { exec } from "child_process";
import { ClusterTransaction } from "../";
import {
ClusterTransaction,
ConnectionOptions,
InfoOptions,
RedisClusterClient,
} from "../build-ts";
} from "../";
import { convertMultiNodeResponseToDict } from "../src/RedisClusterClient";
import { runBaseTests } from "./SharedTests";
import { flushallOnPort, transactionTest } from "./TestUtilities";
Expand Down

0 comments on commit a6968ca

Please sign in to comment.