UNPKG

@antfu/eslint-define-config

Version:

Provide a defineConfig function for .eslintrc.js files

23 lines (20 loc) 754 B
import type { RuleConfig } from '../rule-config'; /** * Disallow nested ternary expressions. * * @see [no-nested-ternary](https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v48.0.1/docs/rules/no-nested-ternary.md) */ export type NoNestedTernaryRuleConfig = RuleConfig<[]>; /** * Disallow nested ternary expressions. * * @see [no-nested-ternary](https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v48.0.1/docs/rules/no-nested-ternary.md) */ export interface NoNestedTernaryRule { /** * Disallow nested ternary expressions. * * @see [no-nested-ternary](https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v48.0.1/docs/rules/no-nested-ternary.md) */ 'unicorn/no-nested-ternary': NoNestedTernaryRuleConfig; }