Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
62 changes: 59 additions & 3 deletions .oxlintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,21 @@
"argsIgnorePattern": "^_",
"caughtErrorsIgnorePattern": "^_",
"destructuredArrayIgnorePattern": "^_",
"fix": { "imports": "safe-fix", "variables": "suggestion" },
"fix": {
"imports": "safe-fix",
"variables": "suggestion"
},
"varsIgnorePattern": "^_"
}
],
"eslint/prefer-const": "error",
"eslint/no-useless-escape": "error",
"eslint/no-empty": ["error", { "allowEmptyCatch": true }],
"eslint/no-empty": [
"error",
{
"allowEmptyCatch": true
}
],
"typescript/no-explicit-any": "off",
"typescript/only-throw-error": "off",
"typescript/no-var-requires": "error",
Expand All @@ -38,6 +46,16 @@
{
"name": "node:child_process",
"message": "Use process helpers from src/utils/exec.ts instead of importing node:child_process directly."
},
{
"name": "@agent-device/contracts/platform",
"allowTypeImports": true,
"message": "Value-importing this facade evaluates all 32 vocabulary modules it re-exports. Import the symbol from the module that owns it (@agent-device/contracts/<module>). `import type` stays fine \u2014 it is erased."
},
{
"name": "@agent-device/contracts/interaction",
"allowTypeImports": true,
"message": "Value-importing this facade evaluates all 18 vocabulary modules it re-exports. Import the symbol from the module that owns it (@agent-device/contracts/<module>). `import type` stays fine \u2014 it is erased."
}
]
}
Expand All @@ -47,7 +65,45 @@
{
"files": ["src/utils/exec.ts", "src/**/*.test.ts", "src/**/__tests__/**/*.ts"],
"rules": {
"eslint/no-restricted-imports": "off"
"eslint/no-restricted-imports": [
"error",
{
"paths": [
{
"name": "@agent-device/contracts/platform",
"allowTypeImports": true,
"message": "Value-importing this facade evaluates all 32 vocabulary modules it re-exports. Import the symbol from the module that owns it (@agent-device/contracts/<module>). `import type` stays fine \u2014 it is erased."
},
{
"name": "@agent-device/contracts/interaction",
"allowTypeImports": true,
"message": "Value-importing this facade evaluates all 18 vocabulary modules it re-exports. Import the symbol from the module that owns it (@agent-device/contracts/<module>). `import type` stays fine \u2014 it is erased."
}
]
}
]
}
},
{
"files": ["packages/*/src/**/*.ts"],
"rules": {
"eslint/no-restricted-imports": [
"error",
{
"paths": [
{
"name": "@agent-device/contracts/platform",
"allowTypeImports": true,
"message": "Value-importing this facade evaluates all 32 vocabulary modules it re-exports. Import the symbol from the module that owns it (@agent-device/contracts/<module>). `import type` stays fine \u2014 it is erased."
},
{
"name": "@agent-device/contracts/interaction",
"allowTypeImports": true,
"message": "Value-importing this facade evaluates all 18 vocabulary modules it re-exports. Import the symbol from the module that owns it (@agent-device/contracts/<module>). `import type` stays fine \u2014 it is erased."
}
]
}
]
}
},
{
Expand Down
98 changes: 0 additions & 98 deletions src/__tests__/contracts-entry-closure.test.ts

This file was deleted.

Loading