fisker
21f2ea0f1e
Fix
2022-06-19 11:28:28 +08:00
fisker
0e0f879c1a
Merge branch 'main' into next
...
# Conflicts:
# docs/browser.md
# package.json
# scripts/release/yarn.lock
# scripts/vendors/vendor-meta.json
# scripts/vendors/vendors.mjs
# src/cli/expand-patterns.js
# src/cli/format.js
# src/cli/utils.js
# src/language-js/index.js
# src/language-js/parse/postprocess/index.js
# src/language-js/parse/postprocess/typescript.js
# tests/format/misc/errors/invalid/jsfmt.spec.js
# tests/integration/__tests__/__snapshots__/support-info.js.snap
# website/playground/sidebar/SidebarOptions.js
# yarn.lock
2022-06-19 11:12:22 +08:00
Sosuke Suzuki and Simon Lydell
fdccc0f48e
Add --cache CLI option ( #12800 )
...
* Install `file-entry-cache` and types
* Implement `FormatResultsCache`
* Add `--cache` and `--cache-location` option
* Implement `--cache` and `--cache-location`
* Add tests for `--cache`
* Add tests for `--cache-location`
* Avoid spellcheck error
* Update snapshots for new options
* Add `groupBy` for website
* Use `fs.promises` instead of `fs/promises`
* Use `rimraf` instead of `fs.rm`
* Fix properties order of `options`
* Install `find-cache-dir` and types
* Change default cache file location to `node_modules/.cache/prettier`
* Fix tests following to change default cache file location
* Update snapshots for changing default cache file location
* Set `os.tmpdir()` as a fallback for default cache dir
* Add docs for `--cache` and `--cache-location`
* Use `sdbm` instead of `node:crypto`
* Add changelog
* Fix `getHashOfOptions`
* Remove `cache-location`
* `prettiercache` -> `prettier-cache`
* Remove cache file when run Prettier without `--cache` option
* Implement `--cache-strategy`
* Add tests for invalid cache strategy
* Fix lint problems
* Tweaks tests
* Add tests for timestamp
* Add tests for `--cache-strategy`
* Add docs for cache-strategy
* Address review
* Fix `findCacheFile`
* Use Set.prototype.has
* Throw error with --stdin-filepath
* Update snapshots
* Fix error for cache and stdin
* Use string constructor instead of toString
* Update changelog
* Use flag validation
* Fix `cache-strategy` definition
* Update docs
* Mark highlihgt
* Throw error for `--cache-strategy` without `--cache`
* Update docs
* Fix typo
* Updates snapshots
* Update docs/cli.md
Co-authored-by: Simon Lydell <simon.lydell@gmail.com >
* Fix error message
* Remove `:::` syntax
* Defaults `content`
* Update docs
* Fix by Prettier
Co-authored-by: Simon Lydell <simon.lydell@gmail.com >
2022-06-11 23:32:32 +09:00
fisker Cheung
9569ab12aa
Merge branch 'main' into next
...
# Conflicts:
# .github/renovate.json5
# .github/workflows/lint.yml
# package.json
# src/cli/format.js
# src/language-js/print/type-annotation.js
# src/language-js/print/typescript.js
# src/language-js/utils/index.js
# tests/format/typescript/enum/jsfmt.spec.js
# tests/format/vue/with-plugins/jsfmt.spec.js
# website/yarn.lock
# yarn.lock
2022-05-28 11:19:03 +08:00
Sosuke Suzuki
36c20c51bc
Support Speculation Rules API formatting in HTML ( #12882 )
...
* Add script formatting for `speculationrules`
* Fix lint problems
2022-05-17 10:38:46 +09:00
fisker Cheung
77e5589591
Add .gitpod.yml file ( #12851 )
2022-05-10 13:48:41 +08:00
HosokawaR and fisker Cheung
7ab6198453
Make more callee patterns recognized as "test call callee". ( #12779 )
...
* make more pattern recognized as test call callee
* add tests
* add change log
* make collate logic easier to read.
* add typedef
* remove extra processing
* fix filename mistake is-noded-matches.js -> is-node-matches.js
* add correct words to cspell config
* add a comment about copying
* move patterns outside
* Minor tweak
* rename valiable name
* Adding changelog real-world use case
Co-authored-by: fisker Cheung <lionkay@gmail.com >
2022-05-07 16:44:56 +09:00
fisker Cheung
fcc8c484c3
Use yarn 3 ( #12599 )
2022-05-06 20:27:33 +08:00
Adrian Leonhard
97cbdc3d1d
Add prettier-plugin-glsl to community plugins ( #12777 )
...
* Add prettier-plugin-glsl to community plugins
* add glsl to cspell.json
2022-05-02 21:48:58 +09:00
fisker Cheung
637c00618c
Use published jest-light-runner ( #12592 )
2022-04-05 10:42:21 +08:00
fisker Cheung
65ce63b4dc
Merge branch 'main' into next
...
# Conflicts:
# package.json
# scripts/vendors/bundle-vendors.mjs
# scripts/vendors/vendor-meta.json
# scripts/vendors/vendors.mjs
# src/language-handlebars/utils.js
# src/language-html/utils/html-elements-attributes.js
# vendors/tempy.js
2022-04-01 10:37:35 +08:00
fisker Cheung and Alexander Kachkaev
c9be8d1e0e
Minor tweak to the website ( #12522 )
...
Co-authored-by: Alexander Kachkaev <alexander@kachkaev.ru >
2022-03-27 21:52:17 +08:00
fisker Cheung
c95c899b6f
Merge branch 'main' into next
...
# Conflicts:
# package.json
# scripts/build/bundler.mjs
# scripts/build/config.mjs
# scripts/vendors/vendor-meta.json
# scripts/vendors/vendors.mjs
# src/cli/format.js
# src/cli/logger.js
# src/cli/options/get-options-for-file.js
# src/cli/options/parse-cli-arguments.js
# src/main/core.js
# tests/config/install-prettier.js
# vendors/execa.js
# vendors/mem.js
# vendors/string-width.js
# vendors/tempy.js
# yarn.lock
2022-03-17 09:44:08 +08:00
eb671dd983
2.6 blog post ( #12412 )
...
* Generate
* Generate
* Add TS4.6 changelog
* Regenerate
* Add changelog to switch to esbuild
* Add category
* Update changelog_unreleased/blog-post-intro.md
Co-authored-by: Jed Fox <git@jedfox.com >
* Address review
* Regenerate
* Highlight TS 4.6
* Update changelog_unreleased/blog-post-intro.md
Co-authored-by: Jed Fox <git@jedfox.com >
* Regenerate
* Update changelog_unreleased/typescript/12390.md
Co-authored-by: Jed Fox <git@jedfox.com >
* Add thanks message for sponsors
* Address review!
* Update cspell.json
* Fix link of Ubie
* Generate
* Add `Thanks to our sponsors!`
* Update cspell
* Address review
* Update changelog_unreleased/blog-post-intro.md
Co-authored-by: Alexander Kachkaev <alexander@kachkaev.ru >
* Regenerate
* Add `--print-truncate` option
* Address review
* Generate
Co-authored-by: Jed Fox <git@jedfox.com >
Co-authored-by: Alexander Kachkaev <alexander@kachkaev.ru >
2022-03-16 13:25:48 +09:00
fisker Cheung
ec2b75dce9
Merge branch 'main' into next
...
# Conflicts:
# .github/workflows/validate-vendor-versions.yml
# package.json
# scripts/build/bundler.mjs
2022-02-28 21:06:23 +08:00
fisker Cheung
a67a5c2f94
Remove vendors/ ( #12377 )
2022-02-28 19:48:14 +08:00
Alexander Sennikov and fisker Cheung
2cde2dbf9d
Add prettier-plugin-jsonata to the Plugins page in docs ( #12347 )
...
Co-authored-by: fisker Cheung <lionkay@gmail.com >
2022-02-22 09:47:46 +08:00
fisker Cheung
52c9a20e2c
Merge branch 'main' into next
...
# Conflicts:
# package.json
# src/cli/index.js
# tests/config/install-prettier.js
# tests/format/yaml/block-literal/jsfmt.spec.js
# tests/integration/__tests__/file-info.js
# yarn.lock
2022-02-21 16:12:59 +08:00
Sosuke Suzuki
162097e2d2
Format .swcrc as a JSON file ( #12320 )
...
* Format `.swcrc` as JSON
* Test `.swcrc` JSON formatting
* Add changelog
* Update snapshots
* Address reviews
* Update `cspell.json`
* Address review
2022-02-18 08:39:12 +09:00
fisker Cheung
f0b63f3dff
Merge branch 'main' into next
...
# Conflicts:
# CONTRIBUTING.md
# cspell.json
# docs/options.md
# package.json
# scripts/build/bundler.mjs
# src/language-css/loc.js
# src/language-css/parser-postcss.js
# src/language-css/utils/index.js
# tests/format/js/arrows-bind/jsfmt.spec.js
# tests/format/js/async-do-expressions/jsfmt.spec.js
# tests/format/js/bind-expressions/jsfmt.spec.js
# tests/format/js/classes/top-level-super/jsfmt.spec.js
# tests/format/js/comments-pipeline-own-line/jsfmt.spec.js
# tests/format/js/decorator-comments/jsfmt.spec.js
# tests/format/js/decorators-export/jsfmt.spec.js
# tests/format/js/decorators/jsfmt.spec.js
# tests/format/js/do/jsfmt.spec.js
# tests/format/js/export-default/escaped/jsfmt.spec.js
# tests/format/js/export-extension/jsfmt.spec.js
# tests/format/js/export-star/jsfmt.spec.js
# tests/format/js/exports/jsfmt.spec.js
# tests/format/js/invalid-code/jsfmt.spec.js
# tests/format/js/logical-assignment/jsfmt.spec.js
# tests/format/js/multiparser-invalid/jsfmt.spec.js
# tests/format/js/no-semi-babylon-extensions/jsfmt.spec.js
# tests/format/js/object-property-comment/jsfmt.spec.js
# tests/format/js/partial-application/jsfmt.spec.js
# tests/format/js/pipeline-operator/jsfmt.spec.js
# tests/format/js/private-in/jsfmt.spec.js
# tests/format/js/record/jsfmt.spec.js
# tests/format/js/reserved-word/jsfmt.spec.js
# tests/format/js/strings/jsfmt.spec.js
# tests/format/js/throw_expressions/jsfmt.spec.js
# tests/format/js/trailing-whitespace/jsfmt.spec.js
# tests/format/js/v8_intrinsic/jsfmt.spec.js
# tests/format/misc/errors/js/literal/jsfmt.spec.js
# tests/format/misc/errors/js/object/jsfmt.spec.js
# tests/format/misc/errors/js/variable-declarator/jsfmt.spec.js
# tests/integration/__tests__/bundle.js
# tsconfig.json
# yarn.lock
2022-02-09 09:22:32 +08:00
fisker Cheung
b1e59dd70a
Save vendor licenses for build script ( #12258 )
2022-02-08 10:33:09 +08:00
Sosuke Suzuki
6819dc91f6
Add an esbuild plugin to add @ts-nocheck annotation for vendors ( #12248 )
...
* Enable prettier
* Add `esbuildPluginTsNocheck`
* Run build
* Update cspell.json
2022-02-06 23:25:29 +09:00
fisker Cheung
7e73f1cf0d
Update cSpell config ( #12154 )
2022-01-27 15:03:49 +08:00
fisker Cheung
cc6856ae20
Build: Switch to esbuild (backport #12052 and #10006 ) ( #12055 )
2022-01-14 15:58:13 +08:00
fisker Cheung
668bbe7d0e
Merge branch 'main' into next
...
# Conflicts:
# package.json
# website/package.json
# website/yarn.lock
# yarn.lock
2022-01-10 16:41:09 +08:00
dependabot[bot]
56577a466b
Build(deps-dev): Bump cspell from 5.14.0 to 5.15.1 ( #12063 )
2022-01-09 08:15:06 -03:00
fisker Cheung
4593aa07c2
Build: Switch to esbuild ( #12052 )
2022-01-09 01:15:04 +08:00
fisker Cheung
0cfb9d95e4
Merge branch 'main' into next
2022-01-08 22:19:54 +08:00
fisker Cheung
52ec456ab2
Add final new line to cspell.json file ( #12049 )
2022-01-08 12:14:07 +08:00
fisker Cheung and Sosuke Suzuki
6bd81c23b6
Migrate format test to ES Module ( #11902 )
...
Co-authored-by: Sosuke Suzuki <aosukeke@gmail.com >
2022-01-04 17:00:25 +08:00
fisker Cheung
12d8ac32c5
Merge branch 'main' into next
...
# Conflicts:
# cspell.json
# package.json
# tests/integration/__tests__/early-exit.js
# yarn.lock
2022-01-04 15:04:40 +08:00
fisker Cheung
3a1de5cb4f
Simplify clean-cspell script ( #12015 )
2022-01-03 22:17:14 +08:00
Lucas Duailibe
c9c6d3364f
Fix lint
...
Add 'csharpier' to cspell.json
2021-12-29 03:49:49 -03:00
fisker Cheung
8ffbcbbcae
Refactor integration test files to use ES Module ( #11891 )
2021-12-02 10:19:32 +08:00
fisker Cheung
339e0c6db7
Fix build script ( #11468 )
2021-09-09 16:14:09 +08:00
fisker Cheung
beba6fa88c
Merge branch 'next' of github.com:prettier/prettier into next
...
# Conflicts:
# package.json
# yarn.lock
2021-09-08 12:54:17 +08:00
fisker Cheung and sosukesuzuki
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
a998e3c34d
Merge branch 'main' into next
...
# Conflicts:
# package.json
# scripts/build/bundler.mjs
# src/language-css/loc.js
# yarn.lock
2021-08-13 11:45:05 +08:00
fisker Cheung
bd4a5ff990
Update cspell ( #11236 )
2021-07-22 09:44:06 +08:00
Sosuke Suzuki and fisker Cheung
c2599d4714
Fix workflow files according to actionlint ( #11197 )
...
* Fix by actionlint
* Run actionlint in GH Actions
* Update cspelljson
* Test
* Revert
Co-authored-by: fisker Cheung <lionkay@gmail.com >
2021-07-13 17:27:04 +09:00
fisker
77f8f0ddb5
Merge branch 'main' into next
...
# Conflicts:
# package.json
# scripts/build/bundler.mjs
# yarn.lock
2021-06-14 00:31:55 +08:00
Sosuke Suzuki and fisker Cheung
321f736183
Retry "npm publish" when to enter OTP is faeild ( #11031 )
...
* Retry "npm publish" when to enter OTP is faeild
* Fix else
* Break
* Use async function
* Update cspell.json
* Address review
* Update scripts/release/steps/publish-to-npm.js
Co-authored-by: fisker Cheung <lionkay@gmail.com >
* Update scripts/release/steps/publish-to-npm.js
Co-authored-by: fisker Cheung <lionkay@gmail.com >
Co-authored-by: fisker Cheung <lionkay@gmail.com >
2021-06-07 13:07:22 +09:00
fisker Cheung
98abb990cc
Use Object.fromEntries(), Array#flat() and Array#flatMap() ( #10853 )
2021-05-12 01:05:29 +08:00
ba1a833378
Add 2.3 blog post ( #10659 )
...
* Start 2.3 blog post
* Apply suggestions from code review
Co-authored-by: Alex Rattray <rattray.alex@gmail.com >
* Regenerate the post
* Regenerate blog post
* Regenerate post
* Edit changelog entries
* Regenerate blog post
Co-authored-by: Alex Rattray <rattray.alex@gmail.com >
Co-authored-by: fisker Cheung <lionkay@gmail.com >
2021-05-10 00:15:27 +03:00
fisker Cheung
413bb11bc9
Merge branch 'main' into next
...
# Conflicts:
# package.json
# yarn.lock
2021-05-06 16:08:40 +08:00
fisker Cheung
60619338f1
Merge branch 'main' into next
...
# Conflicts:
# package.json
# tests/css/atrule/each.css
# tests/css/atrule/for.css
# tests/css/atrule/if-else.css
# tests/css/atrule/include.css
# tests/css/atrule/while.css
# tests/format/css/atrule/each.css
# tests/format/css/atrule/for.css
# tests/format/css/atrule/if-else.css
# tests/format/css/atrule/include.css
# tests/format/css/atrule/while.css
# tests/scss/atrule/each.scss
# tests/scss/atrule/for.scss
# tests/scss/atrule/if-else.scss
# tests/scss/atrule/include.scss
# tests/scss/atrule/while.scss
# yarn.lock
2021-05-06 16:00:12 +08:00
Sosuke Suzuki
63c744823b
Update babel parser ( #10802 )
...
* Update
* Use error codes instead of error messages
* Update js tests
* Update ts tests
* Add comments
* Remove plugins enabled by default
* update misc error tests
* Remove moduleStringNmaes
* use allowedMessagesCode directly
* Remove some misc tests
* Update snapshots for integration tests
* Add Redeclaration to cspell.json
2021-05-03 12:12:25 +09:00
TJ Mazeika and fisker Cheung
7e4f4d5fe6
Exclude @keyframes params from being parsed as a Less variable ( #10773 )
...
* Exclude @keyframes params from being parsed as a Less variable
* Update changelog_unreleased/css/10773.md
Co-authored-by: fisker Cheung <lionkay@gmail.com >
* Update changelog_unreleased/css/10773.md
Co-authored-by: fisker Cheung <lionkay@gmail.com >
* Add "keyframes" to cspell.json
Co-authored-by: fisker Cheung <lionkay@gmail.com >
2021-04-26 01:13:40 +03:00
fisker Cheung
85fc1fa017
Merge branch 'main' into next
...
# Conflicts:
# package.json
# src/language-css/printer-postcss.js
# yarn.lock
2021-03-29 19:47:56 +08:00