diff --git a/.dependency-cruiser.cjs b/.dependency-cruiser.cjs
index b7de80a70de..40a9785aeaf 100644
--- a/.dependency-cruiser.cjs
+++ b/.dependency-cruiser.cjs
@@ -1,6 +1,17 @@
/** @type {import('dependency-cruiser').IConfiguration} */
module.exports = {
forbidden: [
+ {
+ name: "only-type-imports",
+ severity: "error",
+ comment: "Files in enums and @types may only use type imports.",
+ from: {
+ path: ["(^|/)src/@types", "(^|/)src/enums"],
+ },
+ to: {
+ dependencyTypesNot: ["type-only"],
+ },
+ },
{
name: "no-circular-at-runtime",
severity: "warn",
@@ -31,6 +42,8 @@ module.exports = {
"[.]d[.]ts$", // TypeScript declaration files
"(^|/)tsconfig[.]json$", // TypeScript config
"(^|/)(?:babel|webpack)[.]config[.](?:js|cjs|mjs|ts|cts|mts|json)$", // other configs
+ // anything in src/@types
+ "(^|/)src/@types/",
],
},
to: {},
diff --git a/biome.jsonc b/biome.jsonc
index 40301b3e0bc..82ce7c308dc 100644
--- a/biome.jsonc
+++ b/biome.jsonc
@@ -31,7 +31,6 @@
"src/overrides.ts",
// TODO: these files are too big and complex, ignore them until their respective refactors
"src/data/moves/move.ts",
- "src/data/abilities/ability.ts",
// this file is just too big:
"src/data/balance/tms.ts"
@@ -42,9 +41,6 @@
// TODO: Remove if we ever get down to 0 circular imports
"organizeImports": { "enabled": false },
"linter": {
- "ignore": [
- "src/phases/move-effect-phase.ts" // TODO: unignore after move-effect-phase refactor
- ],
"enabled": true,
"rules": {
"recommended": true,
diff --git a/index.html b/index.html
index 111464b5e5c..d503617c13c 100644
--- a/index.html
+++ b/index.html
@@ -145,6 +145,5 @@
-