UNPKG

@antfu/eslint-define-config

Version:

Provide a defineConfig function for .eslintrc.js files

36 lines (31 loc) 936 B
import type { RuleConfig } from '../rule-config'; /** * Option. */ export interface NoConstantConditionOption { checkLoops?: boolean; } /** * Options. */ export type NoConstantConditionOptions = [NoConstantConditionOption?]; /** * Disallow constant expressions in conditions in `<template>`. * * @see [no-constant-condition](https://eslint.vuejs.org/rules/no-constant-condition.html) */ export type NoConstantConditionRuleConfig = RuleConfig<NoConstantConditionOptions>; /** * Disallow constant expressions in conditions in `<template>`. * * @see [no-constant-condition](https://eslint.vuejs.org/rules/no-constant-condition.html) */ export interface NoConstantConditionRule { /** * Disallow constant expressions in conditions in `<template>`. * * @see [no-constant-condition](https://eslint.vuejs.org/rules/no-constant-condition.html) */ 'vue/no-constant-condition': NoConstantConditionRuleConfig; }