-
-
Notifications
You must be signed in to change notification settings - Fork 38
Open
Labels
acceptedbugSomething isn't workingSomething isn't workingrepro:yesIssues with a reproducible exampleIssues with a reproducible example
Description
Which packages are affected?
-
@eslint/compat -
@eslint/config-array -
@eslint/config-helpers -
@eslint/core -
@eslint/mcp -
@eslint/migrate-config -
@eslint/object-schema -
@eslint/plugin-kit
Environment
Node version: v24.12.0
npm version: v11.6.2
ESLint version: v9.39.2
Operating System:
What did you do?
Tried to import various types:
import type {
BuiltInMergeStrategy,
BuiltInValidationStrategy,
ObjectDefinition,
PropertyDefinition,
} from "@eslint/object-schema";What did you expect to happen?
All four types (BuiltInMergeStrategy, BuiltInValidationStrategy, ObjectDefinition, PropertyDefinition) should be exported from the main package and importable.
These types are defined in the package's types.ts file and should be part of the public API.
What actually happened?
Inconsistent behavior:
- ✅
ObjectDefinitionandPropertyDefinitiontypes import successfully - ❌
BuiltInMergeStrategyandBuiltInValidationStrategytypes cause TypeScript errors:
'"@eslint/object-schema"' has no exported member 'BuiltInMergeStrategy'.
'"@eslint/object-schema"' has no exported member 'BuiltInValidationStrategy'.
Link to Minimal Reproducible Example
https://stackblitz.com/edit/typescript-node-cvmp1yvy
Participation
- I am willing to submit a pull request for this issue.
Additional comments
No response
Metadata
Metadata
Assignees
Labels
acceptedbugSomething isn't workingSomething isn't workingrepro:yesIssues with a reproducible exampleIssues with a reproducible example
Type
Projects
Status
Ready to Implement