Comments (3)
I think they're already supported, do you have any use case where it fails?
from prettier-plugin-embed.
@Sec-ant I'm looking for a solution to use template literal tags, not comments like in your video
js`
// ...
`
jsx`
// ...
`
ts`
// ...
`
tsx`
// ...
`
from prettier-plugin-embed.
Sorry for my late response (my mind was occupied by another project).
I believe what you requested are already supported, too. Comments and tagged functions as identifiers are both activated by default:
Edit: Oh tsx
seems not working, I'll take a look in it these days.
Edit again: Solution found, will release a new version addressing this.
from prettier-plugin-embed.
Related Issues (20)
- sql-formatter crash on SQL casts, tilde, square brackets, `$$` delimiter HOT 10
- Tests
- Enhancement: SQL in SQL prettification HOT 5
- Unstable formatting on multi-line dollar-quoted strings with `sql-formatter` `dialect` option HOT 16
- Export separate type declarations for each supported language HOT 15
- [docs] It's not clear what languages or identifiers are supported on first look on README HOT 4
- [meta] use tools like `changesets` for better maintainance HOT 12
- Updating v0.3.2 -> 0.4.1 breaks SQL formatting HOT 7
- Add an online playground
- ESM support? HOT 7
- literal tags with type annotations, sql<Revenue>`...` HOT 2
- Support for object properties as identifiers HOT 12
- Deprecate the name `identifier` in favor of `tag` and `comment`
- Version 0.4.11 and 0.4.12 prevent typescript from formatting. HOT 3
- Formatting error on Windows machines HOT 6
- Enabling plugin changes formatting of embedded CSS, even with embeddedCssTags: [] HOT 9
- Support for CommonJS HOT 1
- SQL: Indentation of interpolated expression missing an indent level HOT 2
- Unstable formatting of CSS comments HOT 3
- Tagged templates formatting adding indentation HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from prettier-plugin-embed.