 Seiyaandfisker Cheung
|
97d8115d18
|
Resolve rule of fill violation in JSX and add assertion. (#16700)
* add stricter assertion into fill()
* resolve rule of fill issue. some comments and naming can be problematic.
* cleanup
* update comments
* rename printWhitespace -> printStringOrLine
* refine isValidSeparator() a bit
* remove FIXME comment for fixed issue
* fix idempotency problem in MDX
* add changelog
* rename assertDocFill() -> assertDocFillParts()
* add test for assertDocFillParts()
* replace cleanDoc(doc) === "" by isEmptyDoc(doc)
* Update src/document/utils/assert-doc.js
Co-authored-by: fisker Cheung <lionkay@gmail.com>
---------
Co-authored-by: fisker Cheung <lionkay@gmail.com>
|
2025-01-21 13:09:32 +09:00 |
|
 renovate[bot]andfisker
|
5e610717c0
|
chore(deps): update babel to v7.26.5 (#16989)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: fisker <lionkay@gmail.com>
|
2025-01-20 14:02:23 +08:00 |
|
 renovate[bot]andfisker
|
2c8440ebee
|
chore(deps): update typescript-eslint to v8.13.0 (#16825)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: fisker <lionkay@gmail.com>
|
2024-11-09 17:28:41 +08:00 |
|
fisker Cheung
|
51d943abcf
|
Remove outdated node type "Import" (#16831)
|
2024-11-09 12:00:34 +08:00 |
|
 renovate[bot]andfisker
|
3e4b452b4a
|
chore(deps): update babel to v7.26.2 (#16811)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: fisker <lionkay@gmail.com>
|
2024-10-31 18:24:42 +08:00 |
|
fisker Cheung
|
1abee7352f
|
Build: Add experimental_preserveFormat to @babel/generator (#16804)
|
2024-10-31 00:05:28 +08:00 |
|
 renovate[bot]andfisker
|
9066ba83a2
|
chore(deps): update babel to v7.26.0 (#16795)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: fisker <lionkay@gmail.com>
|
2024-10-29 17:39:52 +08:00 |
|
Seiya
|
94fa86e164
|
loosen computational complexty check for printing fill (#16708)
|
2024-09-30 15:37:36 +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 |
|
 Mark Ameryandfisker Cheung
|
d28d40ac0c
|
Reduce how much text needs to be diffed when computing cursor positions (#15709)
Co-authored-by: fisker Cheung <lionkay@gmail.com>
|
2024-09-27 21:35:32 +08:00 |
|
fisker Cheung
|
d2c415deae
|
Update meriyah to v6 (#16667)
|
2024-09-18 19:48:57 +08:00 |
|
 renovate[bot]andfisker Cheung
|
c067d27673
|
chore(deps): update babel to v7.25.6 (#16627)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: fisker Cheung <lionkay@gmail.com>
|
2024-09-01 02:24:50 +08:00 |
|
 renovate[bot]andfisker Cheung
|
0a85cb07eb
|
chore(deps): update dependency file-entry-cache to v9.1.0 (#16623)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: fisker Cheung <lionkay@gmail.com>
|
2024-08-31 05:22:14 +08:00 |
|
Seiya
|
c921abee76
|
Improve computational time complexity for printing fill() (#16595)
|
2024-08-24 08:23:59 +09:00 |
|
fisker Cheung
|
fb4fa9b532
|
Sort visitorKeys in test (#16606)
|
2024-08-24 01:21:13 +08:00 |
|
 fisker CheungandAlexander Kachkaev
|
c60eb83d59
|
Stop mutate doc.parts when printing fill (#13315)
Co-authored-by: Alexander Kachkaev <alexander@kachkaev.ru>
|
2024-07-26 19:51:00 +08:00 |
|
 renovate[bot]andfisker
|
06ece395be
|
chore(deps): update dependency html-ua-styles to v0.0.8 (#16481)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: fisker <lionkay@gmail.com>
|
2024-07-16 19:40:47 +08:00 |
|
SUZUKI Sosuke
|
5ca2fc9be8
|
Support Angular @let declaration syntax (#16474)
gmail.com>
|
2024-07-13 18:24:57 +09: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
|
6d265ec100
|
Use Array#findLastIndex (#16384)
|
2024-06-18 08:00:16 +09:00 |
|
fisker Cheung
|
c03a12ad2b
|
Enable require-unicode-regexp and regexp/strict rule (#16408)
|
2024-06-18 07:52:54 +09:00 |
|
fisker Cheung
|
8f33827a5c
|
Update typescript-eslint to v8 (#16333)
|
2024-06-13 10:33:45 +08:00 |
|
 
|
adcbc8bedb
|
Fix handlebars path expressions starts with @ (#16358)
Co-authored-by: prince.yadav <prince1.yadav@tataaig.com>
Co-authored-by: fisker <lionkay@gmail.com>
|
2024-06-11 10:08:12 +08:00 |
|
fisker Cheung
|
58d0f9d630
|
Minor tweak to syntax transform script (#16361)
|
2024-06-11 09:18:00 +08:00 |
|
 renovate[bot]andfisker
|
86268eb69a
|
chore(deps): update eslint related dependencies (major) (#16208)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: fisker <lionkay@gmail.com>
|
2024-06-05 11:32:07 +08:00 |
|
George Zahariev
|
105bb7beff
|
Flow: add support for bigint enums (#16268)
|
2024-05-09 11:26:13 +08:00 |
|
 renovate[bot]andfisker
|
36bdf9554b
|
chore(deps): update glimmer to v0.91.1 (#16171)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: fisker <lionkay@gmail.com>
|
2024-05-06 11:37:22 +08:00 |
|
Sam Zhou
|
ae8dcc48f5
|
Component syntax and related language features printing support (#16191)
* Component syntax and related language features printing support
Relevant Flow docs:
- https://flow.org/en/docs/react/component-syntax/
- https://flow.org/en/docs/react/render-types/
* Update issue number
* declare new test as unstable
* fix tests
|
2024-04-04 23:10:00 +09:00 |
|
 Travis Chapmanandfisker Cheung
|
3ba739618a
|
Add unit test coverage for parser-and-printer.js (#16082)
Co-authored-by: fisker Cheung <lionkay@gmail.com>
|
2024-03-09 20:55:26 +09:00 |
|
Sam Zhou
|
f4b3b7b1e2
|
feat: declare namespace printing support for Flow (#16066)
|
2024-02-11 22:28:50 +09:00 |
|
fisker Cheung
|
1dc924f2f2
|
Add jsonc parser (#15831)
|
2024-01-02 10:59:34 +08:00 |
|
fisker Cheung
|
b9d0c993b9
|
Use Array#findLast() (#15805)
|
2023-12-28 23:44:13 +09:00 |
|
fisker Cheung
|
bc0be70cf9
|
Improve loadEditorconfig (#15821)
|
2023-12-18 10:44:29 +08:00 |
|
Alexander Kachkaev
|
1ea2fd059a
|
Add eslint-plugin-simple-import-sort (#15817)
|
2023-12-18 03:34:12 +08:00 |
|
 SUZUKI Sosukeandfisker
|
153ffd5104
|
Support formatting for Angular ICU expression (#15777)
Co-authored-by: fisker <lionkay@gmail.com>
|
2023-12-14 13:01:54 +09:00 |
|
 fisker CheungandSUZUKI Sosuke
|
c97480c9a9
|
Use attributes instead of deprecated assertions (#15758)
Co-authored-by: SUZUKI Sosuke <aosukeke@gmail.com>
|
2023-12-10 17:13:03 +09:00 |
|
fisker Cheung
|
bb68fec819
|
Snapshot display values for html elements (#15616)
|
2023-11-12 22:24:05 +08:00 |
|
fisker Cheung
|
22c423933c
|
Refactor angular control flow block (#15614)
|
2023-11-12 22:15:30 +08:00 |
|
 
|
0176a33db4
|
Support angular control flow (#15606)
Co-authored-by: dweizhe <d.weizhe@anyong.com.tw>
Co-authored-by: fisker <lionkay@gmail.com>
|
2023-11-12 20:01:30 +08:00 |
|
SUZUKI Sosuke
|
14ddf452c4
|
Update @babel/parser to 7.23.0 (#15485)
|
2023-10-08 22:26:13 +08:00 |
|
SUZUKI Sosuke
|
fa8cb85434
|
Support type arguments after typeof (#15466)
|
2023-09-28 12:57:38 +09:00 |
|
 renovate[bot]andSosuke Suzuki
|
772c7b6305
|
chore(deps): update dependency hermes-parser to v0.16.0 (#15456)
* chore(deps): update dependency hermes-parser to v0.16.0
* Update snapshot
---------
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Sosuke Suzuki <sosuke.suzuki@dr-ubie.com>
|
2023-09-25 14:48:21 +09:00 |
|
George Zahariev
|
675490ae55
|
Support as and satisfies expressions for Flow (#15130)
|
2023-09-16 17:28:18 +09:00 |
|
Joseph Frazier
|
825dbe3daa
|
cleanup EditorConfig handling: Remove unused parsing/ignoring of insert_final_newline to insertFinalNewline (#15398)
EditorConfig handling: Remove parsing/ignoring of `insert_final_newline` to `insertFinalNewline`
Now that https://github.com/prettier/prettier/pull/15394 has been
merged, this addresses https://github.com/prettier/prettier/issues/14514#issuecomment-1471056464
|
2023-09-14 12:45:11 -04:00 |
|
Joseph Frazier
|
ae6f9ac25b
|
Move editorconfig-to-prettier package into repo (#15394)
I'd like to vendor/upstream this code because it's been the topic of a handful of issues in its repo over the years, including https://github.com/josephfrazier/editorconfig-to-prettier/issues/9, https://github.com/josephfrazier/editorconfig-to-prettier/issues/21, and most recently https://github.com/josephfrazier/editorconfig-to-prettier/issues/24, and I feel that having it in-repo would be more appropriate (not to mention [the issues in _this_ repo that pertain to editorconfig parsing](https://github.com/search?q=repo%3Aprettier%2Fprettier+editorconfig++&type=issues&state=open)). I've elaborated on my thoughts in https://github.com/josephfrazier/editorconfig-to-prettier/issues/24#issuecomment-1718405985, which I'll quote below:
> hey @Drakmyth, thanks for continuing this conversation! I appreciate all the links you've provided that indicate existing intention and implementations of parsing non-standard/custom properties. It seems like this question might not be as simple as I thought it was previously.
>
> @fisker, thanks for chiming in as well!
>
> As you (@fisker) mentioned in [#16 (comment)](https://github.com/josephfrazier/editorconfig-to-prettier/pull/16#issuecomment-1486130040), this package was originally intended for use by Prettier, and while there are some other dependents (according to [github](https://github.com/josephfrazier/editorconfig-to-prettier/network/dependents?dependent_type=PACKAGE) and [npm](https://www.npmjs.com/package/editorconfig-to-prettier?activeTab=dependents)), Prettier is still the vast majority of the usage this package sees.
>
> Given that, I think it might make sense for this package's code/functionality to move into the Prettier repository, so that any issues relating to it can be discussed where it's used. Personally, I don't use `.editorconfig` with Prettier, so I don't feel especially well-positioned to make decisions on how things should work, especially when [the output of this package is subsequently modified by Prettier](https://github.com/prettier/prettier/blob/7c512651f8814924a042034ff821190c68ef409d/src/config/resolve-editorconfig.js#L13-L16) (I think you had also [mentioned](https://github.com/prettier/prettier/issues/14514#issuecomment-1471056464) this previously, @fisker), indicating that its behavior is already divergent from the intended use case.
>
> What do y'all think of that proposal? If we have https://github.com/prettier/prettier/ vendor this repository's code, then I can archive this repo and direct people to discuss functionality in the Prettier issues.
This also implements @fisker's suggested change to ES module syntax from https://github.com/josephfrazier/editorconfig-to-prettier/pull/16/, as it's required for lint/test etc to pass.
Once this is merged, I'll likely archive the https://github.com/josephfrazier/editorconfig-to-prettier/ repo after adding a note directing any visitors here instead.
---
* Vendor editorconfig-to-prettier.js from https://github.com/josephfrazier/editorconfig-to-prettier/blob/8bb8226c40d7f2c8cf629301576850876c8617d4/index.js
* WIP Use `require` instead of `import`
* Revert "WIP Use `require` instead of `import`"
This reverts commit 4656b727960822b3d9d0659b68c99d8fa9a9ba58.
* Use `export` in editorconfig-to-prettier.js instead of `module.exports`, see https://github.com/josephfrazier/editorconfig-to-prettier/pull/16/
Copied from https://raw.githubusercontent.com/josephfrazier/editorconfig-to-prettier/e245d7051f3e2a1153b82362ed241f3f7482ab18/index.js
* `yarn fix`
* Add tests/unit/editorconfig-to-prettier.js from https://github.com/josephfrazier/editorconfig-to-prettier/pull/16/
Copied from https://raw.githubusercontent.com/josephfrazier/editorconfig-to-prettier/9effd580e7b6722007e1ace9913512e450cda46f/test.js
* tests/unit/editorconfig-to-prettier.js: Fix path to implementation
* WIP Naively convert assert.deepEqual to expect/toStrictEqual, see https://github.com/prettier/prettier/pull/15394#issuecomment-1718623556
* Wrap `test()` around `expect` calls
* XXX Force a middle test to fail to ensure the syntax works
* Revert "XXX Force a middle test to fail to ensure the syntax works"
This reverts commit 947eb34e1175944ebebf0a6271e13af99adcd663.
* `yarn fix`
|
2023-09-14 07:31:45 -04:00 |
|
fisker Cheung
|
12fd8891af
|
Update typescript-eslint to v6 (#14429)
|
2023-07-22 02:35:30 +08:00 |
|
Sosuke Suzuki
|
fa48415617
|
Bump Prettier dependency to 3.0.0
|
2023-07-05 21:50:05 +09: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 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 |
|