eslint-import-resolver-typescript
- Version 4.3.4
- Published
- 55.3 kB
- 6 dependencies
- ISC license
Install
npm i eslint-import-resolver-typescript
yarn add eslint-import-resolver-typescript
pnpm add eslint-import-resolver-typescript
Overview
This plugin adds `TypeScript` support to `eslint-plugin-import`
Index
Variables
Functions
Interfaces
Variables
variable DEFAULT_CONFIGS
const DEFAULT_CONFIGS: string[];
variable DEFAULT_IGNORE
const DEFAULT_IGNORE: string;
variable DEFAULT_JSCONFIG
const DEFAULT_JSCONFIG: string;
variable DEFAULT_TRY_PATHS
const DEFAULT_TRY_PATHS: string[];
variable DEFAULT_TSCONFIG
const DEFAULT_TSCONFIG: string;
variable defaultConditionNames
const defaultConditionNames: string[];
variable defaultConfigFile
let defaultConfigFile: string;
variable defaultExtensionAlias
const defaultExtensionAlias: { '.js': string[]; '.ts': string[]; '.jsx': string[]; '.tsx': string[]; '.cjs': string[]; '.cts': string[]; '.mjs': string[]; '.mts': string[];};
variable defaultExtensions
const defaultExtensions: string[];
variable defaultMainFields
const defaultMainFields: string[];
variable IMPORT_RESOLVER_NAME
const IMPORT_RESOLVER_NAME: string;
variable interfaceVersion
const interfaceVersion: number;
variable JS_EXT_PATTERN
const JS_EXT_PATTERN: RegExp;
variable MATCH_ALL
const MATCH_ALL: string;
variable TSCONFIG_NOT_FOUND_REGEXP
const TSCONFIG_NOT_FOUND_REGEXP: RegExp;
Functions
function createTypeScriptImportResolver
createTypeScriptImportResolver: (options?: TypeScriptResolverOptions | null) => { interfaceVersion: number; name: string; resolve(source: string, file: string): ResolvedResult;};
function mangleScopedPackage
mangleScopedPackage: (moduleName: string) => string;
function normalizeOptions
normalizeOptions: ( options?: TypeScriptResolverOptions | null, cwd?: string) => TypeScriptResolverOptions;
function removeQuerystring
removeQuerystring: (id: string) => string;
function resolve
resolve: ( source: string, file: string, options?: TypeScriptResolverOptions | null, resolver?: ResolverFactory | null) => ResolvedResult;
function sortProjectsByAffinity
sortProjectsByAffinity: (projects: string[], file: string) => string[];
function toGlobPath
toGlobPath: (pathname: string) => string;
function toNativePath
toNativePath: (pathname: string) => string;
function tryFile
tryFile: ( filename?: string[] | string, includeDir?: boolean, base?: string) => string;
Interfaces
interface TypeScriptResolverOptions
interface TypeScriptResolverOptions extends NapiResolveOptions {}
property alwaysTryTypes
alwaysTryTypes?: boolean;
property bun
bun?: boolean;
property noWarnOnMultipleProjects
noWarnOnMultipleProjects?: boolean;
property project
project?: string[] | string;
Package Files (5)
Dependencies (6)
Dev Dependencies (0)
No dev dependencies.
Peer Dependencies (3)
Badge
To add a badge like this oneto your package's README, use the codes available below.
You may also use Shields.io to create a custom badge linking to https://www.jsdocs.io/package/eslint-import-resolver-typescript
.
- Markdown[](https://www.jsdocs.io/package/eslint-import-resolver-typescript)
- HTML<a href="https://www.jsdocs.io/package/eslint-import-resolver-typescript"><img src="https://img.shields.io/badge/jsDocs.io-reference-blue" alt="jsDocs.io"></a>
- Updated .
Package analyzed in 3007 ms. - Missing or incorrect documentation? Open an issue for this package.