UNPKG

@antfu/eslint-define-config

Version:

Provide a defineConfig function for .eslintrc.js files

35 lines (30 loc) 834 B
import type { RuleConfig } from '../rule-config'; /** * Option. */ export interface JsxMaxDepthOption { max?: number; } /** * Options. */ export type JsxMaxDepthOptions = [JsxMaxDepthOption?]; /** * Enforce JSX maximum depth. * * @see [jsx-max-depth](https://github.com/jsx-eslint/eslint-plugin-react/tree/master/docs/rules/jsx-max-depth.md) */ export type JsxMaxDepthRuleConfig = RuleConfig<JsxMaxDepthOptions>; /** * Enforce JSX maximum depth. * * @see [jsx-max-depth](https://github.com/jsx-eslint/eslint-plugin-react/tree/master/docs/rules/jsx-max-depth.md) */ export interface JsxMaxDepthRule { /** * Enforce JSX maximum depth. * * @see [jsx-max-depth](https://github.com/jsx-eslint/eslint-plugin-react/tree/master/docs/rules/jsx-max-depth.md) */ 'react/jsx-max-depth': JsxMaxDepthRuleConfig; }