UNPKG

@antfu/eslint-define-config

Version:

Provide a defineConfig function for .eslintrc.js files

36 lines (31 loc) 996 B
import type { RuleConfig } from '../rule-config'; /** * Option. */ export interface JsxNoDuplicatePropsOption { ignoreCase?: boolean; } /** * Options. */ export type JsxNoDuplicatePropsOptions = [JsxNoDuplicatePropsOption?]; /** * Disallow duplicate properties in JSX. * * @see [jsx-no-duplicate-props](https://github.com/jsx-eslint/eslint-plugin-react/tree/master/docs/rules/jsx-no-duplicate-props.md) */ export type JsxNoDuplicatePropsRuleConfig = RuleConfig<JsxNoDuplicatePropsOptions>; /** * Disallow duplicate properties in JSX. * * @see [jsx-no-duplicate-props](https://github.com/jsx-eslint/eslint-plugin-react/tree/master/docs/rules/jsx-no-duplicate-props.md) */ export interface JsxNoDuplicatePropsRule { /** * Disallow duplicate properties in JSX. * * @see [jsx-no-duplicate-props](https://github.com/jsx-eslint/eslint-plugin-react/tree/master/docs/rules/jsx-no-duplicate-props.md) */ 'react/jsx-no-duplicate-props': JsxNoDuplicatePropsRuleConfig; }