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(type-utils): allowFileSpecifier to exclude paths#6860

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

RebeccaStevens
Copy link
Contributor

PR Checklist

Overview

AddsexcludePaths option toFileSpecifier (has no effect if apath is given).
This new option defaults to["node_modules"].

@typescript-eslint
Copy link
Contributor

Thanks for the PR,@RebeccaStevens!

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.

@netlify
Copy link

netlifybot commentedApr 7, 2023
edited
Loading

Deploy Preview fortypescript-eslint ready!

NameLink
🔨 Latest commitdb94a99
🔍 Latest deploy loghttps://app.netlify.com/sites/typescript-eslint/deploys/643014f5acb7b7000869114a
😎 Deploy Previewhttps://deploy-preview-6860--typescript-eslint.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

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

@nx-cloud
Copy link

nx-cloudbot commentedApr 7, 2023
edited
Loading

☁️ Nx Cloud Report

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

📂 See all runs for this branch


✅ Successfully ran 30 targets

Sent with 💌 fromNxCloud.

@codecov
Copy link

codecovbot commentedApr 7, 2023

Codecov Report

Merging#6860 (db94a99) intov6 (a35a2bb) willdecrease coverage by0.02%.
The diff coverage is75.00%.

Additional details and impacted files
@@            Coverage Diff             @@##               v6    #6860      +/-   ##==========================================- Coverage   87.46%   87.45%   -0.02%==========================================  Files         374      374                Lines       12879    12884       +5       Branches     3811     3814       +3     ==========================================+ Hits        11265    11268       +3- Misses       1229     1230       +1- Partials      385      386       +1
FlagCoverage Δ
unittest87.45% <75.00%> (-0.02%)⬇️

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

Impacted FilesCoverage Δ
packages/type-utils/src/TypeOrValueSpecifier.ts84.84% <75.00%> (-4.44%)⬇️

Copy link
Contributor

@marekdedicmarekdedic left a comment

Choose a reason for hiding this comment

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

Thanks for the PR, you truly beat me to it by just a few minutes :D

As I wrote in the comments, I'm not a fan of the paths being configurable and would just hard-codenode_modules there.

However, if you do decide to go ahead with theexcludePaths option,typeOrValueSpecifierSchema needs to be modified as well :)

@JoshuaKGoldberg
Copy link
Member

I'm going to wait on discussion in#6839 - it might impact the config option here.

@JoshuaKGoldbergJoshuaKGoldberg added the blocked by another PRPRs which are ready to go but waiting on another PR labelApr 16, 2023
@JoshuaKGoldbergJoshuaKGoldberg deleted the branchtypescript-eslint:mainJuly 10, 2023 17:52
@JoshuaKGoldberg
Copy link
Member

JoshuaKGoldberg commentedJul 10, 2023
edited
Loading

This was unintentionally auto-closed when we merged thev6 branch 🙃 it'll berecreated reopened.

@JoshuaKGoldbergJoshuaKGoldberg changed the base branch fromv6 tomainJuly 10, 2023 21:11
@JoshuaKGoldberg
Copy link
Member

Sorry for the delay -#6839 is accepting PRs so this is unblocked!

@JoshuaKGoldbergJoshuaKGoldberg removed the blocked by another PRPRs which are ready to go but waiting on another PR labelOct 17, 2023
Copy link
Member

@JoshuaKGoldbergJoshuaKGoldberg left a comment

Choose a reason for hiding this comment

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

Sorry for the delay here! I think the changes generally make sense, but I'm leaning towards keeping it less complex by not makingexcludePaths andpath mutually exclusive. What do you think?

path?: undefined;
excludePaths?: string | string[]; // defaults to `["node_modules"]`.
}
);

Choose a reason for hiding this comment

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

Starting a new conversation here: why makeexcludePaths andpath mutually exclusive? What if someone wants to provide both? E.g.:

{path:"examples",excludePaths:["examples/*/node_modules"]}

Proposal: can we switch this back to a straightforward interface?

interfaceFileSpecifier{from:'file';name:string|string[];path?:string;excludePaths?:string|string[];// defaults to `["node_modules"]`.}

}
| {
path?: undefined;
excludePaths?: string | string[]; // defaults to `["node_modules"]`.

Choose a reason for hiding this comment

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

I also wonder if we should call thispathExcludes, to visually lump it in withpath... 🤔

@JoshuaKGoldbergJoshuaKGoldberg added the awaiting responseIssues waiting for a reply from the OP or another party labelOct 17, 2023
@JoshuaKGoldberg
Copy link
Member

👋 ping@RebeccaStevens, just checking in - is this still something you have time for? No worries if not! I just don't want to leave it hanging.

@JoshuaKGoldbergJoshuaKGoldberg added the stalePRs or Issues that are at risk of being or have been closed due to inactivity for a prolonged period labelNov 13, 2023
@JoshuaKGoldberg
Copy link
Member

Closing this PR as it's been stale for a while without activity. Feel free to reopen@RebeccaStevens if you have time - but no worries if not!

If anybody wants to drive it forward, please do post your own PR - and if you use this as a start, consider adding a co-author at the end of your PR description. Thanks! 😊

marekdedic reacted with confused emoji

@github-actionsgithub-actionsbot locked asresolvedand limited conversation to collaboratorsJan 16, 2024
Sign up for freeto subscribe to this conversation on GitHub. Already have an account?Sign in.
Reviewers

@marekdedicmarekdedicmarekdedic requested changes

@JoshuaKGoldbergJoshuaKGoldbergJoshuaKGoldberg requested changes

Assignees
No one assigned
Labels
awaiting responseIssues waiting for a reply from the OP or another partybugSomething isn't workingstalePRs or Issues that are at risk of being or have been closed due to inactivity for a prolonged period
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

Bug:typeMatchesSpecifierFileSpecifier checks in node modules
4 participants
@RebeccaStevens@JoshuaKGoldberg@marekdedic@bradzacher

[8]ページ先頭

©2009-2025 Movatter.jp