Skip to content
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(linter): migrate to create-nodes-v2 #26302

Merged
merged 3 commits into from
Jun 4, 2024

Conversation

AgentEnder
Copy link
Member

@AgentEnder AgentEnder commented May 31, 2024

Current Behavior

No cache for eslint nodes

Expected Behavior

v2 cache for eslint nodes

Related Issue(s)

Fixes #

@AgentEnder AgentEnder requested a review from a team as a code owner May 31, 2024 22:09
@AgentEnder AgentEnder requested a review from JamesHenry May 31, 2024 22:09
Copy link

vercel bot commented May 31, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

1 Ignored Deployment
Name Status Preview Updated (UTC)
nx-dev ⬜️ Ignored (Inspect) Visit Preview Jun 3, 2024 10:08pm

@AgentEnder AgentEnder force-pushed the feat/eslint-create-nodes-v2 branch from 48b790d to af48c90 Compare May 31, 2024 22:42
@AgentEnder AgentEnder requested a review from a team as a code owner May 31, 2024 22:42
@AgentEnder AgentEnder force-pushed the feat/eslint-create-nodes-v2 branch from af48c90 to 6c0f2e7 Compare May 31, 2024 22:57
@AgentEnder AgentEnder force-pushed the feat/eslint-create-nodes-v2 branch from d74c7f9 to d93d253 Compare June 3, 2024 18:58
super(
[
'Failed to create nodes',
...errors.map(([file, e]) => ` - ${file}: ${e.message}`),
Copy link
Collaborator

Choose a reason for hiding this comment

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

Remove


export interface EslintPluginOptions {
targetName?: string;
extensions?: string[];
}

const DEFAULT_EXTENSIONS = ['ts', 'tsx', 'js', 'jsx', 'html', 'vue'];
const ESLING_CONFIG_GLOB = combineGlobPatterns([
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
const ESLING_CONFIG_GLOB = combineGlobPatterns([
const ESLINT_CONFIG_GLOB = combineGlobPatterns([

for (const file of context.configFiles) {
const nodes = await createNodes[1](file, { targetName }, context);
Object.assign(aggregateProjects, nodes.projects);
async function invokeCreateNodesV2OnMatchingFiles(
Copy link
Collaborator

Choose a reason for hiding this comment

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

We don't need to change the name of this.

@AgentEnder AgentEnder force-pushed the feat/eslint-create-nodes-v2 branch from d93d253 to 9ae3b9a Compare June 3, 2024 21:33
@AgentEnder AgentEnder force-pushed the feat/eslint-create-nodes-v2 branch from 9ae3b9a to bb87fe7 Compare June 3, 2024 22:06
@FrozenPandaz FrozenPandaz merged commit 0594deb into master Jun 4, 2024
6 checks passed
@FrozenPandaz FrozenPandaz deleted the feat/eslint-create-nodes-v2 branch June 4, 2024 00:01
Copy link

This pull request has already been merged/closed. If you experience issues related to these changes, please open a new issue referencing this pull request.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jun 15, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants