@antfu/eslint-define-config
Version:
Provide a defineConfig function for .eslintrc.js files
40 lines (34 loc) • 904 B
TypeScript
import type { RuleConfig } from '../rule-config';
/**
* Config.
*/
export interface BraceStyleConfig {
allowSingleLine?: boolean;
}
/**
* Option.
*/
export type BraceStyleOption = '1tbs' | 'stroustrup' | 'allman';
/**
* Options.
*/
export type BraceStyleOptions = [BraceStyleOption?, BraceStyleConfig?];
/**
* Enforce consistent brace style for blocks in `<template>`.
*
* @see [brace-style](https://eslint.vuejs.org/rules/brace-style.html)
*/
export type BraceStyleRuleConfig = RuleConfig<BraceStyleOptions>;
/**
* Enforce consistent brace style for blocks in `<template>`.
*
* @see [brace-style](https://eslint.vuejs.org/rules/brace-style.html)
*/
export interface BraceStyleRule {
/**
* Enforce consistent brace style for blocks in `<template>`.
*
* @see [brace-style](https://eslint.vuejs.org/rules/brace-style.html)
*/
'vue/brace-style': BraceStyleRuleConfig;
}