Commit Graph
100 Commits
Author SHA1 Message Date
fisker Cheung 932400a928 Add Yarn 2 files to .gitignore (#9124) 2020-09-01 22:33:51 +08:00
fisker Cheung 56da3ba31c Update cspell.json (#9105) 2020-09-01 18:40:26 +08:00
fisker Cheung b87a3d7ffe Refactor RecoveredErrors rethrow (#9075) 2020-09-01 17:29:27 +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 0aba03062d Remove a unnecessary check in css printer (#9094) 2020-09-01 11:24:58 +08:00
fisker Cheung bd46d5f1bc Glimmer: Use common locationToOffset (#9106) 2020-09-01 11:24:33 +08:00
fisker CheungandGeorgii Dolzhykov f5e96f7d83 Redirect babel parser to babel-flow (#9071)
Co-authored-by: Georgii Dolzhykov <thorn.mailbox@gmail.com>
2020-09-01 11:23:47 +08:00
fisker Cheung 589ebf670b Add pure css parser (#7933) 2020-08-28 13:07:49 +08:00
fisker Cheung c85ff01ede CI: remove fetch-depth (#9086) 2020-08-28 12:52:50 +08:00
fisker Cheung e8b299d164 Rename native shims to .mjs (#9079) 2020-08-28 10:03:36 +08:00
fisker Cheung c8e7e0b003 Update js languages (#9073) 2020-08-28 10:02:45 +08:00
fisker Cheung fadd93571d Turn test setup file to lazy load (#9080) 2020-08-28 10:02:08 +08:00
fisker Cheung f2e3cb7f3b Support .wxs & .wxss (#9081)
* Support `.wxs` &  `.wxss`

* Spell check

* Add comments

* Spellcheck
2020-08-27 20:56:53 +03:00
fisker 4382203c9c Fix yarn.lock 2020-08-26 17:58:28 +08:00
fisker Cheung ebe9e07716 Vue: Fix format on self-closing and empty blocks (#9055) 2020-08-26 11:19:34 +08:00
fisker Cheungandprettifier[bot] ee57066cb4 HTML: Fix format on style[lang="sass"] (#9051)
Co-authored-by: prettifier[bot] <45367598+prettifier[bot]@users.noreply.github.com>
2020-08-26 00:26:03 +08:00
fisker Cheung 073dfd9fa2 Vue: fix format on blocks with src attribute (#9052) 2020-08-25 23:06:25 +08:00
fisker Cheung 2a15e273a0 Add loc back for typescript parser (#9053) 2020-08-25 23:05:41 +08:00
fisker Cheung 720177ac5c HTML: Fix format on files with frontMatter (#9043) 2020-08-25 19:49:38 +08:00
fisker Cheung 9550428987 Chore: Update lint:prettier script (#9045) 2020-08-25 17:39:24 +08:00
fisker Cheung 9a9dcbe12b Fix broken format for ...infer T (#9044) 2020-08-25 12:36:54 +03:00
fisker 2fe04158a7 Fix blog post typo 2020-08-24 21:02:20 +08:00
fisker Cheung 5223b78dcd Build: Quick fix for #8639 (#9035)
* Quick fix for #8639

* style

* style (prettier)
2020-08-24 19:19:13 +09:00
fisker Cheung 08e8b40ac6 Move non-js syntax test out of tests/js/ dir (#9023) 2020-08-22 14:50:54 +08:00
fisker Cheung 76f8455f05 Prevent jest warning on production tests (#9022) 2020-08-22 01:00:33 +08:00
fisker Cheung 95ba0aeb79 Update javascript tests to avoid syntax errors (#9019) 2020-08-22 01:00:14 +08:00
fisker Cheung 8676daed0a Minor tweak (#9014) 2020-08-21 13:06:56 +08:00
fisker Cheung 1d2ff824cc Improve requirePragma on files with BOM (#9003) 2020-08-21 10:30:42 +08:00
fisker Cheung 86ad299768 Improve internal range calculate (#9012) 2020-08-21 09:44:20 +08:00
fisker Cheung d31ebf4619 Test: Improve coverage (#8811) 2020-08-21 09:43:24 +08:00
fisker Cheung 5a62566cee Build: parser-flow.js use strict mode (#8311) 2020-08-21 09:15:35 +08:00
e3d1f0dee0 CLI: Add --ignore-unknown (#8829)
Co-authored-by: Georgii Dolzhykov <thorn.mailbox@gmail.com>
Co-authored-by: sosukesuzuki <aosukeke@gmail.com>
2020-08-21 09:11:59 +08:00
fisker Cheung 7bf1803a11 JS: DRY hasPragma & insertPragma (#9002) 2020-08-21 09:10:14 +08:00
fisker Cheung dc46155962 Revert #7367 "Fix: remove unnecessary parens when yielding jsx" (#9011) 2020-08-21 09:09:45 +08:00
fisker Cheung 2ff156136f Improve internal cursorOffset calculate (#9013) 2020-08-21 09:09:15 +08:00
fisker Cheung a8d34a6786 CI: add timeout-minutes: 60 (#9010) 2020-08-20 16:10:37 +08:00
fisker Cheung d1a9d7420b Run AST_COMPARE test for verifyParsers too (#8966) 2020-08-19 21:26:33 +08:00
fisker Cheung cb231e12bd Build: remove extra global objects exposed by UMD bundles (#8989) 2020-08-18 21:52:56 +08:00
fisker Cheung 038d1642b2 Build: remove --max-old-space-size (#8994) 2020-08-18 21:52:02 +08:00
fisker Cheung f97fdd9ef7 CI tweak (#8993) 2020-08-18 14:59:43 +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 ea995a1444 Simplify getPenultimate (#8734) 2020-08-14 18:41:41 +08:00
fisker Cheung 5e71bb37bc Fix name field in tests_integration/**/package.json (#8958) 2020-08-11 19:18:35 +08:00
fisker 3ebad151ab Fix package.json 2020-08-11 15:02:07 +08:00
fisker Cheung 6833310f87 Fix wrong range format on files with BOM (#8936) 2020-08-10 22:18:55 +08:00
fisker Cheung 69d26582e7 Refactor test (#8940) 2020-08-10 22:17:51 +08:00
fisker Cheung a340799a3d CLI: Don't suggest -_ for unknown flags (#8934) 2020-08-10 21:57:54 +08:00
fisker Cheung 25398a943f Minor refactor (#8935) 2020-08-10 21:57:02 +08:00
fisker Cheung 6ae716cd69 Rewrite a deep nested ternary makeAlign (#8931)
* Rewrite a deep nested ternary `makeAlign`

* Rename `ind`
2020-08-10 00:07:24 +08:00
fisker Cheung 0a2ec1b4a2 Fix range tests with TEST_CRLF and endOfLine option (#8821) 2020-08-08 16:45:44 +08:00
fisker Cheung 464883602c Update ESLint settings (#8923) 2020-08-07 13:40:17 +08:00
fisker Cheung 770ecfbabc Add test to confirm prettier . work with plugins (#8835) 2020-08-06 23:15:19 +08:00
fisker Cheung 47f94854ee Add fix & lint scripts (#8909) 2020-08-06 09:04:02 +08:00
fisker Cheung 8aac3eacb1 Ignore test* file in lint:prettier script (#8910) 2020-08-06 09:03:15 +08:00
fisker Cheung c6b3ed6e1c Enforce .json extensions (#8908) 2020-08-06 00:37:16 +08:00
fisker Cheung 797e93fc0a Support Decimal Proposal (#8901) 2020-08-05 11:04:30 +08:00
fisker Cheung 7fe7fbe4ef Update yarn version for netlify build (#8900) 2020-08-04 16:48:45 +08:00
fisker Cheung 967bc6f502 Support babel TSNamedTupleMember (#8885) 2020-08-04 12:17:53 +08:00
fisker Cheung 7c7ad71a1b Fix error throws on unclosed tag in pre (#8841) 2020-08-04 06:49:22 +08:00
fisker Cheung dd919ab121 Style: improve html printer readability (#8842) 2020-08-02 07:07:28 +08:00
fisker Cheung bf9974bc9c Add test to confirm a bug in third-party.js is fixed (#8837) 2020-08-02 07:05:26 +08:00
fisker Cheung 170033f3f8 Update @typescript-eslint/typescript-estree to v3.7.1 (#8805) 2020-08-02 07:03:20 +08:00
fisker Cheung 8d94976bed Fix update-dependents-count script (#8875) 2020-07-31 19:36:12 +08:00
fisker Cheung 466d4638b4 CLI: Add -w alias for --write option (#8833) 2020-07-27 10:10:01 +08:00
fisker Cheung d725261fc5 MDX: fix unstable format when embedded off (#8825) 2020-07-25 02:06:22 +08:00
fisker Cheung 86b8395ed7 Fix cli --file-info bug (part 2) (#8830) 2020-07-24 23:31:59 +08:00
fisker Cheung b8a3f84c19 Build: Avoid PREFER_NAMED_EXPORTS warning (#8814) 2020-07-24 13:01:43 +08:00
fisker Cheung 702b020ae2 Simplify composeLoc (#8810) 2020-07-23 18:23:51 +08:00
fisker Cheung 441f2325b5 Do not trim options.originalText (#8783) 2020-07-21 21:26:39 +08:00
fisker Cheung 5004661ef1 Add tokens to js parsers (#8529) 2020-07-21 07:43:35 +08:00
fisker Cheung 42dac21e52 Update test:dist-standalone script (#8802) 2020-07-20 20:20:22 +08:00
fisker Cheung 8c00ad44df Build: Simplify transform-custom-require plugin (#8735) 2020-07-20 18:35:28 +08:00
fisker Cheung 8ad666dc1b Auto include parser-*.js in standalone test (#8791) 2020-07-20 10:52:40 +08:00
fisker Cheung 9ebe5adb54 Ensure comments for ignored node are printed (#8777) 2020-07-20 09:19:40 +08:00
fisker Cheung d072671842 Test: fix standalone tests with plugins option (#8787) 2020-07-19 17:53:30 +08:00
fisker Cheungandsosukesuzuki c8f9d254b9 Minor refactor (#8752)
Co-authored-by: sosukesuzuki <aosukeke@gmail.com>
2020-07-17 09:08:03 +08:00
fisker Cheung f5c40bf977 Auto generate parsers for playground (#8771) 2020-07-17 09:07:26 +08:00
fisker Cheung f8e6c215ce Refactor: Move parsers to language index (#8765) 2020-07-17 09:06:00 +08:00
fisker CheungandGeorgii Dolzhykov 07e5b06a1f Fix unstable pair of comments between class methods (#8731)
Co-authored-by: Georgii Dolzhykov <thorn.mailbox@gmail.com>
2020-07-15 12:16:49 +08:00
fisker Cheung f2b0aec555 Vue: Fix parenthesized interpolation format (#8747) 2020-07-15 12:16:16 +08:00
fisker CheungandGeorgii Dolzhykov c0abefb662 SCSS: Fix Comments at the end of the file were lost if the final semicolon was omitted (#8675)
Co-authored-by: Georgii Dolzhykov <thorn.mailbox@gmail.com>
2020-07-14 23:36:40 +08:00
fisker 44dedd94b5 Fix snapshot 2020-07-14 22:35:25 +08:00
fisker Cheung 26740d54a5 Recognize known html tags (#8621) 2020-07-14 22:02:32 +08:00
fisker Cheung 8a635f5bdf Fix expect.resolves assert (Part 2) (#8756) 2020-07-14 21:53:45 +08:00
fisker Cheung 4dade8b06d Do not expose composeLoc (#8753) 2020-07-14 21:52:38 +08:00
fisker Cheung 55d7f74d68 Use locStart/locEnd instead of start/end (#8724)
* Use `locEnd` instead of accessing node.end

* Use `locStart`

* Fix use of node.range
2020-07-14 15:07:16 +03:00
fisker Cheung 639e7fc869 Fix duplicated comments (#8742)
* Add failed test

* Fix issue

* more tests

* Restore verify parser

* Add changelog

* Update snapshots
2020-07-14 15:06:57 +03:00
fisker Cheung 031375bd80 Simplify escapeTemplateCharacters (#8733) 2020-07-12 19:16:45 +08:00
fisker Cheung 63984d3470 Remove dead code (#8723) 2020-07-11 20:07:56 +08:00
fisker Cheung 9c2c68920e Refactor: getLeftMost use while loop instead of recurse (#8732) 2020-07-11 20:06:33 +08:00
fisker Cheung 0998366d41 Less: Fix incorrect comment in selector() (#8707) 2020-07-06 17:48:30 +08:00
fisker CheungandGeorgii Dolzhykov b01591770a HTML: Don't preserve line breaks around text-only content (#8614)
* Fix inconsistent formatting on Vue interpolation

* Fix text

* Update changelog

* Fix snapshot

* Add an explanation to the changelog

Co-authored-by: Georgii Dolzhykov <thorn.mailbox@gmail.com>
2020-07-06 09:18:22 +03:00
fisker Cheung 350f641fca Fix util import (#8696) 2020-07-05 00:34:35 +08:00
fisker Cheung 6d75c2262e Move js-only utils to language-js dir (#8697) 2020-07-02 23:29:47 +08:00
fisker Cheung 231bbc246a Generate fresh yarn.lock (#8702) 2020-07-02 23:12:32 +08:00
fisker Cheung 98a2ecb54e Move includeShebang to postprocess (#8650)
* Move `includeShebang` to `postprocess`

* Style
2020-07-02 14:15:50 +03:00
fisker Cheung 8ea2d91f1d Change handlebars preprocess to postprocess (#8644) 2020-07-02 09:45:15 +08:00
fisker Cheung a0e2efca04 JS: Cleanup loc.js (#8678)
* Cleanup js `loc.js`

* Simplify `composeLoc`

* Simplify `locEnd`

* Simplify

* Fix Ast

* Remove use of loc

* Remove use of loc
2020-07-01 19:50:15 +03:00