Commit Graph
74 Commits
Author SHA1 Message Date
fisker Cheung 64a3906571 Enable unicorn/prefer-optional-catch-binding (#9464) 2021-02-25 18:28:55 +08:00
Georgii Dolzhykov ca4a51dcd9 build: fix tree shaking for front matter related functions (#10314) 2021-02-15 05:29:15 +02:00
fisker Cheung ce26805e84 Enable unicorn/prefer-spread (#10129) 2021-01-26 09:46:14 +08:00
fisker Cheung 181a325c1c Enable unicorn/explicit-length-check (#9975) 2021-01-04 10:11:57 +08:00
fisker Cheung 84b81c8a1a Enable directly-loc-start-end in language-css (#9591) 2020-11-05 19:26:05 +08:00
Sosuke Suzukiandfisker f7554c62a2 Revert breaking changes related to adding pure css parser for minor releasing (#9500)
* revert without tests

* Downgrade postcss-scss and postcss-less

* Fix tests

* Revert "Make `isSCSS*` function stricter (#9093)"

This reverts commit 01f986bea9.

* Revert "Remove `css` parser from `isLessParser` check (#9092)"

This reverts commit c0bca1805d.

* Revert "Add pure css parser (#7933)"

This reverts commit 589ebf670b.

* Disable `parser-postcss.js` minify

* Try to fix build script

* Update fs.mjs

* Update fs.mjs

* Style

Co-authored-by: fisker <lionkay@gmail.com>
2020-10-31 22:22:35 +09:00
dependabot[bot]andfisker bc9db85490 Build(deps): Bump postcss-less from 3.1.4 to 4.0.0 (#9471)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: fisker <lionkay@gmail.com>
2020-10-26 09:46:00 +08:00
fisker Cheung 3fe4666a85 Consistent parser errors (#9406) 2020-10-16 10:39:05 +08:00
Georgii Dolzhykov 633f084a76 LESS: fix comments in value lists (#9356) 2020-10-12 09:16:36 +08:00
fisker Cheung 9efeb8309e Update postcss-scss to v3 (#9210) 2020-09-27 08:49:16 +08:00
fisker Cheung b77da32a80 Update postcss to v8 (#9209)
* Update `postcss` v8

* Parser custom properties

* Improve logic

* Update lint script

* Fix node location

* Fix comments inside

* Add a test

* Test on `less` and `scss` too

* Fix empty prop print

* Clean

* Update `postcss`

* Exclude `regenerator`

* Test `no-semi`

* Add changelog

* Typo

* Apply review suggestion

* Style

* Simplify logic

* Remove error test, we don't throw on this anymore

* Style

* Update postcss

* Update postcss
2020-09-25 00:51:55 +08:00
fisker Cheung 01f986bea9 Make isSCSS* function stricter (#9093) 2020-09-01 16:58:35 +08:00
fisker Cheung c0bca1805d Remove css parser from isLessParser check (#9092) 2020-09-01 15:28:11 +08:00
fisker Cheung 589ebf670b Add pure css parser (#7933) 2020-08-28 13:07:49 +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
1d6d60ee37 Fix: at rule supports selector (#8545)
Co-authored-by: fisker Cheung <lionkay@gmail.com>
Co-authored-by: Boyen Vaesen <boyen.vaesen@kbc.be>
2020-07-03 09:24:27 +08:00
Boyen Vaesen 4009ecf70d Fix: Prettier breaks code when inline number lists are used as arbitrary arguments [SCSS] (#8566) 2020-06-18 12:12:31 +03:00
Michael Mattiacci ffceb60e92 CSS: Fix url() unquoted content manipulation (#2835) (#7592) 2020-05-29 16:09:15 +03:00
Georgii Dolzhykov b1791e0def refactor(css): calculate correct location data for value-* nodes (#8266)
* calculate correct loc for value-* nodes

* update clean.js to fix idempotence tests
2020-05-16 02:48:25 +03:00
fisker Cheung 14f5f8589f Less: parser :extend as selector (#8178) 2020-04-30 11:58:21 +03:00
fisker Cheung f0207e6850 Enable unicorn/better-regex (#7991)
* Enable `unicorn/better-regex`

* Spellcheck ignore regex
2020-04-10 21:20:40 +08:00
fisker Cheung 76cb1efcb6 Fix less :extend format (#7984)
* Fix less `:extend` format

* Add changelog

* Add longer test

* Add issue link

* Style

* Fix changelog
2020-04-08 18:02:13 +03:00
fisker Cheung 17377f3082 Split css parsers (#7932)
* Split css parsers

* pass function to parseWithParser

* Fix plugins parser

* Fix coverage fails

* coverage ignore

* Update project coverage target to 95%
2020-04-03 12:41:48 +08:00
Georgii Dolzhykov 9dad95b35f Bump Prettier dependency to 2.0.0 2020-03-21 22:09:54 +02:00
Evilebot TnawiandGeorgii Dolzhykov 4602bb6b95 refactor css comments (#7021)
* refactor css comments

* workarounds for postcss-less location bugs

* improve replaceQuotesInInlineComments

* update changelog

* fix comments in selectors

* fix comments in values

* use \ufffe instead of \0 because that's what these characters are for

see http://www.unicode.org/faq/private_use.html#nonchar6

* fix quoted urls

Co-authored-by: Georgii Dolzhykov <thorn.mailbox@gmail.com>
2020-03-20 18:09:07 +02:00
fisker Cheung acff41e7c9 Update postcss-less to v3 (#6981) 2020-03-10 01:14:34 +02:00
fisker Cheung c0517441b2 Enable unicorn/prefer-string-slice (#7251) 2020-01-23 15:15:28 +03:00
fisker Cheung 27b5cb4d9d Enable ESLint prefer-rest-params rule (#7400) 2020-01-23 10:36:18 +02:00
fisker Cheung 288bf5ee3d Fix prefer-object-spread in src/language-css (#7351) 2020-01-19 01:20:58 +02:00
fisker CheungandGeorgii Dolzhykov d456b158e0 Style: use object destructuring (#7325)
* Style: use object destructuring

* Update versions.js

* Update sync-flow-tests.js

* Update core.js

Co-authored-by: Georgii Dolzhykov <thorn.mailbox@gmail.com>
2020-01-14 17:30:18 +02:00
fisker Cheung 85eefb918e Style: enable object-shorthand (#7322) 2020-01-14 14:25:24 +03:00
fisker Cheung 57f0dd56dd Replace indexOf with includes (#6967)
* Replace `indexOf` with `includes`

* Add `unicorn/prefer-includes`
2019-11-17 11:06:14 +01:00
fisker CheungandGeorgii Dolzhykov 85912a738d Update postcss-less to v2 (#6778)
* Update `postcss-less` to v2

* fix less `custom-selectors`

* fix less `custom-selectors` 2

* fix custom-selector `:` position

* remove less hack

* fix custom selector

* cleanup

* add changlog

* add link

* restore changlog

* restore snap

* restore snap

* update postcss-custom-selectors detect

* remove startsWith

* trigger build

* update `custom-selector`

* add test and changelog

* style

* md

* issue-4090-test

* docs

* Update CHANGELOG.unreleased.md

Co-Authored-By: Georgii Dolzhykov <thorn.mailbox@gmail.com>

* fix pr issue

* fix

* fix merge issue

* insert new line

* snap update

* only support custom-selector in css

* scss already parse it as custom-selector

* remove `custom-selector` test in scss

* link
2019-11-08 18:34:14 +03:00
Ika 6a54e21c12 fix(css-in-js): do not remove semicolon (#5353) 2018-11-07 00:19:42 +08:00
Prashant Andani cdcb7b11c9 Use destructures and refactor code for readability (#4844)
* Use destructuring for readability and optimzations at for loop length property

* Destructure variables for easy maintainability of code

* PR review fix

* refactor: fix linting

* Use destructures and refactor code for better readability

* Remove merge conflict line

* lint before commit
2018-07-17 18:01:44 -03: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
Evilebot Tnawi aa4ea034b3 refactor: some stuff (#4703) 2018-06-25 12:57:41 +03:00
Ika f6890bd071 feat(css): support pragma (#4688) 2018-06-14 09:51:18 +08:00
Evilebot Tnawi 9387e9d833 fix: comment type for scss (#4598) 2018-05-30 23:22:18 +03: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
Evilebot Tnawi 636ae9d037 refactor: css language (#4483) 2018-05-15 01:08:04 +03:00
Evilebot Tnawi 9d41f1355a refactor: parser-postcss (#4478) 2018-05-15 00:00:45 +03:00
Aakansha Doshi f99aee8e46 refactor: use postcss-values-parser for @import at rule (#4435)
* update to postcss value parser for @import and at rule

* fix specs

* Add rule for @import url and fix specs

* fix more specs

* fix more specs

* import check

* fix specs and add more specs

* remove console.log

* review fixes

* update snapshots

* remove bad code

* fix spec

* remove code

* Add comment

* fix comment

* lint fix
2018-05-14 22:54:34 +03:00
Elias Meire 2f5c00ad18 Fix: not greedy match the frontmatter in postcss parser (#4457) 2018-05-10 13:50:19 -03:00
Elias Meire 5b7ebb18ba Fix: Always preserve frontmatter, remove dependency (#4392)
* Fix: Always preserve frontmatter, remove dependency

* Move correct test to correct filename

* Add test for malformed frontmatter, finetune regex

* Use other malformed test case

* Update yarn.lock
2018-04-28 08:53:30 -03:00
Lipis 37eea26acf Make Travis green again (#4380) 2018-04-26 10:17:19 +08:00
Evilebot Tnawi e5741552ed feat: use postcss-values-parser for @namespace at rule (#4373) 2018-04-25 21:27:12 +03:00