corsa-oxlint
31 documented exports.
AST_NODE_TYPES
No documentation comment yet.
const AST_NODE_TYPES: Readonly<{ readonly AccessorProperty: "AccessorProperty"; readonly ArrayExpression: "ArrayExpression"; readonly ArrayPattern: "ArrayPattern"; readonly ArrowFunctionExpression: "ArrowFunctionExpression"; ... 164 more ...; readonly TSVoidKeyword: "TSVoidKeyword"; }>
AST_TOKEN_TYPES
No documentation comment yet.
const AST_TOKEN_TYPES: Readonly<{ readonly Boolean: "Boolean"; readonly Identifier: "Identifier"; readonly JSXIdentifier: "JSXIdentifier"; readonly PrivateIdentifier: "PrivateIdentifier"; readonly JSXText: "JSXText"; ... 8 more ...; readonly Line: "Line"; }>
TSESTree
No documentation comment yet.
const TSESTree: Readonly<{ AST_NODE_TYPES: Readonly<{ readonly AccessorProperty: "AccessorProperty"; readonly ArrayExpression: "ArrayExpression"; readonly ArrayPattern: "ArrayPattern"; readonly ArrowFunctionExpression: "ArrowFunctionExpression"; ... 164 more ...; readonly TSVoidKeyword: "TSVoidKeyword"; }>; AST_TOKEN_TYPES: Readonl...
ESLintUtils
No documentation comment yet.
const ESLintUtils: Readonly<{ NullThrowsReasons: Readonly<{ MissingParent: "Expected node to have a parent."; MissingToken: (token: string, thing: string) => string; }>; RuleCreator: ((urlCreator: (ruleName: string) => string) => RuleCreatorFactory) & { ...; }; ... 4 more ...; nullThrows: <T>(value: T | ... 1 more ... | undefined, mes...
OxlintUtils
Self-hosted type-aware utilities for Oxlint rules backed by Corsa.
const OxlintUtils: Readonly<{ RuleCreator(urlCreator: (ruleName: string) => string): RuleCreatorFactory; getParserServices(context: ContextWithParserOptions, allowWithoutFullTypeInformation?: boolean): ParserServices; }>
RuleCreator
No documentation comment yet.
const RuleCreator: ((urlCreator: (ruleName: string) => string) => RuleCreatorFactory) & { withoutDocs<TRule extends Omit<RuleCreatorRule, "name">>(rule: TRule): Rule & { ...; }; }
compatPlugin
No documentation comment yet.
compatPlugin(plugin: Plugin): Plugin
| Parameter | Type | Description |
|---|---|---|
plugin |
Plugin |
- |
Returns: Plugin
definePlugin
No documentation comment yet.
definePlugin(plugin: Plugin): Plugin
| Parameter | Type | Description |
|---|---|---|
plugin |
Plugin |
- |
Returns: Plugin
defineRule
Defines a single Oxlint rule with type-aware parser services.
defineRule(rule: Rule): Rule
| Parameter | Type | Description |
|---|---|---|
rule |
Rule |
- |
Returns: Rule
Plugin
No documentation comment yet.
export type Plugin = Omit<OxlintPlugin, "rules"> &
Rule
No documentation comment yet.
export type Rule = OxlintRule & Record<string, unknown>;
getParserServices
Returns type-aware parser services backed by Corsa.
getParserServices(context: ContextWithParserOptions, allowWithoutFullTypeInformation?: boolean): ParserServices
| Parameter | Type | Description |
|---|---|---|
context |
ContextWithParserOptions |
- |
allowWithoutFullTypeInformation |
boolean |
- |
Returns: ParserServices
RuleTester
No documentation comment yet.
export class RuleTester
RuleTesterConfig
No documentation comment yet.
export type RuleTesterConfig = TesterConfig &
TSESLint
No documentation comment yet.
const TSESLint: Readonly<{ ESLint: typeof UnsupportedTSESLintClass; FlatESLint: typeof UnsupportedTSESLintClass; LegacyESLint: typeof UnsupportedTSESLintClass; Linter: typeof UnsupportedTSESLintClass; RuleTester: typeof RuleTester; Scope: Readonly<...>; SourceCode: typeof UnsupportedTSESLintClass; }>
oxlintCompat
No documentation comment yet.
const oxlintCompat: Readonly<{ config(...configs: readonly unknown[]): unknown[]; configs: Readonly<{}>; parser: Readonly<{ meta: { name: string; version: string; }; parse(): never; }>; plugin: Readonly<{ configs: Readonly<{}>; rules: Readonly<...>; }>; }>
ESTree
No documentation comment yet.
export type ESTree =
CorsaNode
No documentation comment yet.
export interface CorsaNode
CorsaProgramShape
No documentation comment yet.
export interface CorsaProgramShape
CorsaRuntimeOptions
No documentation comment yet.
export interface CorsaRuntimeOptions
CorsaOxlintSettings
No documentation comment yet.
export interface CorsaOxlintSettings extends TypeAwareParserOptions
CorsaStylisticSettings
No documentation comment yet.
export interface CorsaStylisticSettings
CorsaSignature
No documentation comment yet.
export interface CorsaSignature
CorsaSymbol
No documentation comment yet.
export interface CorsaSymbol
CorsaType
No documentation comment yet.
export interface CorsaType extends TypeResponse
CorsaTypeCheckerShape
No documentation comment yet.
export interface CorsaTypeCheckerShape
ContextWithParserOptions
No documentation comment yet.
export type ContextWithParserOptions = Context &
ParserServices
No documentation comment yet.
export interface ParserServices
ParserServicesWithTypeInformation
No documentation comment yet.
export type ParserServicesWithTypeInformation = ParserServices &
ProjectServiceOptions
No documentation comment yet.
export interface ProjectServiceOptions
TypeAwareParserOptions
No documentation comment yet.
export interface TypeAwareParserOptions