UNPKG

true-myth

Version:

A library for safe functional programming in JavaScript, with first-class support for TypeScript

25 lines (22 loc) 806 B
/** The True Myth ESLint plugin provides two rules: - `mustUse`: requires explicitly handling or ignore `Result` or `Task` instances, because not doing so is usually a mistake. - `mustAwaitTask`: requires awaiting every `Task` to avoid unhandled async. See [the guide](/eslint-plugin/) for details. @module */ import type { Plugin } from '@eslint/core'; import type { Config } from 'eslint/config'; import { mustAwaitTask } from './must-await-task.js'; import { mustUse } from './must-use.js'; interface TrueMythPlugin extends Plugin { configs: { readonly recommended: Config; }; } declare const plugin: TrueMythPlugin; export { mustAwaitTask, mustUse }; export type { MustUseType } from './true-myth-support.js'; export default plugin; //# sourceMappingURL=index.d.ts.map