fisker Cheung
a35008fb0a
Support shared config that forbids require() ( #15233 )
2023-08-29 16:11:43 +08:00
SUZUKI Sosuke and fisker Cheung
1ce97d13a3
Support TypeScript 5.2 using / await using declaration ( #15321 )
...
* Update `@typescript-eslint` packages
* Install `typescript`
* Tweaks snapshot tests
* Tweaks error files
* Add tests for `using` with types
* Add changelog
* Update misc tests
* Update snapshots
* Revert misc tests and remove `typescript`
* Update changelog_unreleased/typescript/15321.md
Co-authored-by: fisker Cheung <lionkay@gmail.com >
* Fix file name typo
* Keep valid file
* Update tests
* Update changelog_unreleased/typescript/15321.md
Co-authored-by: fisker Cheung <lionkay@gmail.com >
* Remove non-existing filenames.
---------
Co-authored-by: fisker Cheung <lionkay@gmail.com >
2023-08-29 15:51:50 +09:00
SUZUKI Sosuke
90fab608ae
Do not print trailing commas in arrow function type parameter lists in ts code blocks ( #15286 )
...
* Remove trailing comma for `ts` code blocks
* Add changelog
* Support `typescript`
* Update link
* Update tests
2023-08-24 17:02:56 +09:00
fisker Cheung
f75f717c4e
Allow break require() argument ( #15256 )
2023-08-23 15:58:06 +09:00
fisker Cheung
dc3ebe812f
Add test to close #14635 ( #15254 )
2023-08-23 15:57:07 +09:00
Sosuke Suzuki
73668b5973
Bump Prettier dependency to 3.0.2
2023-08-16 00:46:46 +09:00
SUZUKI Sosuke
1b0c756bd6
Print declare and export keywords for nested namespace ( #15249 )
2023-08-15 22:38:07 +09:00
auvred
8a3e73c6c0
Do not add trailing comma for grouped scss comments ( #15217 )
...
* Do not add trailing comma for grouped scss comments
* add changelog
2023-08-11 18:44:05 +09:00
Seiya
bf0b3040be
Break after equal on assignment if rhs is await/yield expression ( #15204 )
...
* add as-is test
* break after equal on assignment if rhs is wait
Discussion: #15196
* rename test file
* add as-is test
* treat YieldExpression
* add tests
* add changelog
* fix a bug
* add test for delegated yield
2023-08-06 13:02:40 +09:00
fisker Cheung
29854ca8da
Fix comments print in IfStatement ( #15076 )
2023-07-29 10:01:46 +08:00
fisker Cheung
12fd8891af
Update typescript-eslint to v6 ( #14429 )
2023-07-22 02:35:30 +08:00
renovate[bot] and fisker
e98083c84f
chore(deps): update dependency vnopts to v2 ( #15114 )
...
* chore(deps): update dependency vnopts to v2
* Update
* Update snapshot
---------
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: fisker <lionkay@gmail.com >
2023-07-22 01:49:00 +09:00
auvred
ceed405395
Add typing to support readonly array properties of AST Node ( #15127 )
...
* Add typing to support `readonly` array properties of AST Node
* add changelog
* fix changelog
* add test case
2023-07-22 01:43:26 +09:00
Pamela Lozano
5b38f6ec4f
Add space before unary minus followed by a function call. ( #15129 )
2023-07-22 01:42:32 +09:00
auvred
7485c45bcc
Add support for Vue "Generic Components" ( #15066 )
...
* add support for vue generic components
* add changelog and remove duplicated test case
* refactor
* rename file + simplify isVueScriptTag usage
* __isVueScriptGeneric -> __isEmbeddedTypescriptGenericParameters
* add link to blog post to changelog
2023-07-16 14:40:12 +09:00
auvred
8da37cce0b
Add parenthesis around leading multiline comment in return statement ( #15037 )
2023-07-16 14:15:08 +09:00
YimingIsCOLD
fa43afcc67
Fix parsing jsx style element with spread attribute ( #15095 )
2023-07-16 13:33:13 +09:00
renovate[bot] and fisker
e15c64e712
chore(deps): update dependency linguist-languages to v7.26.1 ( #15058 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: fisker <lionkay@gmail.com >
2023-07-15 21:07:01 +08:00
fisker Cheung
e2f4ce38f7
Improve cursor tracking ( #14812 )
2023-07-06 09:51:29 +08:00
Sosuke Suzuki
fa48415617
Bump Prettier dependency to 3.0.0
2023-07-05 21:50:05 +09:00
renovate[bot] and fisker Cheung
1a0d9ed800
chore(deps): update dependency cosmiconfig to v8.2.0 ( #14901 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: fisker Cheung <lionkay@gmail.com >
2023-07-04 11:27:37 +08:00
renovate[bot] and fisker
25fa483e35
chore(deps): update dependency typescript to v5.1.5 ( #14896 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: fisker <lionkay@gmail.com >
2023-07-04 11:26:24 +08:00
renovate[bot] and fisker
61804e2516
chore(deps): update dependency espree to v9.6.0 ( #15000 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: fisker <lionkay@gmail.com >
2023-07-03 10:26:24 +08:00
Pieter Vanderwerff and SUZUKI Sosuke
ff7b025197
Support trailing comments in function parameters for all parameter node types ( #14835 )
...
* Support trailing comments in function parameters for all parameter node types
* Create 14835.md
---------
Co-authored-by: SUZUKI Sosuke <aosukeke@gmail.com >
2023-07-03 02:47:13 +09:00
Alex Inkin and Sosuke Suzuki
fcb66949c9
Remove space after pipe name ( #14961 )
...
* Remove space after pipe name
* Add changelog
* Update changelog
* Update changelog
---------
Co-authored-by: Sosuke Suzuki <sosuke.suzuki@dr-ubie.com >
2023-07-03 02:28:17 +09:00
renovate[bot]
bf581d35cf
chore(deps): update dependency acorn to v8.9.0 ( #14951 )
...
Signed-off-by: fisker Cheung <lionkay@gmail.com >
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-06-18 10:43:10 +08:00
db1cdc007f
test(vue): add tests for script lang ( #14912 )
...
Co-authored-by: fisker <lionkay@gmail.com >
Co-authored-by: SUZUKI Sosuke <aosukeke@gmail.com >
2023-06-13 23:02:21 +08:00
Sébastien Règne
54586e00b4
feat: Add name to errors ( #14913 )
...
* feat: Add name to errors.
* feat: Add name to errors.
* Add tests
2023-06-13 13:57:43 +09:00
SUZUKI Sosuke and Nicolò Ribaudo
7ad852636d
Support Import Attributes ( #14863 )
...
* Print import attributes
* Update visitor keys for import attributes
* Update snapshots for visitor-keys
* Update `babel-plugins` tests
* Update import attributes tests
* Update misc tests
* Add changelog
* Enable `importAttributes` and `importAssertions`
* Print ImportAssertion syntax
* Add `babel-plugins` tests
* Add import assertions tests
* Add misc tests for import assertions
* Update changelog
* Fix words
* Use `deprecatedAssertSyntax`
* Update `@babel/parser`
* Use deprecatedAssertSyntax
* Remove needless tests
* Update `@babel/types`
* Update visitor-keys
* Run `yarn dedupe`
* Update src/language-js/print/module.js
Co-authored-by: Nicolò Ribaudo <hello@nicr.dev >
* Address review
---------
Co-authored-by: Nicolò Ribaudo <hello@nicr.dev >
2023-05-31 00:47:12 +09:00
SUZUKI Sosuke
4d7afff735
Tests for await using syntax ( #14862 )
...
* Add tests for `await using`
* Add tests for `await using` from Babel
* Add changelog
* Fix changelog
2023-05-29 20:50:18 +09:00
SUZUKI Sosuke
c1296105f3
Update @babel/parser to 7.22.0 ( #14861 )
...
* Update `@babel/parser` and `@babel/types`
* Update error message snapshots
* Run `yarn dedupe`
* Update `@babel/generator`
* Install new `@babel/parser`
2023-05-27 22:06:34 +09:00
SUZUKI Sosuke
6cff2148a3
Improve formatting for constraints on type parameters ( #14858 )
2023-05-26 22:04:43 +08:00
Pieter Vanderwerff
8f0e934367
Consider Flow type cast expressions when expanding call arguments ( #14836 )
2023-05-24 19:41:02 +08:00
ot07
9b19afda8a
TypeScript: Fix issue with double semicolon caused by // prettier-ignore on a call signature line ( #14830 )
2023-05-19 10:23:13 +08:00
fisker Cheung
c0f6f2da8b
Clear filename before print ignored file code to screen ( #14794 )
2023-05-16 20:40:18 +08:00
fisker Cheung
05a32d377f
Switch string-width to eastasianwidth ( #14793 )
2023-05-06 16:56:49 +08:00
8108864d7f
Fix empty line check between array elements ( #14736 )
...
Co-authored-by: ☀️ <sol@solfox.online >
Co-authored-by: fisker Cheung <lionkay@gmail.com >
2023-05-05 15:17:11 +08:00
fisker Cheung and SUZUKI Sosuke
54404fc96f
Remove plugin search feature ( #14759 )
...
Co-authored-by: SUZUKI Sosuke <aosukeke@gmail.com >
2023-05-05 10:31:25 +08:00
fisker Cheung
b86e42cc84
Ignore .gitignored files ( #14731 )
2023-05-04 17:20:05 +08:00
Anders Kaseorg and fisker
dcc081db0d
Don’t expand globs via symbolic links ( #14627 )
...
Co-authored-by: fisker <lionkay@gmail.com >
2023-05-04 17:01:20 +08:00
SUZUKI Sosuke
f624507259
Print line breaking after file path with errors ( #14788 )
2023-05-04 17:51:14 +09:00
renovate[bot] and fisker Cheung
4562c116b1
Update dependency hermes-parser to v0.11.1 ( #14780 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: fisker Cheung <lionkay@gmail.com >
2023-05-04 15:05:21 +08:00
Panagiotis Vekris
2eaf5763e9
Support type guards in Flow ( #14767 )
2023-04-27 14:09:17 +08:00
Seiya and fisker Cheung
7f64e920de
Make curried arrow function and normal arrow function consistent ( #14633 )
...
Co-authored-by: fisker Cheung <lionkay@gmail.com >
2023-04-27 11:01:35 +08:00
Aleksandr Vladykin
27f7723bf9
Fix: keep parens around TSInstantiationExpression followed by a prop access ( #14701 )
2023-04-27 10:50:18 +08:00
fisker Cheung
d6f30ad3d9
Build: add default exports to ESM bundles ( #14757 )
2023-04-25 15:37:56 +08:00
SUZUKI Sosuke and fisker Cheung
31583ce14c
Run tests on Node.js 20 ( #14721 )
...
Co-authored-by: fisker Cheung <lionkay@gmail.com >
2023-04-22 22:21:02 +08:00
renovate[bot] and fisker Cheung
ab9792cc00
Update dependency flow-parser to v0.204.0 ( #14710 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: fisker Cheung <lionkay@gmail.com >
2023-04-22 22:18:48 +08:00
SUZUKI Sosuke and fisker Cheung
cfb3b87efb
Fix trailing coma print in type prameters, improve jsx parse ( #14688 )
...
Co-authored-by: fisker Cheung <lionkay@gmail.com >
2023-04-21 13:18:29 +08:00
fisker Cheung
b5043bcca5
Stop formatting unknown code with babel parser ( #14718 )
2023-04-21 13:12:11 +08:00