@tsrx/prettier-plugin 0.6.2 → 0.6.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.
- package/package.json +2 -2
- package/src/parse.js +5 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tsrx/prettier-plugin",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.3",
|
|
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.5.
|
|
30
|
+
"@tsrx/core": "0.5.5"
|
|
31
31
|
},
|
|
32
32
|
"files": [
|
|
33
33
|
"src/"
|
package/src/parse.js
CHANGED
|
@@ -47,7 +47,9 @@ const BROKEN_MARKUP_CODES = new Set([
|
|
|
47
47
|
* class member, a class member's modifier before a module element
|
|
48
48
|
* (`public class A {}`), `readonly`, `accessor` or `async` where they can't
|
|
49
49
|
* appear, `async` with `declare` or in a `declare` context (TS1040),
|
|
50
|
-
* `declare` before a `using` declaration,
|
|
50
|
+
* `declare` before a `using` declaration, a call of `import.<name>` other
|
|
51
|
+
* than `import.defer()` or `import.source()`, and a default or named binding in
|
|
52
|
+
* a deferred import (`import defer a from "m"`, TS18058 and TS18059).
|
|
51
53
|
*
|
|
52
54
|
* It formats the others, and leaves out what its tree has no place for, as the
|
|
53
55
|
* output does: a repeated modifier, a modifier in a block, `declare` before an
|
|
@@ -74,6 +76,8 @@ const REJECTED_CODES = new Set([
|
|
|
74
76
|
'TS1491',
|
|
75
77
|
'TS1495',
|
|
76
78
|
'TS17012',
|
|
79
|
+
'TS18058',
|
|
80
|
+
'TS18059',
|
|
77
81
|
]);
|
|
78
82
|
|
|
79
83
|
/**
|