Commit Graph
3056 Commits
Author SHA1 Message Date
Sosuke Suzuki a8869bef55 Merge branch 'main' into next 2022-12-08 22:00:17 +09:00
Sosuke Suzukiandfisker Cheung 1cf760a184 Support decorator auto accessors syntax (#13919)
* Install new ts-estree

* Print auto accessor properties

* Support edge cases

* Misc tests

* Add tests for auto accessor with type annotations

* Add changelog

* Update changelog_unreleased/typescript/13919.md

Co-authored-by: fisker Cheung <lionkay@gmail.com>

* Update changelog_unreleased/typescript/13919.md

Co-authored-by: fisker Cheung <lionkay@gmail.com>

* Print semicolon for accessor and add tests

* Add TODO comment

* Add  to properties list

* Address review

Co-authored-by: fisker Cheung <lionkay@gmail.com>
2022-12-05 20:50:15 +09:00
fisker Cheung 3e49250841 Update flow-parser to v0.194.0 (#13928) 2022-12-05 10:11:01 +08:00
fisker Cheung 1f9206f219 Merge branch 'main' into next
# Conflicts:
#	src/language-js/print/statement.js
2022-12-01 18:00:40 +08:00
fisker Cheung e4240aeaf0 Add tests for keyword class property (#13927) 2022-12-01 17:03:37 +08:00
fisker Cheung 9676a23ab7 Fix test 2022-12-01 16:10:07 +08:00
fisker Cheung 817460b93a Merge branch 'main' into next
# Conflicts:
#	netlify.toml
2022-12-01 15:22:35 +08:00
fisker Cheung e82ca7c379 Extract printEnumMembers (#13920) 2022-12-01 10:09:45 +08:00
fisker Cheung b0c3102996 Minor refactor to array item print (#13913) 2022-12-01 10:09:15 +08:00
fisker Cheung 925fa3f8ec Use AstPath getters (#13922) 2022-12-01 10:07:41 +08:00
fisker Cheung f8f0c41b20 TypeScript: Throw errors for invalid modifiers (#13877)
Fixes https://github.com/prettier/prettier/issues/9760
2022-11-25 17:52:42 +08:00
fisker Cheung d98e4efc9f Update eslint-plugin-regexp to v1.11.0 (#13888) 2022-11-25 10:45:05 +08:00
4a1e32a9de Fixed scss function arguments on different lines in maps #9128 (#9184)
Co-authored-by: agamkrbit <agamkrbit123@gmail.com>
Co-authored-by: fisker Cheung <lionkay@gmail.com>
2022-11-24 17:46:29 +08:00
fisker Cheung ce6ee07f17 Move printTupleType into array.js (#13880) 2022-11-24 11:25:52 +08:00
fisker Cheung 2f4233bc85 Remove an empty String#replace call (#13889) 2022-11-24 10:01:57 +08:00
fisker Cheung ff43f661ed Update browserslist (#13884) 2022-11-23 19:27:45 +08:00
Yiming Panandfisker Cheung bcbc6daeec Fix union type should be printed in the multi-line variant when there are comments (#13860)
Co-authored-by: fisker Cheung <lionkay@gmail.com>
2022-11-23 11:33:45 +08:00
fisker Cheung 9689357e58 Enable unicorn/no-typeof-undefined rule (#13878) 2022-11-22 14:50:24 +08:00
Sosuke Suzuki fd376000e9 Update @typescript-eslint/typescript-estree to support satisfies (#13872)
* Update to `5.43.1-alpha.22`

* Update snapshots for satisfies

* Update changelog

* Remove `@ts-expect-error` comment

* Yarn dedupe

* Update to stable version

* Fix changelog

* Fix changelog
2022-11-22 15:19:28 +09:00
renovate[bot]andfisker 6959f30a81 Update dependency eslint-plugin-unicorn to v45 (#13876)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: fisker <lionkay@gmail.com>
2022-11-21 23:41:27 +08:00
fisker Cheung f9a71da439 Add CodeQL Analysis workflow (#13851) 2022-11-20 15:35:24 +08:00
fisker Cheung decc3bae65 Enable regexp/prefer-lookaround rule (#13859) 2022-11-20 15:35:03 +08:00
fisker Cheung 24b2ce5d5b Auto evaluate ts.SyntaxKind (#13855) 2022-11-20 15:33:38 +08:00
fisker Cheung 76bf81b5fa Update SyntaxKind 2022-11-18 14:52:22 +08:00
fisker Cheung 68ea881498 Update typescript to v4.9 (#13852) 2022-11-18 09:54:48 +08:00
fisker Cheung b697a596a6 TypeScript: Throw errors for invalid modifier on type parameter (#13853) 2022-11-18 09:54:23 +08:00
fisker Cheung 39e5466007 Support "Explicit Resource Management" proposal (#13752) 2022-11-14 19:45:27 +08:00
fisker Cheung 0d808c5ad8 Remove outdated range fix (#13736) 2022-11-14 19:45:08 +08:00
fisker Cheung e83bd73d88 Add test for massageAst (#13739) 2022-11-14 19:44:41 +08:00
fisker Cheung a66236a3e1 TypeScript: Throw errors for 'declare' in accessors (#13770) 2022-11-14 19:44:14 +08:00
fisker Cheung 68a13957f4 Use optional chaining (#13824) 2022-11-14 19:43:08 +08:00
fisker Cheung 1de926ac79 Support "Import Reflection" proposal (#13771) 2022-11-07 09:49:35 +08:00
fisker Cheung 9eafbf6854 Enable unicorn/prefer-string-replace-all rule (#13788) 2022-11-06 19:55:24 +08:00
Sosuke Suzuki fb55c39c00 Remove needless conditions for YeildExpression in needs-parens (#13790)
Remove needless condition
2022-11-06 14:06:46 +09:00
fisker Cheung 8ae1fb69bd Enable regexp/no-useless-non-capturing-group rule (#13787) 2022-11-04 11:04:02 +08:00
Sosuke Suzuki ff0529ac2e Backport "Support TS4.9 satisfies operator (#13764)" (#13783) 2022-11-04 10:35:50 +08:00
fisker Cheung 59eda43d71 Use optional chaining where possible (#13773) 2022-11-03 14:23:07 +08:00
fisker Cheung 6c688b7e28 Infer source type from filepath (#13772) 2022-11-02 19:00:08 +08:00
fisker Cheung bf6cf1c96c Extract language-json (#13742) 2022-11-02 10:32:46 +08:00
Sosuke Suzuki 67e121a20b Add more tests for satisfies (#13775) 2022-11-02 09:45:34 +08:00
Sosuke Suzuki 931661a7aa Support TS4.9 satisfies operator (#13764)
* Print `satisfies` operators

* Add tests

* Add changelog

* Add `hug-args` tests

* Add more tests for TSAsExpression

* Add tests for argument expansion

* Add tests for template literal

* Add tests for ternary

* Add tests for export default satisfies

* Add tests for no lookahead tokens

* Add more tests for needs parens 1

* Add more tests for needs-parens 2

* Add more tests for needs parens 3

* Add tests for needs parens 4

* Add comment

* Add more tests for needs parens 5

* Add more tests for needs parens 6

* Fix test cases

* Fix snapshots

* Fix unstable tests

* No parens for mixed

* Merge printing logic

* More reuse `isTSTypeExpression`
2022-11-01 19:08:55 +09:00
fisker Cheung a3dfbf70f7 Build: more powerful esbuild evaluate plugin (#13724) 2022-10-30 11:14:51 +08:00
fisker Cheung 40f3bced17 Update babel to v7.20.0 (#13733) 2022-10-29 16:28:52 +08:00
fisker Cheung 098b8411bb Use Object.hasOwn in hasPragma (#13726) 2022-10-27 09:27:36 +08:00
fisker Cheung 106c009245 Add __debug apis to cjs version (#13731) 2022-10-26 10:55:37 +08:00
fisker Cheung b7223354a1 Make resolveParser work like v2 (#13732) 2022-10-26 10:55:22 +08:00
fisker Cheung 930cf29d15 Share fast-glob module between core and CLI (#13725) 2022-10-26 10:39:40 +08:00
Mark Avery 284cdf4c3d Style: updated failure message to be more formal (#11369) 2022-10-25 12:26:41 +03:00
fisker Cheung 81b8726d0f Make flatContents in ifBreak default to "" (#13700) 2022-10-25 10:20:44 +08:00
Sosuke Suzuki bb04cf072e Merge branch 'main' into next 2022-10-25 01:42:41 +09:00