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

fix(linter): allow undefined options in eslint plugin #27232

Merged
merged 1 commit into from
Jul 31, 2024

Conversation

a88zach
Copy link
Contributor

@a88zach a88zach commented Jul 31, 2024

EslintPluginOptions is optional for the eslint crystal plugin. This change ensures the options object is checked for undefined before accessing properties

closed #26556

Current Behavior

If you set up the plugin with no options, you get an error when building the project graph

{
      "plugin": "@nx/eslint/plugin",
},

Expected Behavior

The plugin should allow for an empty options object since it has a default target name

Related Issue(s)

Fixes #26556

EslintPluginOptions is optional for the eslint crystal plugin.  This change ensures the options
object is checked for undefined before accessing properties

closed nrwl#26556
@a88zach a88zach requested a review from a team as a code owner July 31, 2024 13:48
@a88zach a88zach requested a review from JamesHenry July 31, 2024 13:48
Copy link

vercel bot commented Jul 31, 2024

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

1 Skipped Deployment
Name Status Preview Updated (UTC)
nx-dev ⬜️ Ignored (Inspect) Visit Preview Jul 31, 2024 1:50pm

@JamesHenry JamesHenry changed the title fix(core): allow undefined options in eslint plugin fix(linter): allow undefined options in eslint plugin Jul 31, 2024
Copy link
Collaborator

@JamesHenry JamesHenry left a comment

Choose a reason for hiding this comment

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

Thanks @a88zach

@JamesHenry JamesHenry enabled auto-merge (squash) July 31, 2024 14:28
@JamesHenry JamesHenry merged commit 0d2f76c into nrwl:master Jul 31, 2024
6 checks passed
@a88zach a88zach deleted the 26556 branch July 31, 2024 14:38
FrozenPandaz pushed a commit that referenced this pull request Aug 1, 2024
Copy link

github-actions bot commented Aug 6, 2024

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 Aug 6, 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.

Project Crystal: AggregateCreateNodesError with version 19.3.0
2 participants