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

fix: Using the API but tsconfig does not work#1010

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Open
Rahim-Chan wants to merge1 commit intosverweij:main
base:main
Choose a base branch
Loading
fromRahim-Chan:main

Conversation

Rahim-Chan
Copy link

Compatible parameters

Plan to do something drastic?
Leave anissue with a
summary of the changes you propose + some context on why you'd want to
do that, so we can have a conversation before you start. This will save you time!

Description

ts config does not work in api

await cruise(['src'],     {    validate: true,    includeOnly: [      `^src`    ],    tsConfig: {      fileName: 'tsconfig.json',    },    ruleSet: {      forbidden: allForbiddenRules,    },      });

or

await cruise(['src'],     {    validate: true,    includeOnly: [      `^src`    ],    ruleSet: {      forbidden: allForbiddenRules,    },  }, undefined, {    tsConfig: {      fileName: 'tsconfig.json',    },  });

Motivation and Context

I want to analyze the project through the API, but the TS configuration cannot be recognized!!

only use code like this, it works

await cruise(['src'],     {    validate: true,    includeOnly: [      `^src`    ],    ruleSet: {      options: {        tsConfig: {          fileName: path.resolve(projectRoot, 'tsconfig.json'),        },      },    },  });

How Has This Been Tested?

  • green ci

Screenshots

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • Documentation only change
  • Refactor (non-breaking change which fixes an issue without changing functionality)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist

  • 📖

    • My change doesn't require a documentation update, or ...
    • itdoes and I have updated it
  • ⚖️

    • The contribution will be subject toThe MIT license, and I'm OK with that.
    • The contribution is my own original work.
    • I am ok with the stuff inCONTRIBUTING.md.

@sonarqubecloudSonarQubeCloud
Copy link

@Rahim-ChanRahim-Chan changed the titleUsing the API but tsconfig does not work - fix: Using the API but tsconfig does not workSep 12, 2025
@Rahim-ChanRahim-Chan changed the title - fix: Using the API but tsconfig does not workfix: Using the API but tsconfig does not workSep 12, 2025
Compatible parameters
@sonarqubecloudSonarQubeCloud
Copy link

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

No reviews

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

1 participant

@Rahim-Chan

[8]ページ先頭

©2009-2025 Movatter.jp