@prettier/plugin-oxc 0.0.1

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/LICENSE ADDED
@@ -0,0 +1,7 @@
1
+ Copyright © James Long and contributors
2
+
3
+ Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
4
+
5
+ The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
6
+
7
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,36 @@
1
+ # @prettier/plugin-oxc
2
+
3
+ > Prettier [Oxc](https://oxc.rs/) plugin.
4
+
5
+ ## Install
6
+
7
+ ```bash
8
+ yarn add --dev prettier @prettier/plugin-oxc
9
+ ```
10
+
11
+ ## Usage
12
+
13
+ Create or modify your [prettier configuration file](https://prettier.io/docs/en/configuration) to use the plugin:
14
+
15
+ ```yaml
16
+ plugins:
17
+ - "@prettier/plugin-oxc"
18
+ ```
19
+
20
+ Or config explicitly
21
+
22
+ ```yaml
23
+ overrides:
24
+ - files:
25
+ - "**/*.{js,mjs,cjs,jsx}"
26
+ options:
27
+ plugins:
28
+ - "@prettier/plugin-oxc"
29
+ parser: oxc
30
+ - files:
31
+ - "**/*.{ts,mts,cts,tsx}"
32
+ options:
33
+ plugins:
34
+ - "@prettier/plugin-oxc"
35
+ parser: oxc-ts
36
+ ```
@@ -0,0 +1,211 @@
1
+ # Licenses of bundled dependencies
2
+
3
+ The published @prettier/plugin-oxc artifact additionally contains code with the following licenses:
4
+ MIT.
5
+
6
+ ## emoji-regex@v10.4.0
7
+
8
+ > A regular expression to match all Emoji-only symbols as per the Unicode Standard.
9
+
10
+ License: MIT
11
+ Homepage: <https://mths.be/emoji-regex>
12
+ Repository: <https://github.com/mathiasbynens/emoji-regex.git>
13
+ Author: Mathias Bynens (https://mathiasbynens.be/)
14
+
15
+ > Copyright Mathias Bynens <https://mathiasbynens.be/>
16
+ >
17
+ > Permission is hereby granted, free of charge, to any person obtaining
18
+ > a copy of this software and associated documentation files (the
19
+ > "Software"), to deal in the Software without restriction, including
20
+ > without limitation the rights to use, copy, modify, merge, publish,
21
+ > distribute, sublicense, and/or sell copies of the Software, and to
22
+ > permit persons to whom the Software is furnished to do so, subject to
23
+ > the following conditions:
24
+ >
25
+ > The above copyright notice and this permission notice shall be
26
+ > included in all copies or substantial portions of the Software.
27
+ >
28
+ > THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
29
+ > EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
30
+ > MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
31
+ > NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
32
+ > LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
33
+ > OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
34
+ > WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
35
+
36
+ ----------------------------------------
37
+
38
+ ## escape-string-regexp@v5.0.0
39
+
40
+ > Escape RegExp special characters
41
+
42
+ License: MIT
43
+ Author: Sindre Sorhus <sindresorhus@gmail.com> (https://sindresorhus.com)
44
+
45
+ > MIT License
46
+ >
47
+ > Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (https://sindresorhus.com)
48
+ >
49
+ > Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
50
+ >
51
+ > The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
52
+ >
53
+ > THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
54
+
55
+ ----------------------------------------
56
+
57
+ ## get-east-asian-width@v1.3.0
58
+
59
+ > Determine the East Asian Width of a Unicode character
60
+
61
+ License: MIT
62
+ Author: Sindre Sorhus <sindresorhus@gmail.com> (https://sindresorhus.com)
63
+
64
+ > MIT License
65
+ >
66
+ > Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (https://sindresorhus.com)
67
+ >
68
+ > Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
69
+ >
70
+ > The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
71
+ >
72
+ > THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
73
+
74
+ ----------------------------------------
75
+
76
+ ## index-to-position@v1.1.0
77
+
78
+ > Convert a string index to its line and column position
79
+
80
+ License: MIT
81
+ Author: Sindre Sorhus <sindresorhus@gmail.com> (https://sindresorhus.com)
82
+
83
+ > MIT License
84
+ >
85
+ > Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (https://sindresorhus.com)
86
+ >
87
+ > Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
88
+ >
89
+ > The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
90
+ >
91
+ > THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
92
+
93
+ ----------------------------------------
94
+
95
+ ## is-es5-identifier-name@v1.0.0
96
+
97
+ > Check if provided string is an `IdentifierName` as specified in ECMA262 edition 5.1 section 7.6.
98
+
99
+ License: MIT
100
+ Author: fisker Cheung <lionkay@gmail.com>
101
+
102
+ > MIT License
103
+ >
104
+ > Copyright (c) fisker Cheung <lionkay@gmail.com> (https://www.fiskercheung.com/)
105
+ >
106
+ > Permission is hereby granted, free of charge, to any person obtaining a copy
107
+ > of this software and associated documentation files (the "Software"), to deal
108
+ > in the Software without restriction, including without limitation the rights
109
+ > to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
110
+ > copies of the Software, and to permit persons to whom the Software is
111
+ > furnished to do so, subject to the following conditions:
112
+ >
113
+ > The above copyright notice and this permission notice shall be included in all
114
+ > copies or substantial portions of the Software.
115
+ >
116
+ > THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
117
+ > IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
118
+ > FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
119
+ > AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
120
+ > LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
121
+ > OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
122
+ > SOFTWARE.
123
+
124
+ ----------------------------------------
125
+
126
+ ## jest-docblock@v30.0.1
127
+
128
+ License: MIT
129
+ Repository: <https://github.com/jestjs/jest.git>
130
+
131
+ > MIT License
132
+ >
133
+ > Copyright (c) Meta Platforms, Inc. and affiliates.
134
+ > Copyright Contributors to the Jest project.
135
+ >
136
+ > Permission is hereby granted, free of charge, to any person obtaining a copy
137
+ > of this software and associated documentation files (the "Software"), to deal
138
+ > in the Software without restriction, including without limitation the rights
139
+ > to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
140
+ > copies of the Software, and to permit persons to whom the Software is
141
+ > furnished to do so, subject to the following conditions:
142
+ >
143
+ > The above copyright notice and this permission notice shall be included in all
144
+ > copies or substantial portions of the Software.
145
+ >
146
+ > THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
147
+ > IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
148
+ > FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
149
+ > AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
150
+ > LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
151
+ > OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
152
+ > SOFTWARE.
153
+
154
+ ----------------------------------------
155
+
156
+ ## prettier@v3.6.0-dev
157
+
158
+ > Prettier is an opinionated code formatter
159
+
160
+ License: MIT
161
+ Homepage: <https://prettier.io>
162
+ Author: James Long
163
+
164
+ > Copyright © James Long and contributors
165
+ >
166
+ > Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
167
+ >
168
+ > The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
169
+ >
170
+ > THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
171
+
172
+ ----------------------------------------
173
+
174
+ ## to-fast-properties@v4.0.0
175
+
176
+ > Force V8 to use fast properties for an object
177
+
178
+ License: MIT
179
+ Author: Sindre Sorhus <sindresorhus@gmail.com> (https:/sindresorhus.com)
180
+
181
+ > MIT License
182
+ >
183
+ > Copyright (c) Petka Antonov
184
+ > Benjamin Gruenbaum
185
+ > John-David Dalton
186
+ > Sindre Sorhus
187
+ >
188
+ > Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
189
+ >
190
+ > The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
191
+ >
192
+ > THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
193
+
194
+ ----------------------------------------
195
+
196
+ ## trim-newlines@v5.0.0
197
+
198
+ > Trim newlines from the start and/or end of a string
199
+
200
+ License: MIT
201
+ Author: Sindre Sorhus <sindresorhus@gmail.com> (https://sindresorhus.com)
202
+
203
+ > MIT License
204
+ >
205
+ > Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (https://sindresorhus.com)
206
+ >
207
+ > Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
208
+ >
209
+ > The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
210
+ >
211
+ > THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
package/index.d.ts ADDED
@@ -0,0 +1,6 @@
1
+ import { Parser } from "prettier";
2
+
3
+ export declare const parsers: {
4
+ oxc: Parser;
5
+ "oxc-ts": Parser;
6
+ };