Skip to content

Commit 22815cb

Browse files
committed
chore: enable verbatimModuleSyntax
1 parent 4e60ad0 commit 22815cb

File tree

8 files changed

+11
-10
lines changed

8 files changed

+11
-10
lines changed

src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { fileURLToPath } from "node:url";
33
import type { TSESLint } from "@typescript-eslint/utils";
44
import SQLite from "better-sqlite3";
55

6-
import { GetDatabaseOptions, RuleOptions } from "./ruleOptions.js";
6+
import type { GetDatabaseOptions, RuleOptions } from "./ruleOptions.js";
77
import { parameterPrefixRule } from "./rules/parameter-prefix.js";
88
import { typedInputRule } from "./rules/typed-input.js";
99
import { createTypedResultRule } from "./rules/typed-result.js";

src/inferQueryResult.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { Database } from "better-sqlite3";
1+
import type { Database } from "better-sqlite3";
22

33
import { inferQueryInput } from "./inferQueryInput.js";
44
import {

src/ruleOptions.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { Database } from "better-sqlite3";
1+
import type { Database } from "better-sqlite3";
22

33
export interface GetDatabaseOptions {
44
/**

src/rules/typed-input.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { ASTUtils, ESLintUtils, TSESTree } from "@typescript-eslint/utils";
22

3-
import { inferQueryInput, QueryInput } from "../inferQueryInput.js";
3+
import { inferQueryInput, type QueryInput } from "../inferQueryInput.js";
44
import { getQueryValue } from "../utils.js";
55

66
export const typedInputRule = ESLintUtils.RuleCreator.withoutDocs({

src/rules/typed-result.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
import { ASTUtils, ESLintUtils, TSESTree } from "@typescript-eslint/utils";
22

33
import {
4-
ColumnInfo,
4+
type ColumnInfo,
55
ColumnType,
66
inferQueryResult,
77
} from "../inferQueryResult.js";
8-
import { RuleOptions } from "../ruleOptions.js";
8+
import type { RuleOptions } from "../ruleOptions.js";
99
import { getQueryValue, stringifyNode } from "../utils.js";
1010

1111
type ColumnInfoWithUserType = ColumnInfo & { userTSTypeAnnotation?: string };

src/rules/valid-query.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { ESLintUtils, TSESTree } from "@typescript-eslint/utils";
22

3-
import { RuleOptions } from "../ruleOptions.js";
3+
import type { RuleOptions } from "../ruleOptions.js";
44
import { getQueryValue, stringifyNode } from "../utils.js";
55

66
export function createValidQueryRule(options: RuleOptions) {

tests/rules/rule-tester.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import { RuleTester, RunTests } from "@typescript-eslint/rule-tester";
2-
import { RuleModule } from "@typescript-eslint/utils/ts-eslint";
1+
import { RuleTester, type RunTests } from "@typescript-eslint/rule-tester";
2+
import type { RuleModule } from "@typescript-eslint/utils/ts-eslint";
33
import * as vitest from "vitest";
44

55
RuleTester.afterAll = vitest.afterAll;

tsconfig.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@
55
],
66
"compilerOptions": {
77
"noEmit": true,
8-
"checkJs": false
8+
"checkJs": false,
9+
"verbatimModuleSyntax": true
910
},
1011
"exclude": ["dist", "coverage"]
1112
}

0 commit comments

Comments
 (0)