Skip to content

Commit 449c455

Browse files
Merge pull request #455 from preactjs/oxfmt
chore: switch prettier -> oxfmt
2 parents 9aabd5e + f8a771e commit 449c455

10 files changed

Lines changed: 440 additions & 102 deletions

File tree

.editorconfig

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,14 @@ charset = utf-8
77
trim_trailing_whitespace = true
88
insert_final_newline = true
99

10-
[{*.json,.*rc,*.yml}]
10+
[{*.json,.*rc}]
1111
indent_style = space
1212
indent_size = 2
1313
insert_final_newline = false
1414

15+
[*.yml]
16+
indent_style = space
17+
indent_size = 2
18+
1519
[*.md]
1620
trim_trailing_whitespace = false

.oxfmtrc.json

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"$schema": "./node_modules/oxfmt/configuration_schema.json",
3+
"printWidth": 80,
4+
"trailingComma": "none",
5+
"singleQuote": true,
6+
"useTabs": true,
7+
"tabWidth": 2,
8+
"ignorePatterns": ["**/*.json", "**/*.html", "**/*.md", "**/*.yml"]
9+
}

CHANGELOG.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -297,7 +297,6 @@
297297
* [#270](https://github.com/preactjs/preact-render-to-string/pull/270) [`5c6877d`](https://github.com/preactjs/preact-render-to-string/commit/5c6877d13d60b4cdd87632ac3052b006207568ff) Thanks [@developit](https://github.com/developit)! - improve unmount option hook call performance
298298

299299
- [#278](https://github.com/preactjs/preact-render-to-string/pull/278) [`8cf7cef`](https://github.com/preactjs/preact-render-to-string/commit/8cf7cef0e96b3e48ffea5fcf4f76db6410de8346) Thanks [@JoviDeCroock](https://github.com/JoviDeCroock)! - Improve performance by
300-
301300
- storing the void_elements in a Set
302301
- hoisting the `x-link` regex
303302
- remove case-insensitive from regexes and calling `.toLowerCase()` instead

0 commit comments

Comments
 (0)