We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
eslint.config.js
When defining variables outside config in a flat config eslint.config.js, the @nx/plugin:plugin generator fails.
@nx/plugin:plugin
When defining variables outside config in a flat config eslint.config.js, the @nx/plugin:plugin generator succeeds.
https://github.com/philipjfulcher/eslint-flat-config-repro
npx nx g plugin my-plugin -d
flat-config
plugin-generator
InvalidSymbol in JSON
NX Report complete - copy this into the issue template Node : 20.11.1 OS : darwin-arm64 npm : 10.2.4 nx : 18.2.4 @nx/js : 18.2.4 @nx/jest : 18.2.4 @nx/linter : 18.2.4 @nx/eslint : 18.2.4 @nx/workspace : 18.2.4 @nx/angular : 18.2.4 @nx/devkit : 18.2.4 @nx/eslint-plugin : 18.2.4 @nx/plugin : 18.2.4 @nrwl/tao : 18.2.4 @nx/web : 18.2.4 @nx/webpack : 18.2.4 typescript : 5.4.5
NX InvalidSymbol in JSON at 10:11 8 | "enforceBuildableLibDependency": true, 9 | "allow": [], > 10 | depConstraints | ^^^^^^^^^^^^^^ 11 | }, 12 | ], 13 | },
No response
The problem is not isolated to just the shorthand assignment syntax. Changing it to depConstraints: depConstraints has the same problem.
depConstraints: depConstraints
Other generators may have this problem if they also interact with the eslint.config.js file, but I haven't had a chance to check any other.
The text was updated successfully, but these errors were encountered:
JamesHenry
No branches or pull requests
Current Behavior
When defining variables outside config in a flat config
eslint.config.js
, the@nx/plugin:plugin
generator fails.Expected Behavior
When defining variables outside config in a flat config
eslint.config.js
, the@nx/plugin:plugin
generator succeeds.GitHub Repo
https://github.com/philipjfulcher/eslint-flat-config-repro
Steps to Reproduce
npx nx g plugin my-plugin -d
and observe that it succeeds.flat-config
where flat config migration has been run.npx nx g plugin my-plugin -d
and observe that it succeeds.plugin-generator
whereeslint.config.js
has been changed to introduce a variable.npx nx g plugin my-plugin -d
and observe that it fails withInvalidSymbol in JSON
error.Nx Report
Failure Logs
Package Manager Version
No response
Operating System
Additional Information
The problem is not isolated to just the shorthand assignment syntax. Changing it to
depConstraints: depConstraints
has the same problem.Other generators may have this problem if they also interact with the
eslint.config.js
file, but I haven't had a chance to check any other.The text was updated successfully, but these errors were encountered: