@antfu/eslint-define-config
Version:
Provide a defineConfig function for .eslintrc.js files
36 lines (31 loc) • 865 B
TypeScript
import type { RuleConfig } from '../rule-config';
/**
* Option.
*/
export interface CommaSpacingOption {
before?: boolean;
after?: boolean;
}
/**
* Options.
*/
export type CommaSpacingOptions = [CommaSpacingOption?];
/**
* Enforce consistent spacing before and after commas in `<template>`.
*
* @see [comma-spacing](https://eslint.vuejs.org/rules/comma-spacing.html)
*/
export type CommaSpacingRuleConfig = RuleConfig<CommaSpacingOptions>;
/**
* Enforce consistent spacing before and after commas in `<template>`.
*
* @see [comma-spacing](https://eslint.vuejs.org/rules/comma-spacing.html)
*/
export interface CommaSpacingRule {
/**
* Enforce consistent spacing before and after commas in `<template>`.
*
* @see [comma-spacing](https://eslint.vuejs.org/rules/comma-spacing.html)
*/
'vue/comma-spacing': CommaSpacingRuleConfig;
}