Overview
Theeslint/use-at-your-own-risk module exports internal APIs that are not part of the official ESLint API. These exports are provided for advanced use cases and tooling integration, but come with no stability guarantees.
Import Path
Exports
builtinRules
A Map containing all built-in ESLint rules.A Map where keys are rule names and values are rule implementations
- Building custom linting tools
- Introspecting rule metadata
- Creating rule documentation generators
- Testing rule implementations
shouldUseFlatConfig
A function that determines whether the flat config system should be used.Returns a boolean indicating if flat config should be used
true if flat config should be used, false otherwiseAs of ESLint v9+, flat config is the default configuration system. This function is primarily useful for tools that need to support both configuration formats.
Why “Use at Your Own Risk”?
These APIs are marked as unsupported because:- No Stability Guarantee - They may change in minor or patch releases
- No Deprecation Policy - They can be removed without prior notice
- Implementation Details - They expose internal implementation that may be refactored
- No Documentation Maintenance - Official docs may become outdated
When to Use
Consider using these APIs only if:- You’re building development tools or plugins
- You need access to internal ESLint functionality
- You’re willing to update your code when ESLint changes
- The official API doesn’t provide what you need
Alternatives
Before using these unsupported APIs, consider:- For rule access: Use the official ESLint class and configuration system
- For config detection: Use the ESLint class which handles config automatically
- For custom tooling: Check if the official API can be extended
Related
ESLint Class
Official ESLint API
Linter Class
Core linting engine
Custom Rules
Create custom rules
Plugins
Build plugins