prettier/tests_integration/cli/config
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
..
$schema Delete $schema from resolved config 2017-10-18 23:54:55 +11:00
editorconfig editorconfig: Only search for .editorconfig up to the VCS directory (#3559) 2017-12-26 18:16:09 +11:00
filepath Resolve file paths relative to config file (#3037) 2017-10-15 18:32:16 +11:00
invalid fix: ignore and show warning for unknown option from config file (#2929) 2017-09-28 19:59:32 +02:00
jest Enable cosmiconfig rcExtensions (#2749) 2017-09-17 02:47:53 +10:00
js Re-add EditorConfig support (undo #3213) (#3255) 2017-12-05 09:28:27 +11:00
no-config Enable cosmiconfig rcExtensions (#2749) 2017-09-17 02:47:53 +10:00
package Re-add EditorConfig support (undo #3213) (#3255) 2017-12-05 09:28:27 +11:00
rc-json Enable cosmiconfig rcExtensions (#2749) 2017-09-17 02:47:53 +10:00
rc-yaml Enable cosmiconfig rcExtensions (#2749) 2017-09-17 02:47:53 +10:00
.prettierrc Re-add EditorConfig support (undo #3213) (#3255) 2017-12-05 09:28:27 +11:00