@antfu/eslint-define-config
Version:
Provide a defineConfig function for .eslintrc.js files
36 lines (31 loc) • 1.02 kB
TypeScript
import type { RuleConfig } from '../rule-config';
/**
* Option.
*/
export interface MaxDependenciesOption {
max?: number;
ignoreTypeImports?: boolean;
}
/**
* Options.
*/
export type MaxDependenciesOptions = [MaxDependenciesOption?];
/**
* Enforce the maximum number of dependencies a module can have.
*
* @see [max-dependencies](https://github.com/import-js/eslint-plugin-import/blob/v2.28.1/docs/rules/max-dependencies.md)
*/
export type MaxDependenciesRuleConfig = RuleConfig<MaxDependenciesOptions>;
/**
* Enforce the maximum number of dependencies a module can have.
*
* @see [max-dependencies](https://github.com/import-js/eslint-plugin-import/blob/v2.28.1/docs/rules/max-dependencies.md)
*/
export interface MaxDependenciesRule {
/**
* Enforce the maximum number of dependencies a module can have.
*
* @see [max-dependencies](https://github.com/import-js/eslint-plugin-import/blob/v2.28.1/docs/rules/max-dependencies.md)
*/
'import/max-dependencies': MaxDependenciesRuleConfig;
}