eslint-import-resolver-typescript

  • Version 3.7.0
  • Published
  • 52.6 kB
  • 8 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

variable defaultConditionNames

const defaultConditionNames: string[];

    variable defaultExtensionAlias

    const defaultExtensionAlias: {
    '.js': string[];
    '.jsx': string[];
    '.cjs': string[];
    '.mjs': string[];
    };

      variable defaultExtensions

      const defaultExtensions: string[];

        variable defaultMainFields

        const defaultMainFields: string[];

          variable interfaceVersion

          const interfaceVersion: number;

            Functions

            function createTypeScriptImportResolver

            createTypeScriptImportResolver: (options?: TsResolverOptions | null) => {
            interfaceVersion: number;
            name: string;
            resolve(
            source: string,
            file: string
            ): { found: boolean; path?: string | null | undefined };
            };

              function resolve

              resolve: (
              source: string,
              file: string,
              options?: TsResolverOptions | null,
              resolver?: Resolver | null
              ) => { found: boolean; path?: string | null };

                Interfaces

                interface TsResolverOptions

                interface TsResolverOptions
                extends Omit<ResolveOptions, 'fileSystem' | 'useSyncFileSystemCalls'> {}

                  property alwaysTryTypes

                  alwaysTryTypes?: boolean;

                    property extensions

                    extensions?: string[];

                      property project

                      project?: string[] | string;

                        Package Files (1)

                        Dependencies (8)

                        Dev Dependencies (25)

                        Peer Dependencies (3)

                        Badge

                        To add a badge like this onejsDocs.io badgeto 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
                          [![jsDocs.io](https://img.shields.io/badge/jsDocs.io-reference-blue)](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>