import type { RuleConfig } from '../rule-config'; /** * Option. */ export type CommaDangleOption = | [] | [ | Value | { arrays?: ValueWithIgnore; objects?: ValueWithIgnore; imports?: ValueWithIgnore; exports?: ValueWithIgnore; functions?: ValueWithIgnore; }, ]; export type Value = 'always-multiline' | 'always' | 'never' | 'only-multiline'; export type ValueWithIgnore = | 'always-multiline' | 'always' | 'ignore' | 'never' | 'only-multiline'; /** * Options. */ export type CommaDangleOptions = CommaDangleOption; /** * Require or disallow trailing commas. * * @see [comma-dangle](https://ota-meshi.github.io/eslint-plugin-jsonc/rules/comma-dangle.html) */ export type CommaDangleRuleConfig = RuleConfig; /** * Require or disallow trailing commas. * * @see [comma-dangle](https://ota-meshi.github.io/eslint-plugin-jsonc/rules/comma-dangle.html) */ export interface CommaDangleRule { /** * Require or disallow trailing commas. * * @see [comma-dangle](https://ota-meshi.github.io/eslint-plugin-jsonc/rules/comma-dangle.html) */ 'jsonc/comma-dangle': CommaDangleRuleConfig; }