Commit Graph
18 Commits
Author SHA1 Message Date
James Longandfisker Cheung 6bf6b20aed Reverts #7865, keeping class names on the same line (#11827)
* Reverts #7865, keeping class names on the same line

* Add changelog

* Fix lint

* Fix

Co-authored-by: fisker Cheung <lionkay@gmail.com>
2021-11-18 16:10:41 +09:00
fisker Cheung 894f841fbd Style: Enforce extensions (#11227) 2021-07-21 09:10:34 +08:00
tkalmarandGeorgii Dolzhykov fbca25cf8b Allow : as class prefix-delimeter (#10906)
Co-authored-by: Georgii Dolzhykov <thorn.mailbox@gmail.com>
2021-05-21 18:21:28 +08:00
fisker Cheung 230428f34b Add consistent-negative-index-access rule (#10569) 2021-03-20 14:06:12 +02:00
7cf524fa03 Smarter formatting of HTML class attribute (#7865)
* html: break class attr onto multiple lines, but try keeping consecutive classes with the same prefix on one line

* add changelog

* add more tests

* improve doc structure to fix an issue with the closing quote

* Update changelog_unreleased/html/pr-7865.md

Co-Authored-By: Jed Fox <git@twopointzero.us>

* handle classes with leading _ and -

* update snapshots

* Lint

* Update pr-7865.md

* Update changelog entry

Co-authored-by: Jed Fox <git@twopointzero.us>
Co-authored-by: fisker Cheung <lionkay@gmail.com>
2021-01-18 15:50:52 +02:00
fisker Cheung 7b24335064 Refactor: Use Doc[] instead of concat() (#9993) 2021-01-11 13:46:05 +08:00
fisker Cheung 0c2b918078 ESLint: enable import/order (#8635) 2020-06-26 20:30:21 +08:00
fisker Cheung 6d49e3b3c1 Revert #7381 (#8359) 2020-05-21 12:25:01 +08:00
Georgii Dolzhykov 9dad95b35f Bump Prettier dependency to 2.0.0 2020-03-21 22:09:54 +02:00
fisker CheungandGeorgii Dolzhykov 40a1418246 Format value of HTML class attribute (#7555)
* Format HTML attribute `class` value

* Add more example

* Typo

* Don't break

* exclude mustache and multiparser

Co-authored-by: Georgii Dolzhykov <thorn.mailbox@gmail.com>
2020-02-16 10:59:15 +02:00
Georgii Dolzhykov 37a7e9cd42 Merge branch 'master' into next 2020-01-22 14:55:22 +02:00
fisker Cheung 96d419b91a Fix srcset parse error (#7295)
* Fix srcset parse

* Don't swallow error

* fix srcset parse

* Add changelog

* Update case

* Fix quote style

* Make input ugly
2020-01-20 20:58:38 +02:00
fisker Cheung 11c4cea68a Switch parse-srcset to srcset (#7381) 2020-01-19 00:44:44 +02:00
Georgii Dolzhykov 7e3c0c73b3 Merge branch 'master' into next 2020-01-14 20:36:21 +02:00
fisker Cheung 7ff6347398 Style: enable prefer-spread (#7270) 2020-01-14 14:05:28 +02:00
fisker Cheung c68d6e3c2b Move doc directory to document (#7272) 2020-01-14 13:58:42 +03:00
fisker Cheung beeaa98cb9 Fix quote style, enable quote rule (#7304) 2020-01-14 13:58:20 +03:00
Ika 5e8a4a115a feat: support HTML/Vue/Angular (#5259) 2018-11-04 23:03:07 +08:00