prettier/tests_integration
Joseph Frazier 7b211eab24 editorconfig: Only search for .editorconfig up to the VCS directory (#3559)
* editorconfig: Only search for .editorconfig up to $PWD

This addresses https://github.com/prettier/prettier/issues/3558

I'm not sure if this is the best way to find the "project root", but it
seems better than before.

* editorconfig: Search for `.editorconfig` up to the VCS directory

This uses [find-project-root] to find the nearest directory containing `.git` or `.hg`

See here for context: https://github.com/prettier/prettier/pull/3559#issuecomment-353756948

[find-project-root]: https://github.com/kirstein/find-project-root

* editorconfig: Add test for finding VCS directory

It's a little hacky in that the .hg file isn't really a Mercurial
repository, but it's enough to illustrate the intent. See here for
context: https://github.com/prettier/prettier/pull/3559#issuecomment-353857109
2017-12-26 18:16:09 +11:00
..
__tests__ editorconfig: Only search for .editorconfig up to the VCS directory (#3559) 2017-12-26 18:16:09 +11:00
cli editorconfig: Only search for .editorconfig up to the VCS directory (#3559) 2017-12-26 18:16:09 +11:00
custom-parsers Implement custom parser API (#1783) 2017-06-12 16:51:12 +10:00
.eslintrc.yml Convert eslint config and users/languages/editors files to YAML (#3516) 2017-12-18 21:55:10 +11:00
path-serializer.js Fix unit tests on Windows (#2922) 2017-09-28 19:30:51 +10:00
runPrettier.js Prettier Plugin API (#3536) 2017-12-26 12:23:50 +11:00