prettier/tests_integration/cli/config/editorconfig
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
..
lib Re-add EditorConfig support (undo #3213) (#3255) 2017-12-05 09:28:27 +11:00
repo-root editorconfig: Only search for .editorconfig up to the VCS directory (#3559) 2017-12-26 18:16:09 +11:00
.editorconfig Re-add EditorConfig support (undo #3213) (#3255) 2017-12-05 09:28:27 +11:00
file.js Re-add EditorConfig support (undo #3213) (#3255) 2017-12-05 09:28:27 +11:00