-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Scripts: Autoformat TypeScript files with format-js #27138
Conversation
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.
I was thinking about it earlier today ❤️
Is there any ESLint support we could enable?
Size Change: 0 B Total Size: 1.19 MB ℹ️ View Unchanged
|
I changed a label to align with guidelines (https://github.com/WordPress/gutenberg/blob/master/docs/contributors/repository-management.md#pull-requests):
|
I took a quick look but didn't see it. Do you know where the relevant configs are? |
I have no idea, something to explore for sure. I'm curios if linting TS files would verify Prettier code formatting out of the box. |
Description
format-js
script formats.js
and.jsx
extensions, but can (and should!) format.ts
and.tsx
extensions as well.How has this been tested?
From the project root, run
npm run format-js
.Types of changes
New feature
Checklist: