UNPKG

@datadayrepos/eslint-define-config

Version:

Provide a defineConfig function for .eslintrc.js files

23 lines (20 loc) 822 B
import type { RuleConfig } from '../rule-config'; /** * Disallow useless case in switch statements. * * @see [no-useless-switch-case](https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v48.0.1/docs/rules/no-useless-switch-case.md) */ export type NoUselessSwitchCaseRuleConfig = RuleConfig<[]>; /** * Disallow useless case in switch statements. * * @see [no-useless-switch-case](https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v48.0.1/docs/rules/no-useless-switch-case.md) */ export interface NoUselessSwitchCaseRule { /** * Disallow useless case in switch statements. * * @see [no-useless-switch-case](https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v48.0.1/docs/rules/no-useless-switch-case.md) */ 'unicorn/no-useless-switch-case': NoUselessSwitchCaseRuleConfig; }