UNPKG

@antfu/eslint-define-config

Version:

Provide a defineConfig function for .eslintrc.js files

23 lines (20 loc) 852 B
import type { RuleConfig } from '../rule-config'; /** * Disallow comments from being inserted as text nodes. * * @see [jsx-no-comment-textnodes](https://github.com/jsx-eslint/eslint-plugin-react/tree/master/docs/rules/jsx-no-comment-textnodes.md) */ export type JsxNoCommentTextnodesRuleConfig = RuleConfig<[]>; /** * Disallow comments from being inserted as text nodes. * * @see [jsx-no-comment-textnodes](https://github.com/jsx-eslint/eslint-plugin-react/tree/master/docs/rules/jsx-no-comment-textnodes.md) */ export interface JsxNoCommentTextnodesRule { /** * Disallow comments from being inserted as text nodes. * * @see [jsx-no-comment-textnodes](https://github.com/jsx-eslint/eslint-plugin-react/tree/master/docs/rules/jsx-no-comment-textnodes.md) */ 'react/jsx-no-comment-textnodes': JsxNoCommentTextnodesRuleConfig; }