-
-
Notifications
You must be signed in to change notification settings - Fork 4.7k
Prettier 2.0 (old) #3503
Copy link
Copy link
Closed
Labels
area:apiIssues with Prettier's Application Programming InterfaceIssues with Prettier's Application Programming Interfacearea:cliIssues with Prettier's Command Line InterfaceIssues with Prettier's Command Line Interfacelocked-due-to-inactivityPlease open a new issue and fill out the template instead of commenting.Please open a new issue and fill out the template instead of commenting.type:metaIssues about the status of Prettier, or anything else about Prettier itselfIssues about the status of Prettier, or anything else about Prettier itself
Milestone
Metadata
Metadata
Assignees
Labels
area:apiIssues with Prettier's Application Programming InterfaceIssues with Prettier's Application Programming Interfacearea:cliIssues with Prettier's Command Line InterfaceIssues with Prettier's Command Line Interfacelocked-due-to-inactivityPlease open a new issue and fill out the template instead of commenting.Please open a new issue and fill out the template instead of commenting.type:metaIssues about the status of Prettier, or anything else about Prettier itselfIssues about the status of Prettier, or anything else about Prettier itself
Note added by @j-f1:
This is NOT the current plan for Prettier v2.0. We’ve significantly scaled back our plans for what Prettier 2.0 will do, allowing us to get a less-controversial release out sooner: #6888
I've been thinking a bit about what we would do if (don't create a milestone just yet 😉) we were to do a Prettier 2.0 release with some API/CLI breaking changes. No significant changes to code formatting other than perhaps changing some defaults.
Easy?
trailingCommato"es5".The diff advantages alone are excellent, and this seems to be commonplace among the most popular JS projects.
CLI:
config file doesn't work at the way other libraries do #2691 - CLI defaults to
"**/*.{js,ts,...}".People should just be able to do
prettier --writewithout passing messy globs #0CJSConsider replacing the "parser" option with "language" #2846 - Replace the "parser" option with "language".
e.g.
echo ".foo {}" | prettier --language cssKeep
--parser flowor perhaps support something like--parser.js flowfor future extensibility.Remove
--flow-parseroption.Has been deprecated for a long time.
For debate
Consistently add quotes to object keys #838 - Consistently add quotes to object keys.
e.g. put quotes around
originin this example:Change the default value for
singleQuotetotrueOutdated
Consider removing default parser / Skip processing unsupported file types #2884 - Remove the default parser.Fixed by Don't default parser to babylon #4528Space after function keyword - MOVED to #3847! #1139 - Put a space after theninfunction () {}