Skip to content

DefineEslintConfigsOptions

The parameters for defining ESLint configurations.

Import:

import type { DefineEslintConfigsOptions } from '@mnaoumov/typescript-dev-toolkit/linters/eslint-config';

Signature:

export interface DefineEslintConfigsOptions

Properties

PropertyTypeDescription
customConfigs?(context: EslintConfigContext) => Linter.Config[]A function that builds custom ESLint configurations.
editContext?(context: EslintConfigContext) => voidA function that edits the ESLint configuration context.
minimumNodeVersion?stringThe oldest Node version shipped source has to run on, as a semver range: a library that also runs inside an older runtime than its own tooling (an Obsidian renderer, say) names that runtime's Node here. When omitted, eslint-plugin-n reads the engines field of the project's package.json.

Links to this page: