Commit Graph
69 Commits
Author SHA1 Message Date
fisker Cheung e3b8a16c7f Remove support for "minimal" Pipeline Operator (#16704) 2024-09-29 19:33:25 +08:00
fisker Cheung 07b468917e Remove blank lines between imports (#16450) 2024-09-29 17:56:37 +08:00
fisker Cheung 4b9c16703c Remove support for DecimalLiteral (#16643) 2024-09-29 17:13:12 +08:00
renovate[bot]andfisker bfcfdccdf8 chore(deps): update babel to v7.24.8 (#16472)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: fisker <lionkay@gmail.com>
2024-07-12 16:15:45 +08:00
fisker Cheung c03a12ad2b Enable require-unicode-regexp and regexp/strict rule (#16408) 2024-06-18 07:52:54 +09:00
liuxingbaoyu 32c4cd3fdb Remove unused Babel parser plugins (#16392) 2024-06-13 08:08:47 +08:00
renovate[bot]andfisker c3d0b7f419 chore(deps): update typescript-eslint to v7.13.0 (#16376)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: fisker <lionkay@gmail.com>
2024-06-11 11:30:23 +08:00
fisker Cheung 55181669c5 Always enable recordAndTuple (#16264) 2024-05-11 09:01:35 +08:00
renovate[bot]andfisker e7cfd62d78 chore(deps): update typescript-eslint to v6.21.0 (#16040)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: fisker <lionkay@gmail.com>
2024-02-06 19:17:29 +08:00
fisker Cheung 1e1942dc46 Remove outdated babel reasonCode (#15929) 2024-01-16 10:27:02 +08:00
Alexander Kachkaev 1ea2fd059a Add eslint-plugin-simple-import-sort (#15817) 2023-12-18 03:34:12 +08:00
SUZUKI Sosuke 4b432496df Support deferred import evaluation and source phase import syntax (#15487) 2023-10-09 08:52:48 +09:00
SUZUKI Sosuke edfe46051f Support optional chaining assignment (#15488) 2023-10-09 08:36:11 +09:00
Sosuke Suzuki fa48415617 Bump Prettier dependency to 3.0.0 2023-07-05 21:50:05 +09:00
ZHAO Jin-Xiang 6e6b16771d feat: enable strict type checking (#14984) 2023-07-03 01:54:22 +09:00
SUZUKI SosukeandNicolò 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
fisker Cheung 4965a790cb Forbid decorators on object property (#14661) 2023-04-04 09:07:15 +08:00
Seiyaandfisker e154250e19 Format TypeScript expressions in Vue template attributes (#14506)
Co-authored-by: fisker <lionkay@gmail.com>
2023-03-24 09:10:49 +08:00
fisker Cheung 6d21de11fd Update plugin build system (#14571) 2023-03-24 08:44:25 +08:00
fisker Cheung e2c5da38f4 Fix builtin plugins (#14502) 2023-03-13 12:34:56 +08:00
fisker Cheung 88b67b57e4 Stop manipulate options in parsers (#14463) 2023-03-07 17:43:22 +08:00
fisker Cheung 24652d9186 Support babel v7.21 (#14391) 2023-02-24 08:59:53 +08:00
fisker Cheung 5d04f01c82 Make tryCombinations throws AggregateError(like) error (#14388) 2023-02-21 16:34:42 +08:00
fisker Cheung 4fb03a7f2a Remove dynamic imports (#14369) 2023-02-18 11:28:58 +08:00
fisker Cheung 282a4019c7 Extract common/util.js to utils/ (#14329) 2023-02-13 10:17:39 +08:00
fisker Cheung d6d77b908b Throw errors for index signature with declare (#14316) 2023-02-10 17:39:56 +08:00
fisker CheungandGeorgii Dolzhykov add84358d8 Remove flow plugin from babel parser (#14314)
Co-authored-by: Georgii Dolzhykov <thorn.mailbox@gmail.com>
2023-02-10 17:27:17 +08:00
fisker Cheung b96dc57cd3 Replace getNextNonSpaceNonCommentCharacterIndex with getNextNonSpaceNonCommentCharacterIndexWithStartIndex internally (#14319) 2023-02-09 16:32:10 +08:00
fisker Cheung 5d4380372e TypeScript: Forbid invalid tuple label (#14256) 2023-02-06 10:44:46 +08:00
fisker Cheung 39dadc9fad Stop checking invalid properties (#14274) 2023-02-03 11:12:48 +08:00
fisker Cheung 0918a24ceb Remove print preprocess from JS parser (#14156) 2023-01-14 10:29:07 +08:00
fisker Cheung f2701a3d6f TypeScript: Throw errors for invalid modifiers (#13929) 2022-12-12 16:38:45 +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 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 1de926ac79 Support "Import Reflection" proposal (#13771) 2022-11-07 09:49:35 +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
Georgii Dolzhykov e67d8d6c1e Remove support for Flow comment types (#13687) 2022-10-23 01:00:01 +03:00
fisker Cheung 86424ccc22 Remove the parsers argument for plugin.parsers.parse (#13268) 2022-08-16 09:52:27 +08:00
fisker Cheung a6661e850c Use import() in parsers (#13261) 2022-08-10 19:32:44 +08:00
fisker Cheung a85f38f096 Merge branch 'main' into next
# Conflicts:
#	.github/workflows/dev-test.yml
#	jest.config.mjs
#	package.json
#	scripts/vendors/vendor-meta.json
#	scripts/vendors/vendors.mjs
#	src/cli/format.js
#	src/cli/options/create-minimist-options.js
#	src/cli/options/parse-cli-arguments.js
#	src/cli/usage.js
#	src/cli/utils.js
#	src/common/create-ignorer.js
#	src/common/load-plugins.js
#	src/config/resolve-config.js
#	src/index.js
#	src/language-css/utils/css-units.evaluate.js
#	src/language-html/ast.js
#	src/language-html/print-preprocess.js
#	src/language-html/utils/index.js
#	src/main/multiparser.js
#	tests/format/markdown/auto-link/jsfmt.spec.js
#	tests/integration/__tests__/__snapshots__/config-resolution.js.snap
#	tests/integration/__tests__/__snapshots__/with-config-precedence.js.snap
#	tests/integration/__tests__/file-info.js
#	yarn.lock
2022-04-25 14:28:27 +08:00
Sosuke Suzuki a4cba80dc0 Allow formatting for Vue template expression written in TypeScript (#12584)
* Support TS expression in vue SFC

* Add changelog

* Add `__ts_expression`

* Add `__vue_ts_expression`

* Add tests

* Do not use `ast.walk`

* Address review

* Add `__vue_ts_event_binding`

* Fix
2022-04-17 13:12:19 +09:00
fisker Cheung 717edf520f Inline require() parsers (#12527) 2022-03-28 09:41:08 +08:00
fisker Cheung b11044e58c Merge branch 'main' into next
# Conflicts:
#	scripts/vendors/vendor-meta.json
#	src/cli/options/get-options-for-file.js
#	src/cli/options/parse-cli-arguments.js
#	src/language-js/print/class.js
#	src/language-js/print/type-annotation.js
#	src/language-js/printer-estree.js
#	src/main/options-normalizer.js
#	vendors/tempy.js
2022-03-07 11:18:46 +08:00
Sosuke Suzukiandfisker Cheung 199a1bb389 Support decorator auto accessors syntax (#12299)
* Handle `ClassAccessorProperty`

* Disable file

* Add `babel-plugins` tests

* Add more tests

* Fix tests

* Fix typo

* Add changelog

* Fix printing for no-semi

* Update statement.js

Co-authored-by: fisker Cheung <lionkay@gmail.com>
2022-03-02 16:00:50 +09:00
fisker Cheung 52c9a20e2c Merge branch 'main' into next
# Conflicts:
#	package.json
#	src/cli/index.js
#	tests/config/install-prettier.js
#	tests/format/yaml/block-literal/jsfmt.spec.js
#	tests/integration/__tests__/file-info.js
#	yarn.lock
2022-02-21 16:12:59 +08:00
fisker Cheung 54835025d5 Migrate JS language to ES Module (#12342) 2022-02-21 15:53:02 +08:00
Sosuke Suzuki 8c49fd0f6f Support destructuring private proposal (#12276)
* Enable `destructuringPrivate` plugiin

* Add tests

* Add changelog

* Add more tests
2022-02-14 11:28:47 +09:00