eslint-plugin-oxlint
Version:
Turn off all rules already supported by oxlint
11 lines (10 loc) • 518 B
TypeScript
import { OxlintConfig, OxlintConfigOverride, OxlintConfigRules } from './types.js';
/**
* checks if the oxlint rule is activated/deactivated and append/remove it.
*/
export declare const handleRulesScope: (oxlintRules: OxlintConfigRules, rules: Record<string, "off">) => void;
/**
* tries to return the "rules" section from the config.
* it returns `undefined` when not found or invalid.
*/
export declare const readRulesFromConfig: (config: OxlintConfig | OxlintConfigOverride) => OxlintConfigRules | undefined;