-
Notifications
You must be signed in to change notification settings - Fork 1.5k
fix: eslint newline error on model generator #2910
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: eslint newline error on model generator #2910
Conversation
| expect(read(`${TEMP_DIR}/app/models/Pizza.ts`)).toMatchInlineSnapshot(` | ||
| "import { Instance, SnapshotIn, SnapshotOut, types } from \\"mobx-state-tree\\" | ||
| import { withSetPropAction } from \\"./helpers/withSetPropAction\\" | ||
| "import { Instance, SnapshotIn, SnapshotOut, types } from \\"mobx-state-tree\\" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
note: I think some of the bigger diffs here come from setting prettierPath: null in order to get Prettier v3 to play nice with Jest. See jestjs/jest#14305 (comment)
| "jsx" | ||
| ] | ||
| ], | ||
| "prettierPath": null |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
note: from jestjs/jest#14305 (comment)
frankcalise
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for redoing that!
## [10.1.7](v10.1.6...v10.1.7) (2025-03-07) ### Bug Fixes * **cli:** fix missing newlines in model generator ([#2910](#2910) by [@coolsoftwaretyler](https://github.com/coolsoftwaretyler)) ([3d9fe38](3d9fe38))
|
🎉 This PR is included in version 10.1.7 🎉 The release is available on: Your semantic-release bot 📦🚀 |
Description
Supercedes #2812, just with a fresh
masterbranch since there's been some drift and we had weird CI stuff going on.In Ignite X, the model generator would create files that did not pass Prettier config. See "before" screenshot, which came from
npx ignite-cli generate model Pizzain a fresh Ignite X app.This change primarily fixes the prettier error, as seen in the "after" screenshot, which I got by running:
However, when I attempted to update the Jest snapshots, I ran into this issue from Jest: jestjs/jest#14305, so I included this workaround.
Screenshots (if applicable)
Checklist
README.mdand other relevant documentation has been updated with my changes