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 |
|
 renovate[bot]andfisker 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 |
|
 Jordan Brownandfisker
|
f95b0c0296
|
Support Flow Mapped Types (#14619)
Co-authored-by: fisker <lionkay@gmail.com>
|
2023-04-07 09:56:18 +08:00 |
|
fisker Cheung
|
78b0a6bb80
|
Fix plugin resolve logic (#14663)
|
2023-04-04 10:53:50 +08:00 |
|
fisker Cheung
|
42584d48d2
|
Remove outdated visitor key for TSAbstractMethodDefinition (#14662)
|
2023-04-04 09:07:29 +08:00 |
|
fisker Cheung
|
4965a790cb
|
Forbid decorators on object property (#14661)
|
2023-04-04 09:07:15 +08:00 |
|
fisker Cheung
|
75cd9992f0
|
Recognize the new search element (#14615)
|
2023-03-29 09:14:24 +08:00 |
|
 Sam Zhouandfisker
|
b7ab34073e
|
Support conditional type and infer type in Flow (#14573)
Co-authored-by: fisker <lionkay@gmail.com>
|
2023-03-28 09:04:35 +08:00 |
|
fisker Cheung
|
fc81cc13cb
|
Fix plugin loading cache (#14576)
|
2023-03-24 13:19:18 +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
|
3fc6298c0e
|
Stop evaluate graphql visitor keys (#14504)
|
2023-03-13 18:23:56 +08:00 |
|
fisker Cheung
|
4585fb0512
|
Add utilities to get descendants (#14470)
|
2023-03-13 09:12:48 +08:00 |
|
fisker Cheung
|
595a2beebc
|
Add WhitespaceUtils (#13923)
|
2023-02-24 15:41:20 +08:00 |
|
fisker Cheung
|
47830dbedb
|
Cleanup visitor keys for DeclareInterface and InterfaceDeclaration (#14272)
|
2023-02-21 16:36:05 +08:00 |
|
fisker Cheung
|
be84156d43
|
Treat hashbang as comment in babel parser(like other parsers) (#14302)
|
2023-02-08 15:58:25 +08:00 |
|
fisker Cheung
|
39dadc9fad
|
Stop checking invalid properties (#14274)
|
2023-02-03 11:12:48 +08:00 |
|
fisker Cheung
|
6eb9359b0e
|
Forbid initializer of TSPropertySignature (#14264)
|
2023-01-31 10:57:16 +08:00 |
|
fisker Cheung
|
3cec460008
|
Remove printing modifiers of TSEnumDeclaration (#14265)
|
2023-01-31 10:07:02 +08:00 |
|
fisker Cheung
|
cf421a9eb0
|
Remove printing modifiers of TSModuleDeclaration (#14266)
|
2023-01-31 09:25:04 +08:00 |
|
 renovate[bot]andfisker Cheung
|
1dafaa0392
|
Update flow-parser to v0.198 (#14182)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: fisker Cheung <lionkay@gmail.com>
|
2023-01-28 09:56:49 +08:00 |
|
 fisker CheungandSosuke Suzuki
|
01a9241959
|
Improve assertDoc (#13917)
Co-authored-by: Sosuke Suzuki <aosukeke@gmail.com>
|
2023-01-11 11:22:10 +08:00 |
|
Sosuke Suzuki
|
812ceb7657
|
Update visitor-keys tests
|
2022-12-08 22:03:33 +09:00 |
|
fisker Cheung
|
3e49250841
|
Update flow-parser to v0.194.0 (#13928)
|
2022-12-05 10:11:01 +08:00 |
|
fisker Cheung
|
e83bd73d88
|
Add test for massageAst (#13739)
|
2022-11-14 19:44:41 +08:00 |
|
fisker Cheung
|
9eafbf6854
|
Enable unicorn/prefer-string-replace-all rule (#13788)
|
2022-11-06 19:55:24 +08:00 |
|
fisker Cheung
|
bf6cf1c96c
|
Extract language-json (#13742)
|
2022-11-02 10:32:46 +08:00 |
|
fisker Cheung
|
40f3bced17
|
Update babel to v7.20.0 (#13733)
|
2022-10-29 16:28:52 +08:00 |
|
fisker Cheung
|
0e06cc4d62
|
Minor refactor to stripTrailingHardline (#13695)
|
2022-10-21 23:33:33 +08:00 |
|
fisker Cheung
|
927a214ca3
|
Refactor MDX print (#13640)
|
2022-10-17 10:10:35 +08:00 |
|
fisker Cheung
|
3ca842d81c
|
Update @angular/compiler to v14 (#13609)
|
2022-10-11 11:26:30 +08:00 |
|
fisker Cheung
|
bb2104dd7c
|
Support optional chaining in .at() transform (#13528)
|
2022-09-26 22:54:17 +08:00 |
|