UNPKG

@antfu/eslint-define-config

Version:

Provide a defineConfig function for .eslintrc.js files

49 lines (44 loc) 1.06 kB
import type { RuleConfig } from '../rule-config'; /** * Option. */ export interface NoUnusedPropertiesOption { groups?: ( | 'props' | 'data' | 'asyncData' | 'computed' | 'methods' | 'setup' )[]; deepData?: boolean; ignorePublicMembers?: boolean; unreferencedOptions?: ( | 'unknownMemberAsUnreferenced' | 'returnAsUnreferenced' )[]; } /** * Options. */ export type NoUnusedPropertiesOptions = [NoUnusedPropertiesOption?]; /** * Disallow unused properties. * * @see [no-unused-properties](https://eslint.vuejs.org/rules/no-unused-properties.html) */ export type NoUnusedPropertiesRuleConfig = RuleConfig<NoUnusedPropertiesOptions>; /** * Disallow unused properties. * * @see [no-unused-properties](https://eslint.vuejs.org/rules/no-unused-properties.html) */ export interface NoUnusedPropertiesRule { /** * Disallow unused properties. * * @see [no-unused-properties](https://eslint.vuejs.org/rules/no-unused-properties.html) */ 'vue/no-unused-properties': NoUnusedPropertiesRuleConfig; }