@antfu/eslint-define-config
Version:
Provide a defineConfig function for .eslintrc.js files
40 lines (35 loc) • 1.26 kB
TypeScript
import type { RuleConfig } from '../rule-config';
/**
* Option.
*/
export interface MultilineHtmlElementContentNewlineOption {
ignoreWhenEmpty?: boolean;
ignores?: string[];
allowEmptyLines?: boolean;
}
/**
* Options.
*/
export type MultilineHtmlElementContentNewlineOptions = [
MultilineHtmlElementContentNewlineOption?,
];
/**
* Require a line break before and after the contents of a multiline element.
*
* @see [multiline-html-element-content-newline](https://eslint.vuejs.org/rules/multiline-html-element-content-newline.html)
*/
export type MultilineHtmlElementContentNewlineRuleConfig =
RuleConfig<MultilineHtmlElementContentNewlineOptions>;
/**
* Require a line break before and after the contents of a multiline element.
*
* @see [multiline-html-element-content-newline](https://eslint.vuejs.org/rules/multiline-html-element-content-newline.html)
*/
export interface MultilineHtmlElementContentNewlineRule {
/**
* Require a line break before and after the contents of a multiline element.
*
* @see [multiline-html-element-content-newline](https://eslint.vuejs.org/rules/multiline-html-element-content-newline.html)
*/
'vue/multiline-html-element-content-newline': MultilineHtmlElementContentNewlineRuleConfig;
}