Commit Graph
100 Commits
Author SHA1 Message Date
fisker Cheung 27e7376229 Fix hangs on invalid v-for (#12113) 2022-01-19 20:53:17 +08:00
fisker Cheung 53da86c34d Fix some lgtm alerts (#12084) 2022-01-17 09:19:50 +08:00
fisker Cheung 16aa669141 Update rollup-plugin-license (#12081) 2022-01-16 10:21:29 +08:00
fisker Cheung cc6856ae20 Build: Switch to esbuild (backport #12052 and #10006) (#12055) 2022-01-14 15:58:13 +08:00
fisker Cheung 52ec456ab2 Add final new line to cspell.json file (#12049) 2022-01-08 12:14:07 +08:00
fisker Cheung 624c51101c Enable unicorn/prefer-json-parse-buffer and unicorn/no-useless-promise-resolve-reject rule (#12043) 2022-01-04 13:56:10 +08:00
fisker Cheung 3a1de5cb4f Simplify clean-cspell script (#12015) 2022-01-03 22:17:14 +08:00
fisker CheungandSosuke Suzuki 5f453482bc Add internal ESLint rule await-cli-tests (#12013)
Co-authored-by: Sosuke Suzuki <aosukeke@gmail.com>
2022-01-03 22:16:25 +08:00
fisker Cheung cf4bf1adc0 Simplify cli options stack (#11994) 2021-12-24 19:34:18 +08:00
fisker Cheung 07f7ad8c79 Improve shorthand specifier detection (#11941) 2021-12-18 11:16:18 +08:00
fisker Cheung 306d009904 Use camelCase cli arguments internally (#11976) 2021-12-18 11:11:49 +08:00
fisker Cheung 6317e6557e Test: Make runPrettier result "thenable" (#11979) 2021-12-18 11:10:03 +08:00
fisker Cheung 326f23cd35 Restructure cli files (#11974) 2021-12-16 09:21:15 +08:00
fisker Cheung cd4a57b113 Remove .pre-commit-hooks.yaml (#11936) 2021-12-09 14:14:26 +08:00
fisker Cheung fa821da366 Update netlify config (#11937) 2021-12-07 15:09:56 +08:00
fisker Cheung 294a02b979 Enable regexp/no-useless-lazy rule (#11014) 2021-12-07 14:15:03 +08:00
fisker Cheung e2d07b35ec Enable unicorn/prefer-switch (#11935) 2021-12-07 14:13:12 +08:00
fisker Cheung 7bce1d02c7 Fix comments inside map (#11920) 2021-12-06 21:31:51 +08:00
fisker Cheung afa9e1eebf Add funding field to package.json (#11914) 2021-12-06 13:55:58 +08:00
fisker Cheung 29f408c99e Add changelog for #11892 (#11904) 2021-12-04 22:22:08 +09:00
fisker Cheung e7a74529a5 Make options argument in parsers optional (#11892) 2021-12-04 22:21:51 +09:00
fisker Cheung 257a8dfd26 Add changelog for #11892 (#11904) 2021-12-03 13:19:57 +09:00
fisker Cheung 16b6825172 Make options argument in parsers optional (#11892) 2021-12-02 13:56:47 +08:00
fisker Cheung 1d9d314b45 Update jest-docblock babel-jest jest (#11893) 2021-12-01 16:25:52 +08:00
fisker Cheung 62ede8b710 Build: Remove unnecessary aliases (#11868) 2021-11-29 12:52:43 +08:00
fisker Cheung 569111e708 Update build script (#11858) 2021-11-27 18:47:02 +08:00
fisker Cheung 15f869dec2 Update string-width to v4.2.3 (#11853) 2021-11-22 10:52:42 +08:00
fisker Cheung cd25b86e60 Regenerate yarn.lock (#11852) 2021-11-22 10:49:18 +08:00
fisker Cheung 8a85ba4e18 Update acorn (#11835)
* Update `acorn`

* Fix test, add changelog
2021-11-21 01:44:28 +09:00
fisker Cheung ca97e4b4d2 Update execa to v6 for release script (#11829) 2021-11-19 20:50:30 +08:00
fisker Cheung ffbd04ebe2 Fix typo in filename (#11792) 2021-11-09 15:36:42 +09:00
fisker Cheung 70aa861bc1 Fix internal ESLint plugin (#11780) 2021-11-08 18:17:15 +08:00
fisker Cheung 9440b70563 Fix error on deleting variables (#11750)
* Fix error on delete variables [skip ci]

* Add changelog
2021-11-06 22:06:30 +09:00
fisker Cheung 7bda3a3a58 Update ESLint to v8 (#11681) 2021-10-20 15:51:46 +08:00
fisker Cheung 4d5f865373 Improve parser-postcss.js minify config (backport #11674) (#11677)
* Improve `parser-postcss.js` minify config (backport #11674)

* Add `string-replace-loader`

* Linting
2021-10-15 14:35:09 +09:00
fisker Cheung e96dc509ec Update eslint config (#11595) 2021-09-28 11:16:39 +08:00
fisker Cheung ad357d236f Minor refactor (#11566) 2021-09-22 13:49:55 +08:00
fisker Cheung 5ce28ddd7f Refactor website build script (#11488) 2021-09-11 09:55:46 +08:00
fisker Cheung 8a01dee53e Refactor build script (#11475) 2021-09-10 10:20:43 +08:00
fisker Cheung d3d1bc19bd Use pnpm 6 (#11477) 2021-09-09 19:13:59 +08:00
fisker Cheung 4b2ba45825 Fix the trailingComma value from "always" to "all" in v2 blog post (#11480) 2021-09-09 18:54:45 +08:00
fisker Cheung 0cc8e96c37 Refactor installPrettier (#11476) 2021-09-09 18:53:31 +08:00
fisker Cheung 62a2629743 Build: Support build single file (#11469) 2021-09-09 12:23:53 +08:00
fisker Cheung 04e1cee3bc Fix comments (#11464) 2021-09-08 12:28:29 +08:00
fisker Cheung 754531032d Enable regexp/no-unused-capturing-group rule (#11013) 2021-09-08 11:18:07 +08:00
fisker Cheungandsosukesuzuki 07786bd758 Revert "Revert features for minor" (#11044)
* Revert "Revert features for minor (#11016)"

This reverts commit 09d65c35af.

* Update cspell.json

Co-authored-by: sosukesuzuki <aosukeke@gmail.com>
2021-08-31 13:40:52 +09:00
fisker Cheung 051e20591a Lint dist files with eslint-plugin-compat (#11245) 2021-08-16 15:08:19 +08:00
fisker Cheung 4f1e554566 Fix a rollup warning (#11270) 2021-07-26 15:04:38 +08:00
fisker Cheung a77845638f Combine ESLint config files (#11240) 2021-07-26 09:25:13 +08:00
fisker Cheung 84abd0ec22 Migrate release script to ESM (#11229) 2021-07-26 09:24:44 +08:00
fisker Cheung c9e6ada108 Build: Fix unexpected require()s in parser-typescript.js (#11130) 2021-07-26 09:17:34 +08:00
fisker Cheung 8af696e435 Use setup-node cache yarn dependencies (#11243) 2021-07-25 12:13:19 +08:00
fisker Cheung 776b3ff13d Recognize zx interpreter (#11238) 2021-07-22 09:44:42 +08:00
fisker Cheung bd4a5ff990 Update cspell (#11236) 2021-07-22 09:44:06 +08:00
fisker Cheung b001969b94 Remove require-json-extensions rule (#11233) 2021-07-22 09:32:21 +08:00
fisker Cheung 6bd8deae89 Regenerate yarn.lock file for website (#11234) 2021-07-22 09:31:17 +08:00
fisker Cheung 5f0ee39fa0 Added replaceEndOfLine and replaceTextEndOfLine (#10913) 2021-07-21 10:02:33 +08:00
fisker Cheung 514046b3c7 Use eslint-plugin-prettier-internal-rules package (#11228) 2021-07-21 09:10:52 +08:00
fisker Cheung 894f841fbd Style: Enforce extensions (#11227) 2021-07-21 09:10:34 +08:00
fisker Cheung 14a952aafb Move js parsers to a separate directory (#11195) 2021-07-15 09:53:34 +08:00
fisker Cheung e1afe1adc2 Remove parser getters from universal bundles (#11137) 2021-07-13 15:16:31 +08:00
fisker Cheung 10053999d7 Update meriyah to v4.2.0 (#11194) 2021-07-12 14:45:33 +08:00
fisker Cheung ff1870ab77 Remove useless package info from standalone build (#11138) 2021-07-12 14:33:52 +08:00
fisker Cheung 5378e99859 Update angular to v12.1.1 (#11173) 2021-07-08 15:28:10 +08:00
fisker Cheung 57f8eec8e6 Website: Add mode to webpack command (#11131) 2021-06-29 09:10:18 +08:00
fisker Cheung 57616ad865 Enable no-return-await and require-await rule, fix clean-cspell script (#11079) 2021-06-16 22:20:47 +08:00
fisker Cheung 1aa188ecd1 Enable no-console rule on CI (#11045) 2021-06-11 14:16:59 +08:00
fisker Cheung ce96e4899f CLI: Fix failure on dir with trailing slash (#11000) 2021-06-11 11:03:42 +08:00
fisker Cheung c3c300dd8f Remove @types/node package (#10994) 2021-06-04 13:28:36 +03:00
fisker Cheung c8133f8afa Fix StringLiteral print (#10997) 2021-06-01 08:50:35 +08:00
fisker Cheung 81a1c46311 Minor tweak to js printer (#10954) 2021-05-27 18:00:31 +08:00
fisker Cheung 40cd8c9d7e Move flow node to flow.js (#10449) 2021-05-27 09:00:23 +08:00
fisker Cheung d3b777dd7d Update build script (#10946) 2021-05-27 08:54:42 +08:00
fisker Cheung 2783bb41b1 Update jest to v27 (#10947) 2021-05-26 09:03:29 +08:00
fisker Cheung c286d847d9 Remove more Array#reduce() (#10907) 2021-05-24 01:26:00 +03:00
fisker Cheung 8f17187bf7 Reduce parser-graphql size (#10903) 2021-05-19 09:23:31 +08:00
fisker Cheung 4d37ac46a3 Add __babel_estree parser (#10910) 2021-05-19 09:22:52 +08:00
fisker Cheung 9b7ba8a42c Style: Use dotAll regexp (#10864) 2021-05-18 02:44:21 +08:00
fisker Cheung 085e38bffb Move replaceEndOfLineWith to docUtils (#10862) 2021-05-17 20:10:44 +03:00
fisker CheungandGeorgii Dolzhykov 2e1021ca79 Reduce use of Array#reduce() (#10863)
Co-authored-by: Georgii Dolzhykov <thorn.mailbox@gmail.com>
2021-05-16 12:43:13 +08:00
fisker Cheung 90ea7e4a4f Use fsPromise in getFileContentOrNull (#10859) 2021-05-16 12:42:15 +08:00
fisker Cheung 213a825131 Use join in replaceNewlinesWithLiterallines (#10860) 2021-05-16 12:40:00 +08:00
fisker Cheung a9c3960f2f Remove dead code (#10869) 2021-05-16 12:35:55 +08:00
fisker Cheung f4a6232848 Switch some scripts to ESM (#10867) 2021-05-15 20:09:52 +08:00
fisker Cheung 383f622942 Style: Remove useless flags (#10861) 2021-05-15 14:37:17 +03:00
fisker Cheung 572e0ed90d Fix .eslintignore (#10875) 2021-05-13 17:28:39 +08:00
fisker Cheung 2eb2df6ed2 Update babel config (#10855) 2021-05-12 08:11:43 +08:00
fisker Cheung e161350309 Use fsPromises in CLI (#10852) 2021-05-12 01:05:54 +08:00
fisker Cheung 98abb990cc Use Object.fromEntries(), Array#flat() and Array#flatMap() (#10853) 2021-05-12 01:05:29 +08:00
fisker Cheung b7983971ce Drop Node.js 10 support for development "build" (#10842) 2021-05-11 08:52:38 +08:00
fisker Cheung 6e71422548 Use async APIs in CLI (#10841)
* Use async API in CLI

* Remove `synchronous-promise`
2021-05-11 01:50:50 +03:00
fisker Cheung 8c93ef5755 Remove .prettierrc parser override (#10845) 2021-05-10 19:42:47 +03:00
164a6e2351 Switch CLI to async (#10804)
* Switch CLI to async

* Rewrite test

* Fix tests

* Comment out failed test

* Comment out failed test

* Fix test

Co-authored-by: Connor Peet <connor@peet.io>

* Update patterns-dirs.js

* Fix `hasRunningCli` flag

* Fix grammar

* Update tests/integration/runPrettier.js

Co-authored-by: Georgii Dolzhykov <thorn.mailbox@gmail.com>

Co-authored-by: Connor Peet <connor@peet.io>
Co-authored-by: Georgii Dolzhykov <thorn.mailbox@gmail.com>
2021-05-09 15:43:10 +03:00
fisker Cheung 8beca471dd Skip test on Node.js v15 (#10829) 2021-05-06 16:55:00 +03:00
fisker Cheung 877e64c046 Fix missing parentheses on async inside for..of (#10781) 2021-05-06 16:53:48 +03:00
fisker Cheung 067826bc7a Remove dead code (#10784) 2021-04-29 23:21:04 +08:00
fisker Cheung 28e67a25ac Add no-conflicting-comment-check-flags rule (#10775) 2021-04-27 11:25:31 +08:00
fisker Cheung 5c44f71737 Fix .prettierignore 2021-04-26 14:27:58 +08:00
fisker Cheung 2dfa06bf20 Add #102415 to .git-blame-ignore-revs 2021-04-25 20:12:33 +08:00
fisker Cheung ece93681f1 Restructure test files (#10415) 2021-04-25 20:01:56 +08:00