UNPKG

@antfu/eslint-define-config

Version:

Provide a defineConfig function for .eslintrc.js files

38 lines (33 loc) 1.2 kB
import type { RuleConfig } from '../rule-config'; /** * Option. */ export interface DynamicImportChunknameOption { importFunctions?: string[]; webpackChunknameFormat?: string; [k: string]: any; } /** * Options. */ export type DynamicImportChunknameOptions = [DynamicImportChunknameOption?]; /** * Enforce a leading comment with the webpackChunkName for dynamic imports. * * @see [dynamic-import-chunkname](https://github.com/import-js/eslint-plugin-import/blob/v2.28.1/docs/rules/dynamic-import-chunkname.md) */ export type DynamicImportChunknameRuleConfig = RuleConfig<DynamicImportChunknameOptions>; /** * Enforce a leading comment with the webpackChunkName for dynamic imports. * * @see [dynamic-import-chunkname](https://github.com/import-js/eslint-plugin-import/blob/v2.28.1/docs/rules/dynamic-import-chunkname.md) */ export interface DynamicImportChunknameRule { /** * Enforce a leading comment with the webpackChunkName for dynamic imports. * * @see [dynamic-import-chunkname](https://github.com/import-js/eslint-plugin-import/blob/v2.28.1/docs/rules/dynamic-import-chunkname.md) */ 'import/dynamic-import-chunkname': DynamicImportChunknameRuleConfig; }