David Sherret
ca4385ad68
fix: upgrade swc via deno_ast 0.16 ( #14930 )
2022-06-22 15:42:08 -04:00
David Sherret
5fffb77d06
feat(fmt): remove some unnecessary parens in types ( #14841 )
2022-06-12 21:00:21 -04:00
David Sherret
b4fabedd79
fix(fmt): prevent infinite loop when formatting certain binary expressions ( #14725 )
2022-05-25 19:55:31 -04:00
David Sherret
671f56f8ff
fix: improve formatting jsdocs with asterisk as first char on line ( #14446 )
2022-05-01 12:37:23 -04:00
David Sherret
bf804d3fff
fix(fmt): regression where some short if stmt headers being split on multiple lines ( #14292 )
...
Closes #14291
2022-04-18 14:32:16 -04:00
David Sherret
a4c1e1bdcf
fix: upgrade to swc_ecmascript 0.143 ( #14238 )
2022-04-08 12:31:47 -04:00
David Sherret
03c71a8b4a
chore: upgrade dprint-core to 0.54.1 ( #14146 )
2022-03-29 13:33:00 -04:00
David Sherret
35cdf4926d
chore: update dprint internally to 0.24.1 ( #14141 )
2022-03-28 12:07:14 -04:00
David Sherret
877c0b724e
chore: use rustfmt
cli via dprint for faster format ( #13735 )
2022-02-21 12:47:08 -05:00
David Sherret
1ec07368b4
fix(fmt): markdown formatting should not remove backslashed backslash at start of paragraph ( #13429 )
2022-01-20 01:04:33 +01:00
Ryan Dahl
ce52bfc59c
Add LSP benchmark mimicking the one on quick-lint-js ( #13365 )
2022-01-18 06:58:50 -05:00
Ryan Dahl
39ea4abff4
feat: auto-discover config file ( #13313 )
2022-01-17 20:10:17 -05:00
Andreu Botella
9def44979a
fix(cli): Don't strip shebangs from modules ( #13220 )
...
Deno's module loader currently strips a shebang if a module file
starts with one. However, this is no longer necessary, since there is
a stage-3 TC39 that adds support for shebangs (or "hashbangs") to the
language (https://github.com/tc39/proposal-hashbang ), and V8, `tsc`
and `swc` all support it.
Furthermore, stripping shebangs causes a correctness bug with JSON
modules, since a JSON file with a shebang should not parse as a JSON
module, yet it does with this stripping. This change fixes this.
2022-01-16 16:48:32 +01:00
David Sherret
19c8cd3a45
fix: upgrade swc_ecmascript to 0.103 ( #13284 )
2022-01-04 17:02:56 -05:00
Kitson Kelly
345f0fbe5c
feat(cli): update to TypeScript 4.5 ( #12410 )
...
Co-authored-by: Bartek Iwańczuk <biwanczuk@gmail.com>
2021-12-10 09:12:21 +11:00
David Sherret
ddfba7d8ca
fix(fmt): markdown formatting was incorrectly removing some non-breaking space html entities ( #12818 )
2021-11-19 12:54:41 -05:00
Geert-Jan Zwiers
58e7b290dc
fix(test): support typechecking docs with CRLF line endings ( #12748 )
2021-11-15 09:58:04 -05:00
David Sherret
0ec151b8cb
chore: upgrade deno_ast to 0.5.0 ( #12595 )
2021-11-01 16:22:27 -04:00
David Sherret
43cd0459b9
fix(lsp): formatting should error on certain additional swc diagnostics ( #12491 )
2021-10-21 10:18:18 -04:00
David Sherret
0a7ba33ed1
fix(fmt): keep parens for JS doc type assertions ( #12475 )
2021-10-18 10:21:42 -04:00
David Sherret
62f6865f7c
fix: fmt should not remove parens around sequence expressions ( #12461 )
2021-10-16 14:57:45 -04:00
David Sherret
9b1f0c8ba3
chore: upgrade crates based on deno ast 0.3 ( #12403 )
2021-10-12 09:58:04 -04:00
Bartek Iwańczuk
4e3068be63
Revert "fix(cli): ensure empty lines don't count towards coverage ( #11957 )" ( #12348 )
...
This reverts commit d5b38a9929
.
2021-10-06 19:28:28 +02:00
Casper Beyer
d5b38a9929
fix(cli): ensure empty lines don't count towards coverage ( #11957 )
2021-10-06 07:05:18 +02:00
Bartek Iwańczuk
0dbeb774ba
feat(fmt): add support for configuration file ( #11944 )
...
This commit adds support for configuration file for "deno fmt"
subcommand. It is also respected by LSP when formatting
files.
Example configuration:
{
"fmt": {
"files": {
"include": ["src/"],
"exclude": ["src/testdata/"]
},
"options": {
"useTabs": true,
"lineWidth": 80,
"indentWidth": 4,
"singleQuote": true,
"textWrap": "preserve"
}
}
}
2021-09-13 20:19:10 +02:00
David Sherret
2c77681770
chore: upgrade third_party for dprint 0.17 ( #11930 )
2021-09-06 12:44:07 -04:00
David Sherret
987716798f
feat(fmt): add basic JS doc formatting ( #11902 )
2021-09-02 18:28:12 -04:00
Bartek Iwańczuk
c84532b6d5
chore: upgrade crates ( #11894 )
...
Co-authored-by: David Sherret <dsherret@gmail.com>
2021-09-02 17:38:19 +02:00
Ryan Dahl
163f2ef571
fix: parse error when transpiling code with BOM ( #11688 )
...
Co-authored-by: David Sherret <dsherret@gmail.com>
2021-08-16 09:28:29 +02:00
David Sherret
15a763152f
chore: move test files to testdata directory ( #11601 )
2021-08-11 10:20:47 -04:00
David Sherret
299c7cfe54
feat(fmt): format top-level JSX elements/fragments with parens when multi-line ( #11582 )
2021-08-04 23:17:32 -04:00
David Sherret
d7d452efc1
chore: format toml files internally ( #11563 )
2021-08-02 10:19:27 -04:00
David Sherret
899470addc
chore: update dprint-plugin-json to remove duplicate dprint-core dependency ( #11209 )
2021-07-01 11:22:28 -04:00
David Sherret
a9c58d5e51
chore: upgrade dprint 0.13.1 to fix CI. ( #10513 )
2021-05-06 13:22:24 +09:00