You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Projects that don’t list Prettier as a direct dev-dependency fail during the “prettier” phase with spawnSync prettier ENOENT.
This happens because the linter calls prettier by name and the binary is only present in node_modules/.bin when a repo installs Prettier itself or when npm hoists it to the top level.
Making the linter call the bundled Prettier binary guarantees:
Zero setup – repos only install @matrixai/lint.
Consistent Prettier version across all projects.
No accidental breakage when npm’s hoisting rules change.
Additional context
Tasks
Make the matrixai-lint command invoke the bundled Prettier rather than the target repo's Prettier
The text was updated successfully, but these errors were encountered:
Specification
Projects that don’t list Prettier as a direct dev-dependency fail during the “prettier” phase with spawnSync prettier ENOENT.
This happens because the linter calls prettier by name and the binary is only present in node_modules/.bin when a repo installs Prettier itself or when npm hoists it to the top level.
Making the linter call the bundled Prettier binary guarantees:
Additional context
Tasks
The text was updated successfully, but these errors were encountered: