UNPKG

@antfu/eslint-define-config

Version:

Provide a defineConfig function for .eslintrc.js files

35 lines (30 loc) 875 B
import type { RuleConfig } from '../rule-config'; /** * Option. */ export interface NamedOption { commonjs?: boolean; } /** * Options. */ export type NamedOptions = [NamedOption?]; /** * Ensure named imports correspond to a named export in the remote file. * * @see [named](https://github.com/import-js/eslint-plugin-import/blob/v2.28.1/docs/rules/named.md) */ export type NamedRuleConfig = RuleConfig<NamedOptions>; /** * Ensure named imports correspond to a named export in the remote file. * * @see [named](https://github.com/import-js/eslint-plugin-import/blob/v2.28.1/docs/rules/named.md) */ export interface NamedRule { /** * Ensure named imports correspond to a named export in the remote file. * * @see [named](https://github.com/import-js/eslint-plugin-import/blob/v2.28.1/docs/rules/named.md) */ 'import/named': NamedRuleConfig; }