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

feat(typescript-estree): default projectService.defaultProject to 'tsconfig.json'#9893

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

Conversation

JoshuaKGoldberg
Copy link
Member

@JoshuaKGoldbergJoshuaKGoldberg commentedAug 27, 2024
edited
Loading

PR Checklist

Overview

Now,getParsedConfigFile will always be called, even if the user hasn't explicitly providedprojectService.defaultProject manually. This is actually good, I think: it'll make sure the project'stsconfig.json is valid.

💖

@typescript-eslint
Copy link
Contributor

Thanks for the PR,@JoshuaKGoldberg!

typescript-eslint is a 100% community driven project, and we are incredibly grateful that you are contributing to that community.

The core maintainers work on this in their personal time, so please understand that it may not be possible for them to review your work immediately.

Thanks again!


🙏Please, if you or your company is finding typescript-eslint valuable, help us sustain the project by sponsoring it transparently onhttps://opencollective.com/typescript-eslint.

@netlifyNetlify
Copy link

netlifybot commentedAug 27, 2024
edited
Loading

Deploy Preview fortypescript-eslint ready!

NameLink
🔨 Latest commit80deb12
🔍 Latest deploy loghttps://app.netlify.com/sites/typescript-eslint/deploys/66d1ec2922ce110008cf6d04
😎 Deploy Previewhttps://deploy-preview-9893--typescript-eslint.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
Lighthouse
Lighthouse
1 paths audited
Performance: 99 (no change from production)
Accessibility: 100 (no change from production)
Best Practices: 92 (no change from production)
SEO: 90 (no change from production)
PWA: 80 (no change from production)
View the detailed breakdown and full score reports

To edit notification comments on pull requests, go to yourNetlify site configuration.

@nx-cloudNx Cloud
Copy link

nx-cloudbot commentedAug 27, 2024
edited
Loading

☁️ Nx Cloud Report

CI is running/has finished running commands for commit80deb12. As they complete they will appear below. Click to see the status, the terminal output, and the build insights.

📂 See all runs for this CI Pipeline Execution


✅ Successfully ran 30 targets

Sent with 💌 fromNxCloud.

@JoshuaKGoldbergJoshuaKGoldberg marked this pull request as draftAugust 28, 2024 15:17
fs.readFileSync(
path.isAbsolute(file) ? file : path.join(getCurrentDirectory(), file),
'utf-8',
),
Copy link
MemberAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Without this absolute checking:

      A fatal parsing error occurred: Parsing error: Could not read project service default project 'tsconfig.json': error TS5012: Cannot read file '/home/runner/work/typescript-eslint/typescript-eslint/packages/eslint-plugin-internal/tests/fixtures/tsconfig.build.json': ENOENT: no such file or directory, open '/home/runner/work/typescript-eslint/typescript-eslint/packages/eslint-plugin-internal/tests/fixtures/tsconfig.build.json'.

Thattsconfig.build.json comes frompackages/typescript-estree/tsconfig.json. The test was reading with cwdpackages/typescript-estree.

@codecovCodecov
Copy link

codecovbot commentedAug 28, 2024
edited
Loading

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 88.05%. Comparing base(d9f66da) to head(80deb12).
Report is 27 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@##             main    #9893   +/-   ##=======================================  Coverage   88.05%   88.05%           =======================================  Files         407      407             Lines       13947    13948    +1       Branches     4071     4071           =======================================+ Hits        12281    12282    +1  Misses       1354     1354             Partials      312      312
FlagCoverage Δ
unittest88.05% <100.00%> (+<0.01%)⬆️

Flags with carried forward coverage won't be shown.Click here to find out more.

Files with missing linesCoverage Δ
...-estree/src/create-program/createProjectService.ts95.23% <100.00%> (ø)
...t-estree/src/create-program/getParsedConfigFile.ts94.11% <100.00%> (+0.36%)⬆️
...eate-program/validateDefaultProjectForFilesGlob.ts100.00% <100.00%> (ø)

... and36 files with indirect coverage changes

/** @type {import('@jest/types').Config.InitialOptions} */
module.exports = {
...require('../../jest.config.base.js'),
testRegex: ['./tests/lib/.*\\.test\\.ts$'],
testPathIgnorePatterns: process.env.TYPESCRIPT_ESLINT_PROJECT_SERVICE
? ['/node_modules/', 'project-true']
: [],
Copy link
MemberAuthor

@JoshuaKGoldbergJoshuaKGoldbergAug 30, 2024
edited
Loading

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

parse.project-true.test.ts never really needed to be tested with the project service on anyway. Otherwise:

Could not read project service default project 'tsconfig.json': error TS5012: Cannot read file 'tsconfig.json': ENOENT: no such file or directory, open '/Users/josh/repos/typescript-eslint/packages/typescript-estree/tests/fixtures/projectTrue/tsconfig.json'.

@JoshuaKGoldbergJoshuaKGoldberg marked this pull request as ready for reviewSeptember 1, 2024 11:53
@JoshuaKGoldbergJoshuaKGoldberg merged commite9428cb intotypescript-eslint:mainSep 4, 2024
61 checks passed
@JoshuaKGoldbergJoshuaKGoldberg deleted the project-service-default-project-tsconfig.json branchSeptember 4, 2024 13:28
@github-actionsgithub-actionsbot locked asresolvedand limited conversation to collaboratorsSep 16, 2024
Sign up for freeto subscribe to this conversation on GitHub. Already have an account?Sign in.
Reviewers

@bradzacherbradzacherbradzacher approved these changes

@kirkwaiblingerkirkwaiblingerAwaiting requested review from kirkwaiblinger

Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

Enhancement: Default projectService.defaultProject to "tsconfig.json"
2 participants
@JoshuaKGoldberg@bradzacher

[8]ページ先頭

©2009-2025 Movatter.jp