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. * * @see [brace-style](https://eslint.org/docs/latest/rules/brace-style) */ export type BraceStyleRuleConfig = RuleConfig; /** * Enforce consistent brace style for blocks. * * @see [brace-style](https://eslint.org/docs/latest/rules/brace-style) */ export interface BraceStyleRule { /** * Enforce consistent brace style for blocks. * * @see [brace-style](https://eslint.org/docs/latest/rules/brace-style) */ 'brace-style': BraceStyleRuleConfig; }