prettier/tests_integration/cli
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
..
arg-parsing test: remove unnecessary `eslint-disable` 2017-09-03 22:06:55 +08:00
config editorconfig: Only search for .editorconfig up to the VCS directory (#3559) 2017-12-26 18:16:09 +11:00
config-precedence fix(cli): validate options for every `config-precedence` (#2894) 2017-09-25 21:04:25 +02:00
debug-check fix(cli): do not early exit for `--debug-check` (#2987) 2017-10-07 04:36:43 -05:00
ignore-absolute-path fix(prettierignore): support absolute filename (#2783) 2017-09-10 18:21:56 +02:00
ignore-path test: remove unnecessary `eslint-disable` 2017-09-03 22:06:55 +08:00
ignore-relative-path Use relative paths with CLI (#2969) 2017-10-04 18:56:01 +11:00
invalid-ignore test(integration): add more tests 2017-09-03 21:31:33 +08:00
loglevel feat(cli): add `--loglevel` option (#2992) 2017-10-13 20:17:01 -05:00
multiple-patterns test: remove unnecessary `eslint-disable` 2017-09-03 22:06:55 +08:00
skip-folders Skip folders in CLI pattern 2017-12-05 16:07:27 -02:00
stdin-ignore fix(cli): respect `--ignore-path` when using `--stdin-filepath` (#3309) 2017-11-23 21:54:04 +11:00
with-node-modules test: remove unnecessary `eslint-disable` 2017-09-03 22:06:55 +08:00
with-parser-inference Also infer parser when using `--list-different` (#1997) 2017-06-06 08:24:56 -07:00
with-shebang Add regression test for CLI shebang preservation (#1901) 2017-06-02 13:42:44 -07:00
write Fix typo in test files (`*formated` -> `*formatted`) (#2982) 2017-10-06 20:01:21 +11:00