@antfu/eslint-define-config
Version:
Provide a defineConfig function for .eslintrc.js files
45 lines (40 loc) • 1.15 kB
TypeScript
import type { RuleConfig } from '../rule-config';
/**
* Option.
*/
export type QuotePropsOption =
| []
| ['always' | 'as-needed' | 'consistent' | 'consistent-as-needed']
| []
| ['always' | 'as-needed' | 'consistent' | 'consistent-as-needed']
| [
'always' | 'as-needed' | 'consistent' | 'consistent-as-needed',
{
keywords?: boolean;
unnecessary?: boolean;
numbers?: boolean;
},
];
/**
* Options.
*/
export type QuotePropsOptions = QuotePropsOption;
/**
* Require quotes around object literal property names.
*
* @see [quote-props](https://ota-meshi.github.io/eslint-plugin-jsonc/rules/quote-props.html)
*/
export type QuotePropsRuleConfig = RuleConfig<QuotePropsOptions>;
/**
* Require quotes around object literal property names.
*
* @see [quote-props](https://ota-meshi.github.io/eslint-plugin-jsonc/rules/quote-props.html)
*/
export interface QuotePropsRule {
/**
* Require quotes around object literal property names.
*
* @see [quote-props](https://ota-meshi.github.io/eslint-plugin-jsonc/rules/quote-props.html)
*/
'jsonc/quote-props': QuotePropsRuleConfig;
}