Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Allow setting tsconfig config directly in the parser #1613

Open
Labels
accepting prsGo ahead, send a pull request that resolves this issueenhancementNew feature or requestpackage: typescript-estreeIssues related to @typescript-eslint/typescript-estree
@sindresorhus

Description

@sindresorhus

Currently, we can specifyparserOptions.project for a path to our tsconfig, but the parser handles the loading of tsconfig, so there's no way for us to provide a custom tsconfig (not on disk) directly to@typescript-eslint/parser.

My specific use-case is that we're adding built-in TypeScript support (xojs/xo#426) to XO.XO is a "zero-config" ESLint wrapper that ships with great defaults and lots of plugins. We want to add the ability to lint ambientd.ts files. However, JS packages with ad.ts file don't usually have a tsconfig file, and I feel that TypeScript is too loose by default, so I would like to provide some sensible tsconfig defaults ford.ts files in JS projects.

It would be great if there was a way to set a default tsconfig object that is used if there's no tsconfig file in the project.

Metadata

Metadata

Assignees

No one assigned

    Labels

    accepting prsGo ahead, send a pull request that resolves this issueenhancementNew feature or requestpackage: typescript-estreeIssues related to @typescript-eslint/typescript-estree

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2025 Movatter.jp