UNPKG

@antfu/eslint-define-config

Version:

Provide a defineConfig function for .eslintrc.js files

23 lines (20 loc) 663 B
import type { RuleConfig } from '../rule-config'; /** * Disallow RegExp literals. * * @see [no-regexp-literals](https://ota-meshi.github.io/eslint-plugin-jsonc/rules/no-regexp-literals.html) */ export type NoRegexpLiteralsRuleConfig = RuleConfig<[]>; /** * Disallow RegExp literals. * * @see [no-regexp-literals](https://ota-meshi.github.io/eslint-plugin-jsonc/rules/no-regexp-literals.html) */ export interface NoRegexpLiteralsRule { /** * Disallow RegExp literals. * * @see [no-regexp-literals](https://ota-meshi.github.io/eslint-plugin-jsonc/rules/no-regexp-literals.html) */ 'jsonc/no-regexp-literals': NoRegexpLiteralsRuleConfig; }