Compare commits

...

11 Commits

Author SHA1 Message Date
Bertie690
5a3c937e53
Merge 6d30536278 into 1ff2701964 2025-06-19 22:29:37 -04:00
Bertie690
6d30536278 Merge remote-tracking branch 'upstream/beta' into no-non-type-export 2025-06-17 16:45:28 -04:00
Bertie690
22e28956b6 Fixed type import inside move.ts 2025-06-16 12:46:50 -04:00
NightKev
9ca3bdebdc Add missing field in config 2025-06-15 01:51:57 -07:00
NightKev
d3416df4b4
Merge branch 'beta' into no-non-type-export 2025-06-15 01:24:56 -07:00
Bertie690
a46105f866
Merge branch 'beta' into no-non-type-export 2025-06-12 10:43:59 -04:00
Bertie690
a113c71791 Merge remote-tracking branch 'upstream/beta' into no-non-type-export 2025-06-09 22:20:16 -04:00
Bertie690
0fafaa62b6
Merge branch 'beta' into no-non-type-export 2025-06-08 12:54:14 -04:00
Bertie690
a046c0c779
Merge branch 'beta' into no-non-type-export 2025-06-08 07:38:17 -04:00
Bertie690
9a3e9fd652
Merge branch 'beta' into no-non-type-export 2025-06-07 10:52:23 -04:00
Bertie690
f3f746ebdc Added lefthook to enforce no non-type export in src/@types 2025-06-06 23:10:22 -04:00
2 changed files with 14 additions and 1 deletions

View File

@ -1,6 +1,19 @@
/** @type {import('dependency-cruiser').IConfiguration} */
module.exports = {
forbidden: [
{
name: "no-non-type-@type-exports",
severity: "error",
comment:
"Files in @types should not export anything but types and interfaces. " +
"The folder is intended to house imports that are removed at runtime, " +
"and thus should not contain anything with a bearing on runtime code.",
from: {},
to: {
path: "(^|/)src/@types",
dependencyTypesNot: ["type-only"],
},
},
{
name: "only-type-imports",
severity: "error",

View File

@ -89,7 +89,7 @@ import { MoveEffectTrigger } from "#enums/MoveEffectTrigger";
import { MultiHitType } from "#enums/MultiHitType";
import { invalidAssistMoves, invalidCopycatMoves, invalidMetronomeMoves, invalidMirrorMoveMoves, invalidSleepTalkMoves, invalidSketchMoves } from "./invalid-moves";
import { isVirtual, MoveUseMode } from "#enums/move-use-mode";
import { ChargingMove, MoveAttrMap, MoveAttrString, MoveKindString, MoveClassMap } from "#app/@types/move-types";
import type { ChargingMove, MoveAttrMap, MoveAttrString, MoveKindString, MoveClassMap } from "#app/@types/move-types";
import { applyMoveAttrs } from "./apply-attrs";
import { frenzyMissFunc, getMoveTargets } from "./move-utils";