Commit Graph
39 Commits
Author SHA1 Message Date
fisker Cheung 9b7ba8a42c Style: Use dotAll regexp (#10864) 2021-05-18 02:44:21 +08:00
fisker Cheung 90ea7e4a4f Use fsPromise in getFileContentOrNull (#10859) 2021-05-16 12:42:15 +08:00
fisker Cheung 230428f34b Add consistent-negative-index-access rule (#10569) 2021-03-20 14:06:12 +02:00
Georgii Dolzhykov ca4a51dcd9 build: fix tree shaking for front matter related functions (#10314) 2021-02-15 05:29:15 +02:00
fisker Cheung a98292e417 Simplify frontMatter parse (#10136)
* Simplify frontMatter parse

* Rewrite regex to @thorn0's version
2021-01-27 01:11:53 +02:00
fisker e8a5d867cd Use ... instead of .concat() 2021-01-26 09:54:20 +08:00
Mike 3dfac3d71b Support YAML document end marker in front matter (#9878) 2021-01-25 17:09:22 +02:00
fisker Cheung 7b24335064 Refactor: Use Doc[] instead of concat() (#9993) 2021-01-11 13:46:05 +08:00
fisker Cheung 85abe0fccd Refactor graphql parser to use tryCombinations (#9928) 2020-12-18 19:20:20 +08:00
fisker Cheung c0fbd75288 Fix empty front matter formatting (#9791) 2020-11-30 18:10:09 +08:00
fisker Cheung d31ebf4619 Test: Improve coverage (#8811) 2020-08-21 09:43:24 +08:00
fisker Cheung 97b899b7bc Improve multiparser handle finalNewLine and frontMatter (#8595) 2020-08-16 16:12:20 +08:00
fisker Cheung 7c318cc677 Support .prettierrc.json5 config file (#8957) 2020-08-15 21:16:49 +08:00
fisker Cheung 44bae94647 Support dynamic languages in front matter (#8381) 2020-05-26 16:18:39 +08:00
fisker Cheung 207d5245c5 Build: exclude index.js from bin-prettier (#8119) 2020-05-06 18:43:04 +08:00
Georgii Dolzhykov 9dad95b35f Bump Prettier dependency to 2.0.0 2020-03-21 22:09:54 +02:00
fisker Cheung 2bfaa7c2cf Simplify createLanguage (#7509) 2020-02-17 16:39:08 +02:00
fisker Cheung e7f3cfd684 Simplify getLast (#7267) 2020-01-22 17:30:25 +03:00
Georgii Dolzhykov 37a7e9cd42 Merge branch 'master' into next 2020-01-22 14:55:22 +02:00
fisker Cheung c97e96d31e Use lodash/partition (#7265) 2020-01-20 15:43:52 +03:00
fisker Cheung 4abd19ae14 Use array destructuring for some simple case (#7330)
* Use array destructuring for some simple case

* Revert [0]
2020-01-15 19:24:52 +02:00
fisker Cheung 5bfc5de410 Simplify arrayify (#7266) 2020-01-14 14:02:54 +02:00
fisker Cheung 56a2cd8a1b Refactor createLanguage to use function transform (#6676) 2019-10-29 20:49:44 +02:00
fisker Cheung 5ce16eaa02 Update linguist-languages to v7 (#6367)
* Update linguist-languages to v7

* Trigger build

* Update

* replace `includes` with `indexOf`

* fix `exclude`

* add `nodejs` back
2019-09-14 00:57:16 +03:00
Lucas Duailibe 3805034bdf Improve Rollup setup 2019-06-07 18:20:40 -03:00
fisker Cheung 99d4b86c18 Rollup update (#6200) 2019-06-07 16:58:05 -03:00
Alexander Kachkaev 36aeb4ce4f Fix CI detection to avoid unwanted TTY behavior (#5804) 2019-01-30 14:08:03 +08:00
Wenlu Wang 1dea4ef6f2 fix: allow plugin instance (#5760) (#5763) 2019-01-18 12:40:18 -02:00
Ika 0cbacd3156 fix(markdown): trailing spaces after front matters are allowed (#5107)
```md
---···· <--- allowed
yaml
---···· <--- allowed

markdown
```
2018-09-21 19:51:03 +08:00
Ika 5bcd4424fa fix(css): no wrong loc info caused by front matter (#5103)
Replace front matter with whitespaces to maintain the loc info.
2018-09-19 09:18:50 +08:00
Ika 58d34bb844 refactor: language extend (#4994) 2018-08-22 10:12:57 +08:00
Jorge Gonzalez 7d78ce68ef feat(config): support TOML configuration files (#4877)
* Add initial support for TOML in configuration files

* Missed brace

* Fix snapshots

* refactor: move loadToml to utils

* Use @iarna/toml

* Add tests for loadToml

* Fix test for CI

* Remove jest-extended

* Create snapshot for load-toml

* Add feat to docs

* lint docs

* Use @iarna/toml/parse-string

* Change path string
2018-08-03 06:27:19 -04:00
Ika 99c4e41fa1 feat: format yaml front matter (#4773)
* refactor: front-matter

* feat: format yaml front matter
2018-07-03 09:54:40 +08:00
Ika 0b659b898d feat: update linguist languages (#4741)
Context: https://github.com/prettier/prettier/pull/4734#issue-196702272

Languages should be easy to maintain now.
2018-06-28 08:24:02 +08:00
Ika fb74dc54c3 feat(api): make getFileInfo() really async (#4640) 2018-06-07 00:34:02 +08:00
Lucas Duailibe 52a2a46b3c New build system (#4449) 2018-05-24 15:30:45 -03:00
Jed Fox 9155fe5018 Rename all uses of frontmatter to frontMatter or front-matter (#4519) 2018-05-21 10:02:09 -04:00
Lucas Duailibe 983202413c Refactor frontmatter handling (#4482) 2018-05-14 22:17:15 -03:00
Lucas Duailibe 67f1c4877e Refactoring: better boundaries for different parts of the project (#4364) 2018-04-25 13:29:35 -03:00