prettier-plugin-embed 0.2.1 → 0.2.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/README.bak +4 -4
  2. package/README.md +4 -4
  3. package/package.json +3 -2
package/README.bak CHANGED
@@ -130,9 +130,9 @@ Formatting embedded ECMAScript code doesn't require other plugins and uses the p
130
130
 
131
131
  #### HTML
132
132
 
133
- | Option | Default | Description |
134
- | :-----------------------: | :---------------------------------------: | --------------------------------------------------------------------------------------------------------------------- |
135
- | `embeddedHtmlIdentifiers` | [`[...]`](./src/embedded/html/options.ts) | Tag or comment identifiers that make their subsequent template literals be identified as ECMAScript (JavaScript) code |
133
+ | Option | Default | Description |
134
+ | :-----------------------: | :---------------------------------------: | -------------------------------------------------------------------------------------------------- |
135
+ | `embeddedHtmlIdentifiers` | [`[...]`](./src/embedded/html/options.ts) | Tag or comment identifiers that make their subsequent template literals be identified as HTML code |
136
136
 
137
137
  Formatting embedded HTML code doesn't require other plugins and uses the parsers and printers provided by Prettier natively. This can override the native embedded language formatting for HTML code.
138
138
 
@@ -168,7 +168,7 @@ Formatting embedded Ruby code requires [`@prettier/plugin-ruby`](https://github.
168
168
 
169
169
  Formatting embedded SQL code requires [`prettier-plugin-sql`](https://github.com/un-ts/prettier/tree/master/packages/sql#readme) to be loaded as well. And [options](https://github.com/un-ts/prettier/tree/master/packages/sql#parser-options) supported by `prettier-plugin-sql` can therefore be used to further control the formatting behavior.
170
170
 
171
- Note that `prettier-plugin-sql` supports many different SQL dialects, and there's a one-to-one correspondence between the dialects and the identifiers. To support custom identifiers for a specific dialect, put the identifiers after that specific dialect in the identifier list in option `embeddedSql`.
171
+ Note that `prettier-plugin-sql` supports many different SQL dialects, and there's a one-to-one correspondence between the dialects and the identifiers. To support custom identifiers for a specific dialect, put the identifiers after that specific dialect in the identifier list in option `embeddedSqlIdentifiers`.
172
172
 
173
173
  #### TS
174
174
 
package/README.md CHANGED
@@ -129,9 +129,9 @@ Formatting embedded ECMAScript code doesn't require other plugins and uses the p
129
129
 
130
130
  #### HTML
131
131
 
132
- | Option | Default | Description |
133
- | :-----------------------: | :---------------------------------------: | --------------------------------------------------------------------------------------------------------------------- |
134
- | `embeddedHtmlIdentifiers` | [`[...]`](./src/embedded/html/options.ts) | Tag or comment identifiers that make their subsequent template literals be identified as ECMAScript (JavaScript) code |
132
+ | Option | Default | Description |
133
+ | :-----------------------: | :---------------------------------------: | -------------------------------------------------------------------------------------------------- |
134
+ | `embeddedHtmlIdentifiers` | [`[...]`](./src/embedded/html/options.ts) | Tag or comment identifiers that make their subsequent template literals be identified as HTML code |
135
135
 
136
136
  Formatting embedded HTML code doesn't require other plugins and uses the parsers and printers provided by Prettier natively. This can override the native embedded language formatting for HTML code.
137
137
 
@@ -167,7 +167,7 @@ Formatting embedded Ruby code requires [`@prettier/plugin-ruby`](https://github.
167
167
 
168
168
  Formatting embedded SQL code requires [`prettier-plugin-sql`](https://github.com/un-ts/prettier/tree/master/packages/sql#readme) to be loaded as well. And [options](https://github.com/un-ts/prettier/tree/master/packages/sql#parser-options) supported by `prettier-plugin-sql` can therefore be used to further control the formatting behavior.
169
169
 
170
- Note that `prettier-plugin-sql` supports many different SQL dialects, and there's a one-to-one correspondence between the dialects and the identifiers. To support custom identifiers for a specific dialect, put the identifiers after that specific dialect in the identifier list in option `embeddedSql`.
170
+ Note that `prettier-plugin-sql` supports many different SQL dialects, and there's a one-to-one correspondence between the dialects and the identifiers. To support custom identifiers for a specific dialect, put the identifiers after that specific dialect in the identifier list in option `embeddedSqlIdentifiers`.
171
171
 
172
172
  #### TS
173
173
 
package/package.json CHANGED
@@ -2,10 +2,11 @@
2
2
  "name": "prettier-plugin-embed",
3
3
  "description": "A configurable Prettier plugin to format embedded languages in js/ts files.",
4
4
  "private": false,
5
- "version": "0.2.1",
5
+ "version": "0.2.3",
6
6
  "type": "module",
7
7
  "files": [
8
- "./dist"
8
+ "./dist",
9
+ "!README.bak"
9
10
  ],
10
11
  "main": "./dist/index.js",
11
12
  "module": "./dist/index.js",