Commit Graph
268 Commits
Author SHA1 Message Date
fisker CheungandChris Brody 73e3976c34 Add espree parser (#9000)
Co-authored-by: Chris Brody <chris.brody+brodybits@gmail.com>
2020-10-13 09:14:02 +08:00
fisker Cheung ba14e7c3f2 CLI: Fix error on dir or file that name is a number (#9298) 2020-10-08 22:00:01 +08:00
dependabot[bot]andsosukesuzuki 31c193593b Build(deps): Bump linguist-languages from 7.11.0 to 7.11.1 (#9320)
* Build(deps): Bump linguist-languages from 7.11.0 to 7.11.1

Bumps [linguist-languages](https://github.com/ikatyang/linguist-languages) from 7.11.0 to 7.11.1.
- [Release notes](https://github.com/ikatyang/linguist-languages/releases)
- [Commits](https://github.com/ikatyang/linguist-languages/compare/v7.11.0...v7.11.1)

Signed-off-by: dependabot[bot] <support@github.com>

* Update snapshot for linguist-languages

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: sosukesuzuki <aosukeke@gmail.com>
2020-10-05 18:57:44 +08:00
fisker Cheung 203be9da5a Change test package name (#8848) 2020-09-18 14:05:29 +08:00
Yuku Kotaniandfisker 549090a5ba Add ESM distributions for browser (#8983)
Co-authored-by: fisker <lionkay@gmail.com>
2020-09-17 00:08:44 +08:00
dependabot[bot]andfisker ce0b08ab03 Build(deps): Bump linguist-languages from 7.10.0 to 7.11.0 (#9166)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: fisker <lionkay@gmail.com>
2020-09-09 14:18:51 +08:00
fisker Cheung c8e7e0b003 Update js languages (#9073) 2020-08-28 10:02:45 +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 Cheung d31ebf4619 Test: Improve coverage (#8811) 2020-08-21 09:43:24 +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 7c318cc677 Support .prettierrc.json5 config file (#8957) 2020-08-15 21:16:49 +08:00
dependabot[bot]andfisker 07fbf265fa Build(deps): Bump cosmiconfig from 6.0.0 to 7.0.0 (#8890)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: fisker <lionkay@gmail.com>
2020-08-10 21:59:41 +08:00
fisker Cheung a340799a3d CLI: Don't suggest -_ for unknown flags (#8934) 2020-08-10 21:57:54 +08:00
fisker Cheung 770ecfbabc Add test to confirm prettier . work with plugins (#8835) 2020-08-06 23:15:19 +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 466d4638b4 CLI: Add -w alias for --write option (#8833) 2020-07-27 10:10:01 +08:00
fisker Cheung 86b8395ed7 Fix cli --file-info bug (part 2) (#8830) 2020-07-24 23:31:59 +08:00
Anders Kaseorg bd679a7625 Bump loglevel of issues reported by --check to warn (#8703)
When prettier --check is run by a script that combines the output from
dozens of separate linters, any progress output like “Checking
formatting...” and “All matched files use Prettier code style!” is
just noise that makes it harder to see whether there are real
errors. Bump the loglevel of issues reported by --check from log to
warn so that the noise can be selectively silenced with
--loglevel=warn.

Signed-off-by: Anders Kaseorg <andersk@mit.edu>
2020-07-14 22:13:51 +08:00
fisker Cheung 8a635f5bdf Fix expect.resolves assert (Part 2) (#8756) 2020-07-14 21:53:45 +08:00
Franck Nijhof e5b026704f Add Home Assistant vscode language ID as YAML (#8739) 2020-07-14 17:28:36 +08:00
Andrew HutchingsandGeorgii Dolzhykov 0faeee73db Fix expect.resolves assert (#5176)
Co-authored-by: Georgii Dolzhykov <thorn.mailbox@gmail.com>
2020-07-14 17:06:39 +08:00
fisker Cheung 0c2b918078 ESLint: enable import/order (#8635) 2020-06-26 20:30:21 +08:00
fisker Cheung b9ea67f32a Fix: resolving to incorrect config in getFileInfo() (#8585) 2020-06-19 22:28:27 +08:00
fisker Cheung a4e5f2053d Fix cli --file-info bug (#8586)
* Fix cli `--file-info` bug

* Add changelog

* Update pr-8586.md
2020-06-18 18:18:19 +03:00
fisker Cheung fbf0beb716 Fix inferredParser when calling getFileInfo() with resolveConfig: true (#8551) 2020-06-17 18:47:56 +08:00
fisker Cheung e54d4fc01a Do not inferParser for ignored files (#8548) 2020-06-17 13:49:52 +08:00
Sosuke Suzuki b4d1053bb4 Refactor: Use normalizeParts from document/utils in printer-markdown (#8496)
* Use normalizeParts from utils in printer-markdown

* Remove flatting for concat from normalizeDoc

* Fix undef parts

* Move normalizeDoc to doc-utils

* Add test for normalizeDoc

* Modify tests to avoid specllcheck errors
2020-06-05 12:47:24 +03:00
fisker Cheung 507c3403e3 Add some tests for sharedUtil (#8412) 2020-05-26 17:11:43 +03:00
Georgii Dolzhykov 67cbab7f48 Add plugins' parsers to the parser option (#8390)
* Add plugins' parsers to the `parser` option

* Add changelog entry

* Add plugin name to value description

* Update snapshot
2020-05-25 14:03:20 +03:00
fisker Cheung da44da64bb Test bundled cosmiconfig (#8262) 2020-05-08 21:41:46 +08:00
fisker Cheung d2f51d7494 Fix ignore bug on windows (#8098)
* Fix file ignore bug on windows

* Use `ignore.ignores`

* Fix -stdin-filepath

* Add changelog
2020-04-21 14:33:20 +03:00
Kevin Gibbons 22d149b9f6 Add --embedded-language-formatting={auto,off} option (#7875) 2020-04-11 20:22:44 +03:00
fisker CheungandGeorgii Dolzhykov f475a5bd43 Update spellcheck config and scripts (#8012)
Co-authored-by: Georgii Dolzhykov <thorn.mailbox@gmail.com>
2020-04-12 01:19:00 +08:00
Robson Roberto Souza Peixoto 5569e3306e Use yaml formatter to format ansible files (#7992)
The Ansible[1] extension define a new language for yaml files that describe
ansible playbooks and because of that is not possible use the prettier
extension with ansible files.

1 - https://marketplace.visualstudio.com/items?itemName=vscoss.vscode-ansible
2020-04-11 18:12:21 +03:00
fisker Cheung aeeb2ff7a8 Throw original error when loading external config (#7973) 2020-04-10 21:27:50 +08:00
fisker Cheung f0207e6850 Enable unicorn/better-regex (#7991)
* Enable `unicorn/better-regex`

* Spellcheck ignore regex
2020-04-10 21:20:40 +08:00
Georgii Dolzhykov aacaf4b2f2 Fix unexpected GitHub Actions failures (#7980) 2020-04-08 02:37:57 +03:00
Georgii Dolzhykov 996d1cbb4f Add please-upgrade-node (#7837) 2020-03-23 03:32:05 +02:00
dependabot-preview[bot]andGeorgii Dolzhykov 6257951386 Bump linguist-languages from 7.8.0 to 7.9.0 (#7809)
* Bump linguist-languages from 7.8.0 to 7.9.0

Bumps [linguist-languages](https://github.com/ikatyang/linguist-languages) from 7.8.0 to 7.9.0.
- [Release notes](https://github.com/ikatyang/linguist-languages/releases)
- [Commits](https://github.com/ikatyang/linguist-languages/commits)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

* ignore yarn.lock

* update snapshots

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
Co-authored-by: Georgii Dolzhykov <thorn.mailbox@gmail.com>
2020-03-22 22:57:12 +02:00
Georgii Dolzhykov 9dad95b35f Bump Prettier dependency to 2.0.0 2020-03-21 22:09:54 +02:00
Georgii Dolzhykov 3f1c46373a Expand directories in CLI (2020) (#7660) 2020-03-17 01:34:32 +02:00
Georgii Dolzhykov 1f64401915 remove --stdin (#7668) 2020-02-27 02:19:52 +02:00
Chris Blossom 1f30e18806 fix overrides pattern matching to include dot files (#5813) 2020-02-25 03:25:33 +02:00
fisker Cheung 04012b9dc7 Remove --flow-parser/useFlowParser (#7511) 2020-02-24 19:30:12 +02:00
fisker Cheung 6515a7ebe9 Remove deprecated options (#7536) 2020-02-24 18:58:32 +02:00
fisker Cheung fc8218b5a6 Remove postcss parser (#7535) 2020-02-24 18:58:16 +02:00
fisker Cheung b3f0102a87 Remove babylon parser (#7533)
* Remove `babylon`

* Add changelog

* Fix website files
2020-02-24 18:19:03 +02:00
Georgii Dolzhykov cf3d9f0b80 api: remove the version parameter of getSupportInfo (#7620)
* api: remove the version parameter of getSupportInfo

* add changelog entry

* remove mapDeprecated

* Update pr-7620.md

* remove the first parameter completely

* Update api.md

* add default value for opts just to be on the safe side
2020-02-23 02:47:17 +02:00
fisker Cheung 647c041b57 Check pattern existence before glob (#7587) 2020-02-19 12:57:39 +02:00
fisker CheungandChristopher J. Brody 3cef19c73e Update globby to v11 (#6776)
* globby@10 update (with fast-glob implementation)

with some minor test snapshot updates in tests_integration since
fast-glob does not always keep the same file order as node-glob

* with no `nodir: true` option

use of no `nodir: true` option was introduced in 639c52388
but it does not seem to be needed with some newer
versions of globby

* with workaround for fast-glob on Windows

ref: https://github.com/mrmlnc/fast-glob#how-to-write-patterns-on-windows

Co-authored-by: fisker Cheung <lionkay@gmail.com>
Co-authored-by: Christopher J. Brody <chris@brody.consulting>

* Revert "with no `nodir: true` option"

This reverts commit f7297cbceebc3d939bca0d90a904a1d3fea45345.

* revert updates to snapshots in tests_integration

* sort the file paths from globby

and update some snapshots in tests_integration

* Update build scripts

* replace `util.promisify` with `pify`

* style

* typo

* add pify to dict

* check index.js

* debug

* exclude `transform-async-to-generator`

* fix `bin-prettier.js`

* restore disabled script

* try depth:1

* remove depth add `./`

* sort dir

* disable expandDirectories

ref: https://github.com/sindresorhus/globby/blob/master/index.js#L95

* use absolute path

* remove sort()

* sort dir

* use `alphasorti` compare

* remove './'

* fix `findPluginsInNodeModules`

* fix `findPluginsInNodeModules`

* restore snap

* fix `findPluginsInNodeModules`

* return early

* code style

* sort

* update snap

* try mem

* mem `loadPlugins` function

* fix

* glob directories instead of package.json

* use deep

* remove mem

* improve speed

* support dot pattern

* expand directories test

* restore import order

* remove snap

* update test

* restore `findPluginsInNodeModules`

* Update `globby`

* `fast-glob` beta

* Restore logic

* Add tests for `globby` update

* Fix tests

* Remove option with default value

* Try new beta version of `fast-glob`

* Restore error info

* Add `path.sep` check
2020-02-18 17:36:22 +02:00