import type { RuleConfig } from '../rule-config'; /** * Config. */ export interface ExportsStyleConfig { allowBatchAssign?: boolean; } /** * Option. */ export type ExportsStyleOption = 'module.exports' | 'exports'; /** * Options. */ export type ExportsStyleOptions = [ExportsStyleOption?, ExportsStyleConfig?]; /** * Enforce either `module.exports` or `exports`. * * @see [exports-style](https://github.com/mysticatea/eslint-plugin-node/blob/v11.1.0/docs/rules/exports-style.md) */ export type ExportsStyleRuleConfig = RuleConfig; /** * Enforce either `module.exports` or `exports`. * * @see [exports-style](https://github.com/mysticatea/eslint-plugin-node/blob/v11.1.0/docs/rules/exports-style.md) */ export interface ExportsStyleRule { /** * Enforce either `module.exports` or `exports`. * * @see [exports-style](https://github.com/mysticatea/eslint-plugin-node/blob/v11.1.0/docs/rules/exports-style.md) */ 'node/exports-style': ExportsStyleRuleConfig; }