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

Update 'typescript-eslint/utils' to dependency #93

Merged
merged 2 commits into from
Dec 4, 2024

Conversation

haifeng-li-at-salesforce
Copy link
Contributor

What does this PR do?

  • Update 'typescript-eslint/utils' from devDependency to dependency
  • Update incorrect sample code for 'more-than-100-field' rule

What issues does this PR fix or reference?

  • When eslint-plugin-lwc-mobile is installed as devDependency, the 'typescript-eslint/utils' would show up in 'node_modules'

@sfdctaka
Copy link
Contributor

sfdctaka commented Dec 4, 2024

Did you wanted @typescript-eslint/utils NOT to appear in host package's node_modules? Wouldn't putting it in dependencies actually do just that?

@khawkins
Copy link
Collaborator

khawkins commented Dec 4, 2024

Did you wanted @typescript-eslint/utils NOT to appear in host package's node_modules? Wouldn't putting it in dependencies actually do just that?

@sfdctaka It's a dependency that is required by the plugin package at runtime, which is the reason for the move. Without it, if you install the plugin and attempt to run it, you will get errors about the missing dependency from ESLint.

Copy link
Contributor

@sfdctaka sfdctaka left a comment

Choose a reason for hiding this comment

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

LGTM!

Copy link
Contributor

@ben-zhang-at-salesforce ben-zhang-at-salesforce left a comment

Choose a reason for hiding this comment

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

looks good

@haifeng-li-at-salesforce haifeng-li-at-salesforce merged commit ac741bb into main Dec 4, 2024
13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants