UNPKG

@antfu/eslint-define-config

Version:

Provide a defineConfig function for .eslintrc.js files

41 lines (36 loc) 1.05 kB
import type { RuleConfig } from '../rule-config'; /** * Option. */ export interface NoAbsolutePathOption { commonjs?: boolean; amd?: boolean; esmodule?: boolean; /** * @minItems 1 */ ignore?: [string, ...string[]]; } /** * Options. */ export type NoAbsolutePathOptions = [NoAbsolutePathOption?]; /** * Forbid import of modules using absolute paths. * * @see [no-absolute-path](https://github.com/import-js/eslint-plugin-import/blob/v2.28.1/docs/rules/no-absolute-path.md) */ export type NoAbsolutePathRuleConfig = RuleConfig<NoAbsolutePathOptions>; /** * Forbid import of modules using absolute paths. * * @see [no-absolute-path](https://github.com/import-js/eslint-plugin-import/blob/v2.28.1/docs/rules/no-absolute-path.md) */ export interface NoAbsolutePathRule { /** * Forbid import of modules using absolute paths. * * @see [no-absolute-path](https://github.com/import-js/eslint-plugin-import/blob/v2.28.1/docs/rules/no-absolute-path.md) */ 'import/no-absolute-path': NoAbsolutePathRuleConfig; }