Skip to content

Commit 40846c6

Browse files
committed
chore: update eslint rules
1 parent 8101620 commit 40846c6

File tree

288 files changed

+885
-1056
lines changed

Some content is hidden

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

288 files changed

+885
-1056
lines changed

.eslintignore

-5
This file was deleted.

eslint.config.js

+2-4
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,9 @@
1+
import sharedRules from "@schoero/configs/eslint";
2+
import eslintPluginTypeScript from "@typescript-eslint/eslint-plugin";
13
import eslintPluginJsonc from "eslint-plugin-jsonc";
24
import eslintPluginSortExports from "eslint-plugin-sort-exports";
35
import eslintPluginVitest from "eslint-plugin-vitest";
46

5-
import eslintPluginTypeScript from "@typescript-eslint/eslint-plugin";
6-
7-
import sharedRules from "@schoero/configs/eslint";
8-
97

108
const indexImports = [
119
{

package-lock.json

+285-411
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+4-4
Original file line numberDiff line numberDiff line change
@@ -69,16 +69,16 @@
6969
"typescript": "^5.5.4"
7070
},
7171
"devDependencies": {
72-
"@schoero/configs": "^1.0.34",
72+
"@schoero/configs": "^1.0.39",
7373
"@types/minimatch": "^5.1.2",
74-
"@types/node": "^22.3.0",
74+
"@types/node": "^22.5.0",
7575
"changelogen": "^0.5.5",
76-
"cspell": "^8.13.3",
76+
"cspell": "^8.14.2",
7777
"eslint-plugin-jsonc": "^2.16.0",
7878
"eslint-plugin-sort-exports": "^0.9.1",
7979
"rollup-plugin-preserve-shebang": "^1.0.1",
8080
"ts-json-schema-generator": "^2.3.0",
81-
"vite": "^5.4.0",
81+
"vite": "^5.4.2",
8282
"vite-plugin-dts": "^4.0.3",
8383
"vite-plugin-no-bundle": "^4.0.0",
8484
"vitest": "^2.0.5"

src/api/browser.entry.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@ import ts from "typescript";
22

33
import { convertDiagnostics, reportCompilerDiagnostics } from "unwritten:compiler/shared";
44
import { createConfig } from "unwritten:config/config";
5-
import { interpret } from "unwritten:interpreter/ast/symbol";
65
import { createContext as createInterpreterContext } from "unwritten:interpreter:utils/context";
76
import { getEntryFileSymbolsFromProgram } from "unwritten:interpreter:utils/ts";
7+
import { interpret } from "unwritten:interpreter/ast/symbol";
88
import os from "unwritten:platform/os/browser";
99
import path from "unwritten:platform/path/browser";
1010
import process from "unwritten:platform/process/browser";

src/api/node.entry.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
import ts from "typescript";
22

3-
import { convertDiagnostics, reportCompilerDiagnostics } from "unwritten:compiler/shared";
43
import { compile } from "unwritten:compiler:node";
4+
import { convertDiagnostics, reportCompilerDiagnostics } from "unwritten:compiler/shared";
55
import { createConfig } from "unwritten:config/config";
6-
import { interpret } from "unwritten:interpreter/ast/symbol";
76
import { createContext as createInterpreterContext } from "unwritten:interpreter:utils/context";
87
import { getEntryFileSymbolsFromProgram } from "unwritten:interpreter:utils/ts";
8+
import { interpret } from "unwritten:interpreter/ast/symbol";
99
import fs, { existsSync, mkdirSync, writeFileSync } from "unwritten:platform/file-system/node";
1010
import os from "unwritten:platform/os/node";
1111
import path from "unwritten:platform/path/node";

src/config/config.ts

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
import { BuiltInRenderers } from "unwritten:renderer/enums/renderer";
21
import { defaultJSONRenderConfig } from "unwritten:renderer:json:config/default";
32
import { defaultHTMLRenderConfig, defaultMarkdownRenderConfig } from "unwritten:renderer:markup/config/default";
4-
import { isNodeContext } from "unwritten:utils/context";
3+
import { BuiltInRenderers } from "unwritten:renderer/enums/renderer";
54
import { findFile } from "unwritten:utils:finder";
65
import { override } from "unwritten:utils:override";
6+
import { isNodeContext } from "unwritten:utils/context";
77

88
import { defaultExternalTypes, defaultInterpreterConfig, defaultOutputPath } from "./default";
99

@@ -172,9 +172,9 @@ export function getDefaultConfig(): CompleteNodeConfig {
172172
interpreterConfig: defaultInterpreterConfig,
173173
outputDir: defaultOutputPath,
174174
renderConfig: {
175-
[BuiltInRenderers.Markdown]: defaultMarkdownRenderConfig,
176175
[BuiltInRenderers.HTML]: defaultHTMLRenderConfig,
177-
[BuiltInRenderers.JSON]: defaultJSONRenderConfig
176+
[BuiltInRenderers.JSON]: defaultJSONRenderConfig,
177+
[BuiltInRenderers.Markdown]: defaultMarkdownRenderConfig
178178
}
179179
};
180180

src/config/default.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* eslint-disable eslint-plugin-sort-keys/sort-keys-fix */
1+
/* eslint-disable eslint-plugin-perfectionist/sort-objects */
22
/* eslint-disable eslint-plugin-typescript/naming-convention */
33
import { TypeKind } from "unwritten:interpreter/enums/type";
44

src/interpreter/ast/entities/circular.test.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import { assert, expect, it } from "vitest";
22

3+
import { createInterfaceEntity } from "unwritten:interpreter:ast/entities/index";
34
import { EntityKind } from "unwritten:interpreter/enums/entity";
45
import { TypeKind } from "unwritten:interpreter/enums/type";
5-
import { createInterfaceEntity } from "unwritten:interpreter:ast/entities/index";
66
import { compile } from "unwritten:tests:utils/compile";
77
import { scope } from "unwritten:tests:utils/scope";
88
import { ts } from "unwritten:utils/template";

src/interpreter/ast/entities/circular.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
import { EntityKind } from "unwritten:interpreter/enums/entity";
21
import { getSymbolId } from "unwritten:interpreter:ast/shared/id";
32
import { getNameBySymbol } from "unwritten:interpreter:ast/shared/name";
43
import { getPositionBySymbol } from "unwritten:interpreter:ast/shared/position";
4+
import { EntityKind } from "unwritten:interpreter/enums/entity";
55

66
import type { Symbol } from "typescript";
77

src/interpreter/ast/entities/class.test.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import { expect, it } from "vitest";
22

3-
import { EntityKind } from "unwritten:interpreter/enums/entity";
43
import { createClassEntity } from "unwritten:interpreter:ast/entities/index";
54
import { getSymbolId } from "unwritten:interpreter:ast/shared/id";
5+
import { EntityKind } from "unwritten:interpreter/enums/entity";
66
import { compile } from "unwritten:tests:utils/compile";
77
import { scope } from "unwritten:tests:utils/scope";
88
import { isJSDocText } from "unwritten:typeguards/jsdoc";

src/interpreter/ast/entities/class.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
import { getJSDocProperties } from "unwritten:interpreter/ast/jsdoc";
2-
import { EntityKind } from "unwritten:interpreter/enums/entity";
3-
import { withCachedEntity, withLockedSymbol } from "unwritten:interpreter/utils/ts";
41
import {
52
createConstructorEntity,
63
createGetterEntity,
@@ -22,6 +19,9 @@ import {
2219
isPropertyDeclaration,
2320
isSetterDeclaration
2421
} from "unwritten:interpreter:typeguards/declarations";
22+
import { getJSDocProperties } from "unwritten:interpreter/ast/jsdoc";
23+
import { EntityKind } from "unwritten:interpreter/enums/entity";
24+
import { withCachedEntity, withLockedSymbol } from "unwritten:interpreter/utils/ts";
2525
import { isExpressionType } from "unwritten:typeguards/types";
2626
import { assert } from "unwritten:utils:general";
2727

src/interpreter/ast/entities/constructor.test.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { expect, it } from "vitest";
22

3-
import { EntityKind } from "unwritten:interpreter/enums/entity";
43
import { createClassEntity } from "unwritten:interpreter:ast/entities/index";
4+
import { EntityKind } from "unwritten:interpreter/enums/entity";
55
import { compile } from "unwritten:tests:utils/compile";
66
import { scope } from "unwritten:tests:utils/scope";
77
import { isJSDocText } from "unwritten:typeguards/jsdoc";

src/interpreter/ast/entities/constructor.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import { EntityKind } from "unwritten:interpreter/enums/entity";
21
import { createFunctionLikeEntity } from "unwritten:interpreter:ast/entities/index";
2+
import { EntityKind } from "unwritten:interpreter/enums/entity";
33

44
import type { Symbol } from "typescript";
55

src/interpreter/ast/entities/enum.test.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
import { assert, expect, it } from "vitest";
22

3-
import { EntityKind } from "unwritten:interpreter/enums/entity";
4-
import { TypeKind } from "unwritten:interpreter/enums/type";
53
import { createEnumEntity } from "unwritten:interpreter:ast/entities/index";
64
import { getSymbolId } from "unwritten:interpreter:ast/shared/id";
5+
import { EntityKind } from "unwritten:interpreter/enums/entity";
6+
import { TypeKind } from "unwritten:interpreter/enums/type";
77
import { compile } from "unwritten:tests:utils/compile";
88
import { scope } from "unwritten:tests:utils/scope";
99
import { isJSDocText } from "unwritten:typeguards/jsdoc";

src/interpreter/ast/entities/enum.ts

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
1-
import { getJSDocProperties } from "unwritten:interpreter/ast/jsdoc";
2-
import { EntityKind } from "unwritten:interpreter/enums/entity";
3-
import { withCachedEntity, withLockedSymbol } from "unwritten:interpreter/utils/ts";
41
import { getDeclarationId, getSymbolId, getSymbolIdByDeclaration } from "unwritten:interpreter:ast/shared/id";
52
import { getNameByDeclaration, getNameBySymbol } from "unwritten:interpreter:ast/shared/name";
63
import { getPositionByDeclaration } from "unwritten:interpreter:ast/shared/position";
74
import { isEnumDeclaration } from "unwritten:interpreter:typeguards/declarations";
5+
import { getJSDocProperties } from "unwritten:interpreter/ast/jsdoc";
6+
import { EntityKind } from "unwritten:interpreter/enums/entity";
7+
import { withCachedEntity, withLockedSymbol } from "unwritten:interpreter/utils/ts";
88
import { assert } from "unwritten:utils:general";
99

1010
import { getTypeByDeclaration } from "../type";
1111

12-
import type { EnumDeclaration, EnumMember as TSEnumMember, Symbol } from "typescript";
12+
import type { EnumDeclaration, Symbol, EnumMember as TSEnumMember } from "typescript";
1313

1414
import type { EnumEntity, EnumMemberEntity, MergedEnumEntity } from "unwritten:interpreter:type-definitions/entities";
1515
import type { InterpreterContext } from "unwritten:type-definitions/context";

src/interpreter/ast/entities/export-assignment.test.ts

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
1-
/* eslint-disable eslint-plugin-typescript/naming-convention */
21
import { expect, it } from "vitest";
32

4-
import { TypeKind } from "unwritten:interpreter/enums/type";
53
import { createExportAssignmentEntity } from "unwritten:interpreter:ast/entities/index";
4+
import { TypeKind } from "unwritten:interpreter/enums/type";
65
import { compile } from "unwritten:tests:utils/compile";
76
import { scope } from "unwritten:tests:utils/scope";
87
import { isExportAssignmentEntity } from "unwritten:typeguards/entities";

src/interpreter/ast/entities/function-like.test.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { describe, expect, it } from "vitest";
22

3-
import { EntityKind } from "unwritten:interpreter/enums/entity";
43
import { createFunctionLikeEntity } from "unwritten:interpreter:ast/entities/index";
4+
import { EntityKind } from "unwritten:interpreter/enums/entity";
55
import { compile } from "unwritten:tests:utils/compile";
66
import { scope } from "unwritten:tests:utils/scope";
77
import { ts } from "unwritten:utils/template";

src/interpreter/ast/entities/function-like.ts

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
import { EntityKind } from "unwritten:interpreter/enums/entity.js";
2-
import { withCachedEntity, withLockedSymbol } from "unwritten:interpreter/utils/ts";
31
import { createSignatureEntity } from "unwritten:interpreter:ast/entities/index";
42
import { getSymbolId } from "unwritten:interpreter:ast/shared/id";
53
import { getNameBySymbol } from "unwritten:interpreter:ast/shared/name";
@@ -10,6 +8,8 @@ import {
108
isMethodSignatureDeclaration
119
} from "unwritten:interpreter:typeguards/declarations";
1210
import { functionOverloadDeclarationFilter } from "unwritten:interpreter:utils/filter";
11+
import { EntityKind } from "unwritten:interpreter/enums/entity.js";
12+
import { withCachedEntity, withLockedSymbol } from "unwritten:interpreter/utils/ts";
1313
import { assert } from "unwritten:utils/general";
1414

1515
import type { Symbol } from "typescript";
@@ -51,9 +51,9 @@ export const createFunctionLikeEntity = <Kind extends FunctionLikeEntityKinds>(c
5151
}));
5252

5353
const signatureKindMap = {
54+
[EntityKind.Constructor]: EntityKind.ConstructSignature,
5455
[EntityKind.Function]: EntityKind.FunctionSignature,
55-
[EntityKind.Method]: EntityKind.MethodSignature,
56-
[EntityKind.Setter]: EntityKind.SetterSignature,
5756
[EntityKind.Getter]: EntityKind.GetterSignature,
58-
[EntityKind.Constructor]: EntityKind.ConstructSignature
57+
[EntityKind.Method]: EntityKind.MethodSignature,
58+
[EntityKind.Setter]: EntityKind.SetterSignature
5959
} as const;

src/interpreter/ast/entities/function.test.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import { expect, it } from "vitest";
22

3+
import { getSymbolId } from "unwritten:interpreter:ast/shared/id";
34
import { EntityKind } from "unwritten:interpreter/enums/entity";
45
import { TypeKind } from "unwritten:interpreter/enums/type";
5-
import { getSymbolId } from "unwritten:interpreter:ast/shared/id";
66
import { compile } from "unwritten:tests:utils/compile";
77
import { scope } from "unwritten:tests:utils/scope";
88
import { isJSDocText } from "unwritten:typeguards/jsdoc";

src/interpreter/ast/entities/function.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import { EntityKind } from "unwritten:interpreter/enums/entity";
21
import { createFunctionLikeEntity } from "unwritten:interpreter:ast/entities/index";
2+
import { EntityKind } from "unwritten:interpreter/enums/entity";
33

44
import type { Symbol } from "typescript";
55

src/interpreter/ast/entities/getter.test.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { expect, it } from "vitest";
22

3-
import { EntityKind } from "unwritten:interpreter/enums/entity";
43
import { createClassEntity } from "unwritten:interpreter:ast/entities/index";
4+
import { EntityKind } from "unwritten:interpreter/enums/entity";
55
import { compile } from "unwritten:tests:utils/compile";
66
import { scope } from "unwritten:tests:utils/scope";
77
import { isJSDocText } from "unwritten:typeguards/jsdoc";

src/interpreter/ast/entities/getter.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import { EntityKind } from "unwritten:interpreter/enums/entity";
21
import { createFunctionLikeEntity } from "unwritten:interpreter:ast/entities/index";
2+
import { EntityKind } from "unwritten:interpreter/enums/entity";
33

44
import type { Symbol } from "typescript";
55

src/interpreter/ast/entities/interface.test.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import { assert, expect, it } from "vitest";
22

3+
import { createInterfaceEntity } from "unwritten:interpreter:ast/entities/index";
34
import { EntityKind } from "unwritten:interpreter/enums/entity";
45
import { TypeKind } from "unwritten:interpreter/enums/type";
5-
import { createInterfaceEntity } from "unwritten:interpreter:ast/entities/index";
66
import { compile } from "unwritten:tests:utils/compile";
77
import { scope } from "unwritten:tests:utils/scope";
88
import { isJSDocText } from "unwritten:typeguards/jsdoc";

src/interpreter/ast/entities/interface.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
import { getJSDocProperties } from "unwritten:interpreter/ast/jsdoc";
2-
import { EntityKind } from "unwritten:interpreter/enums/entity";
3-
import { withCachedEntity, withLockedSymbol } from "unwritten:interpreter/utils/ts";
41
import {
52
createPropertyEntity,
63
createSignatureEntity,
@@ -19,6 +16,9 @@ import {
1916
isPropertySignatureDeclaration,
2017
isSetterDeclaration
2118
} from "unwritten:interpreter:typeguards/declarations";
19+
import { getJSDocProperties } from "unwritten:interpreter/ast/jsdoc";
20+
import { EntityKind } from "unwritten:interpreter/enums/entity";
21+
import { withCachedEntity, withLockedSymbol } from "unwritten:interpreter/utils/ts";
2222
import { isExpressionType } from "unwritten:typeguards/types";
2323
import { assert } from "unwritten:utils:general";
2424

src/interpreter/ast/entities/method.test.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { expect, it } from "vitest";
22

3-
import { EntityKind } from "unwritten:interpreter/enums/entity";
43
import { createClassEntity } from "unwritten:interpreter:ast/entities/index";
4+
import { EntityKind } from "unwritten:interpreter/enums/entity";
55
import { compile } from "unwritten:tests:utils/compile";
66
import { scope } from "unwritten:tests:utils/scope";
77
import { isJSDocText } from "unwritten:typeguards/jsdoc";

src/interpreter/ast/entities/method.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import { EntityKind } from "unwritten:interpreter/enums/entity";
21
import { createFunctionLikeEntity } from "unwritten:interpreter:ast/entities/index";
2+
import { EntityKind } from "unwritten:interpreter/enums/entity";
33

44
import type { Symbol } from "typescript";
55

src/interpreter/ast/entities/module.test.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { expect, it } from "vitest";
22

3-
import { EntityKind } from "unwritten:interpreter/enums/entity";
43
import { createModuleEntity } from "unwritten:interpreter:ast/entities/index";
4+
import { EntityKind } from "unwritten:interpreter/enums/entity";
55
import { compile } from "unwritten:tests:utils/compile";
66
import { scope } from "unwritten:tests:utils/scope";
77
import { isJSDocText } from "unwritten:typeguards/jsdoc";

src/interpreter/ast/entities/module.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1+
import { getPositionByDeclaration } from "unwritten:interpreter:ast/shared/position";
12
import { getJSDocProperties } from "unwritten:interpreter/ast/jsdoc";
23
import { getDeclarationId } from "unwritten:interpreter/ast/shared/id";
34
import { getNameBySymbol } from "unwritten:interpreter/ast/shared/name";
45
import { EntityKind } from "unwritten:interpreter/enums/entity";
56
import { withCachedEntity, withLockedSymbol } from "unwritten:interpreter/utils/ts";
6-
import { getPositionByDeclaration } from "unwritten:interpreter:ast/shared/position";
77

88
import { createSourceFileEntity } from "./source-file";
99

src/interpreter/ast/entities/namespace.test.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { expect, it } from "vitest";
22

3-
import { EntityKind } from "unwritten:interpreter/enums/entity";
43
import { createNamespaceEntity } from "unwritten:interpreter:ast/entities/index";
4+
import { EntityKind } from "unwritten:interpreter/enums/entity";
55
import { compile } from "unwritten:tests:utils/compile";
66
import { scope } from "unwritten:tests:utils/scope";
77
import { isJSDocText } from "unwritten:typeguards/jsdoc";

src/interpreter/ast/entities/namespace.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1+
import { createSourceFileEntity } from "unwritten:interpreter:ast/entities/index";
2+
import { getPositionByDeclaration } from "unwritten:interpreter:ast/shared/position";
13
import { getJSDocProperties } from "unwritten:interpreter/ast/jsdoc";
24
import { getDeclarationId, getSymbolId } from "unwritten:interpreter/ast/shared/id";
35
import { getNameByDeclaration, getNameBySymbol } from "unwritten:interpreter/ast/shared/name";
46
import { EntityKind } from "unwritten:interpreter/enums/entity";
57
import { isNamespaceExport } from "unwritten:interpreter/typeguards/declarations";
68
import { withCachedEntity, withLockedSymbol } from "unwritten:interpreter/utils/ts";
7-
import { createSourceFileEntity } from "unwritten:interpreter:ast/entities/index";
8-
import { getPositionByDeclaration } from "unwritten:interpreter:ast/shared/position";
99
import { assert } from "unwritten:utils/general";
1010

1111
import type { Symbol } from "typescript";

src/interpreter/ast/entities/parameter.test.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import { expect, it } from "vitest";
22

3+
import { createFunctionEntity } from "unwritten:interpreter:ast/entities/index";
34
import { EntityKind } from "unwritten:interpreter/enums/entity";
45
import { TypeKind } from "unwritten:interpreter/enums/type";
5-
import { createFunctionEntity } from "unwritten:interpreter:ast/entities/index";
66
import { compile } from "unwritten:tests:utils/compile";
77
import { scope } from "unwritten:tests:utils/scope";
88
import { isJSDocText } from "unwritten:typeguards/jsdoc";

src/interpreter/ast/entities/parameter.ts

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
import { getJSDocProperties } from "unwritten:interpreter/ast/jsdoc";
2-
import { EntityKind } from "unwritten:interpreter/enums/entity";
3-
import { isParameterDeclaration } from "unwritten:interpreter/typeguards/declarations";
4-
import { withCachedEntity } from "unwritten:interpreter/utils/ts";
51
import { getDeclarationId, getSymbolId } from "unwritten:interpreter:ast/shared/id";
62
import { getInitializerByDeclaration } from "unwritten:interpreter:ast/shared/initializer";
73
import { getNameBySymbol } from "unwritten:interpreter:ast/shared/name";
84
import { getPositionByDeclaration } from "unwritten:interpreter:ast/shared/position";
5+
import { getJSDocProperties } from "unwritten:interpreter/ast/jsdoc";
6+
import { EntityKind } from "unwritten:interpreter/enums/entity";
7+
import { isParameterDeclaration } from "unwritten:interpreter/typeguards/declarations";
8+
import { withCachedEntity } from "unwritten:interpreter/utils/ts";
99
import { assert } from "unwritten:utils:general";
1010

1111
import { getTypeBySymbol } from "../type";

src/interpreter/ast/entities/property.test.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
import { assert, expect, it } from "vitest";
22

3-
import { EntityKind } from "unwritten:interpreter/enums/entity";
4-
import { TypeKind } from "unwritten:interpreter/enums/type";
53
import {
64
createClassEntity,
75
createTypeAliasEntity,
86
createVariableEntity
97
} from "unwritten:interpreter:ast/entities/index";
8+
import { EntityKind } from "unwritten:interpreter/enums/entity";
9+
import { TypeKind } from "unwritten:interpreter/enums/type";
1010
import { compile } from "unwritten:tests:utils/compile";
1111
import { scope } from "unwritten:tests:utils/scope";
1212
import { isJSDocText } from "unwritten:typeguards/jsdoc";

0 commit comments

Comments
 (0)