@nyxb/eslint-define-config
Version:
Provide a defineConfig function for .eslintrc.js files
37 lines (32 loc) • 948 B
TypeScript
import type { RuleConfig } from '../rule-config';
/**
* Option.
*/
export interface HtmlButtonHasTypeOption {
button?: boolean;
submit?: boolean;
reset?: boolean;
}
/**
* Options.
*/
export type HtmlButtonHasTypeOptions = [HtmlButtonHasTypeOption?];
/**
* Disallow usage of button without an explicit type attribute.
*
* @see [html-button-has-type](https://eslint.vuejs.org/rules/html-button-has-type.html)
*/
export type HtmlButtonHasTypeRuleConfig = RuleConfig<HtmlButtonHasTypeOptions>;
/**
* Disallow usage of button without an explicit type attribute.
*
* @see [html-button-has-type](https://eslint.vuejs.org/rules/html-button-has-type.html)
*/
export interface HtmlButtonHasTypeRule {
/**
* Disallow usage of button without an explicit type attribute.
*
* @see [html-button-has-type](https://eslint.vuejs.org/rules/html-button-has-type.html)
*/
'vue/html-button-has-type': HtmlButtonHasTypeRuleConfig;
}