Comments (6)
Yes, I'm also using JSON.stringify
hack in the sql
plugin.
See also #233 (comment)
By the way, I'm using jsox
instead of standard JSON
because it's much user friendly.
For prettier core, I've raised prettier/prettier#14671 for tracking.
from prettier.
Use overrides
instead.
from prettier.
I know overrides
but it is file based overriding. However prettier-plugin-embed
aims to support formatting embedded templates of different languages in the same file.
from prettier.
I think that should be supported via embed
plugin, instead of reversed.
It should support an option
named overrides
for example.
from prettier.
I've already implemented an identifier based overriding in my plugin, ugly but working, because prettier doesn't support object type option value for plugins, so I have to use JSON.stringify
or an absolute path of a config file.
It is ok if this is not planned. Just want to check if there's a plan
from prettier.
Thanks for the sharing. I'll definitely check this.
from prettier.
Related Issues (20)
- [prettier-plugin-sh] Fails in Dockerfile using "RUN if" HOT 4
- [prettier-plugin-sql] Can I use prettier-plugin-sql with prettier standalone API? HOT 1
- [prettier-plugin-sql] enable SQLite HOT 1
- prettier-sql: How to configure it? HOT 1
- `[error] Couldn't resolve parser "sh".` when upgrading to Prettier 3.1.0 HOT 14
- [prettier-plugin-sql] export supported sql dialect names HOT 6
- prettier-plugin-sql: Update to sql-formatter@14? HOT 2
- [prettier-plugin-toml] unable to format `toml` programmatically in an es module HOT 6
- prettier-plugin-sql: Allow `dialect` as alternative to `language` HOT 6
- Possibility of updating the license again? HOT 2
- prettier-plugin-sql: Upgrade to sql-formatter@15 HOT 1
- Error with cjs version of prettier-plugin-sql `Cannot read properties of undefined (reading 'parse')` HOT 7
- Idea: `eslint` as a plugin for `prettier` HOT 1
- prettier-plugin-sh fails to format standard VisualStudio.gitignore file HOT 1
- [prettier-plugin-sh] Incorrectly splits RUN command HOT 5
- prettier-plugin-sh: support .nvmrc files? HOT 7
- [prettier-plugin-sh]: automatic parser detection for `.husky/*` files. HOT 1
- [warn] embeddedSqlIdentifiers is deprecated. HOT 1
- Is there an SQL Server version of prettier-plugin-sql plugin? HOT 1
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.