@tsrx/prettier-plugin 0.7.13 → 0.7.14
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.
- package/package.json +2 -2
- package/src/parse.js +3 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tsrx/prettier-plugin",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.14",
|
|
4
4
|
"description": "TSRX plugin for Prettier",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"module": "src/index.js",
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
"prettier-3-6": "npm:prettier@3.6.0"
|
|
28
28
|
},
|
|
29
29
|
"dependencies": {
|
|
30
|
-
"@tsrx/core": "0.
|
|
30
|
+
"@tsrx/core": "0.9.0"
|
|
31
31
|
},
|
|
32
32
|
"files": [
|
|
33
33
|
"src/"
|
package/src/parse.js
CHANGED
|
@@ -54,7 +54,8 @@ const BROKEN_MARKUP_CODES = new Set([
|
|
|
54
54
|
* `import.source()` (TS17012, TS18061), a default or named binding in
|
|
55
55
|
* a deferred import (`import defer a from "m"`, TS18058 and TS18059), a
|
|
56
56
|
* type-only import with both (`import type a, { b } from "m"`, TS1363),
|
|
57
|
-
* `import type` on an import alias (TS1392),
|
|
57
|
+
* `import type` on an import alias (TS1392), a JSX name written with a
|
|
58
|
+
* Unicode escape (`<Inn\u0065r />`, TS17021), and a function body in an
|
|
58
59
|
* ambient context (TS1183). Prettier rejects that one after `declare`
|
|
59
60
|
* (`declare function f() {}`, which its tree prints wrong), and the plugin in
|
|
60
61
|
* a `declare namespace` too.
|
|
@@ -89,6 +90,7 @@ const REJECTED_CODES = new Set([
|
|
|
89
90
|
'TS18059',
|
|
90
91
|
'TS1363',
|
|
91
92
|
'TS1392',
|
|
93
|
+
'TS17021',
|
|
92
94
|
'TS1183',
|
|
93
95
|
]);
|
|
94
96
|
|