@antfu/eslint-define-config
Version:
Provide a defineConfig function for .eslintrc.js files
42 lines (37 loc) • 908 B
TypeScript
import type { RuleConfig } from '../rule-config';
/**
* Option.
*/
export interface CamelcaseOption {
ignoreDestructuring?: boolean;
ignoreImports?: boolean;
ignoreGlobals?: boolean;
properties?: 'always' | 'never';
/**
* @minItems 0
*/
allow?: [] | [string];
}
/**
* Options.
*/
export type CamelcaseOptions = [CamelcaseOption?];
/**
* Enforce camelcase naming convention in `<template>`.
*
* @see [camelcase](https://eslint.vuejs.org/rules/camelcase.html)
*/
export type CamelcaseRuleConfig = RuleConfig<CamelcaseOptions>;
/**
* Enforce camelcase naming convention in `<template>`.
*
* @see [camelcase](https://eslint.vuejs.org/rules/camelcase.html)
*/
export interface CamelcaseRule {
/**
* Enforce camelcase naming convention in `<template>`.
*
* @see [camelcase](https://eslint.vuejs.org/rules/camelcase.html)
*/
'vue/camelcase': CamelcaseRuleConfig;
}