Skip to content

Commit

Permalink
add more stuff to lint config
Browse files Browse the repository at this point in the history
  • Loading branch information
bh2smith committed Feb 27, 2024
1 parent a6efd98 commit 5919413
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 4 deletions.
18 changes: 15 additions & 3 deletions .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,20 @@
"sourceType": "module"
},
"rules": {
"@typescript-eslint/no-unused-vars": ["warn", { "argsIgnorePattern": "^_" }],
// Turn off ESLint's no-unused-vars in favor of the TypeScript-specific rule
"no-unused-vars": "off"
// TypeScript specific rules
"@typescript-eslint/explicit-function-return-type": ["warn", { "allowExpressions": true }],
"@typescript-eslint/type-annotation-spacing": "error",

"@typescript-eslint/no-unused-vars": ["error", { "ignoreRestSiblings": true }],
"@typescript-eslint/no-shadow": ["warn"],
"no-unused-vars": "off",
"no-shadow": "off",

"semi": "error",
// Basic JavaScript/ESLint rules
"eqeqeq": ["error", "always"],
"no-unused-expressions": "warn",
"no-return-await": "error",
"no-console": ["warn", { "allow": ["warn", "error"] }]
}
}
1 change: 1 addition & 0 deletions src/api/execution.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ import {
DUNE_CSV_NEXT_OFFSET_HEADER,
DUNE_CSV_NEXT_URI_HEADER,
} from "../constants";
import { Response } from "cross-fetch";

// This class implements all the routes defined in the Dune API Docs: https://dune.com/docs/api/
export class ExecutionAPI extends Router {
Expand Down
2 changes: 1 addition & 1 deletion src/utils.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
export const logPrefix = "dune-client:";

export function sleep(seconds: number) {
export function sleep(seconds: number): Promise<void> {
return new Promise((resolve) => setTimeout(resolve, seconds * 1000));
}

Expand Down

0 comments on commit 5919413

Please sign in to comment.