truepass
API reference

truepass/eslint

Every export of truepass/eslint, with its signature and doc comment: rules, plugin, configs, noFixedSleep, noFocusedTest, noTestRetry and 1 more.

truepass's ESLint plugin: the ways a test suite is made to pass without the code passing.

import { rules, plugin, configs, … } from 'truepass/eslint';

Constants

configs

recommended: every rule as an error. adoption: every rule as a warning, for a repo paying down a backlog with --max-warnings as the ratchet.

const configs: {
    recommended: Linter.Config<import("@eslint/core", { with: { "resolution-mode": "require" } }).RulesConfig>;
    adoption: Linter.Config<import("@eslint/core", { with: { "resolution-mode": "require" } }).RulesConfig>;
};

noFixedSleep

const noFixedSleep: import("eslint").Rule.RuleModule;

noFocusedTest

const noFocusedTest: import("eslint").Rule.RuleModule;

noTestRetry

const noTestRetry: import("eslint").Rule.RuleModule;

noUnexplainedSkip

const noUnexplainedSkip: import("eslint").Rule.RuleModule;

plugin

const plugin: ESLint.Plugin;

rules

const rules: Record<string, Rule.RuleModule>;

On this page