@antfu/eslint-define-config
Version:
Provide a defineConfig function for .eslintrc.js files
33 lines (28 loc) • 904 B
TypeScript
import type { RuleConfig } from '../rule-config';
/**
* Option.
*/
export type BlockSpacingOption = 'always' | 'never';
/**
* Options.
*/
export type BlockSpacingOptions = [BlockSpacingOption?];
/**
* Disallow or enforce spaces inside of blocks after opening block and before closing block.
*
* @see [block-spacing](https://eslint.org/docs/latest/rules/block-spacing)
*/
export type BlockSpacingRuleConfig = RuleConfig<BlockSpacingOptions>;
/**
* Disallow or enforce spaces inside of blocks after opening block and before closing block.
*
* @see [block-spacing](https://eslint.org/docs/latest/rules/block-spacing)
*/
export interface BlockSpacingRule {
/**
* Disallow or enforce spaces inside of blocks after opening block and before closing block.
*
* @see [block-spacing](https://eslint.org/docs/latest/rules/block-spacing)
*/
'block-spacing': BlockSpacingRuleConfig;
}