Merge branch 'main' into next

# Conflicts:
#	cspell.json
#	package.json
#	tests/integration/__tests__/early-exit.js
#	yarn.lock
This commit is contained in:
fisker Cheung committed 2022-01-04 15:04:40 +08:00
commit 12d8ac32c5
62 files changed
+1693 -1168

No files matched your search

+1
View File
@@ -35,3 +35,4 @@ title: Related Projects
- [jest-runner-prettier](https://github.com/keplersj/jest-runner-prettier) is Prettier as a Jest runner
- [prettier-chrome](https://github.com/u3u/prettier-chrome) is an extension that runs Prettier in the browser
- [spotless](https://github.com/diffplug/spotless) lets you run prettier from [gradle](https://github.com/diffplug/spotless/tree/main/plugin-gradle#prettier) or [maven](https://github.com/diffplug/spotless/tree/main/plugin-maven#prettier).
- [csharpier](https://github.com/belav/csharpier) is a port of Prettier for C#
+6
View File
@@ -17,6 +17,12 @@ The best way to install Neoformat is with your favorite plugin manager for Vim,
Plug 'sbdchd/neoformat'
```
In order for Neoformat to use a project-local version of Prettier (i.e. to use `node_modules/.bin/prettier` instead of looking for `prettier` on `$PATH`), you must set the `neoformat_try_node_exe` option:
```vim
let g:neoformat_try_node_exe = 1
```
Run `:Neoformat` or `:Neoformat prettier` in a supported file to run Prettier.
To have Neoformat run Prettier on save: