Simon Lydell
c99f7e2e38
Tweak option descriptions
2017-09-13 18:21:04 +08:00
Simon Lydell
4e5c808730
Fix typo in option description
2017-09-13 18:21:04 +08:00
ikatyang
1a4aac8f9b
refactor: put `no-option` after `option`
2017-09-10 14:10:42 +08:00
ikatyang
0c3fe2bc9f
refactor: sort category
2017-09-10 13:45:18 +08:00
ikatyang
b9bc54aab6
refactor: adjust category
2017-09-10 13:37:21 +08:00
ikatyang
eaafbb77aa
refactor: adjust warning message
2017-09-10 12:17:33 +08:00
ikatyang
4d4d8e3f4e
refactor: normalizeArgv without using getter
2017-09-09 13:38:28 +08:00
ikatyang
97100c42c4
test(integration): add tests for cursor-offset
2017-09-09 12:06:50 +08:00
ikatyang
6ab8edafd5
test: add tests
2017-09-09 11:49:22 +08:00
ikatyang
c88a45bbf7
refactor: categorize usages
2017-09-08 16:52:09 +08:00
ikatyang
08460e5ca5
test: add tests for `--stdin-filepath`
2017-09-08 15:08:19 +08:00
ikatyang
a0e7613058
refactor: set deprecared option value warning on getter
2017-09-08 13:54:28 +08:00
ikatyang
d9fd340902
test: add test for deprecated option value
2017-09-08 12:36:00 +08:00
ikatyang
b13a104a7b
test: add test for `--flow-parser`
2017-09-08 11:45:59 +08:00
ikatyang
0981de9790
refactor: add missing dot
2017-09-08 08:54:59 +08:00
ikatyang
be22996fd3
refactor: sort usages
2017-09-07 13:39:39 +08:00
ikatyang
c337f9bb23
refactor: auto generate usage from options
2017-09-07 13:32:15 +08:00
Lucas Azzola
87503e5ef7
Refactor error handling ( #2750 )
2017-09-06 09:52:59 +10:00
Mitermayer Reis
c59a82cbae
Add CLI option '--config-precedence' ( #2733 )
...
Add CLI option '--config-precedence'
2017-09-05 08:56:23 +10:00
Simon Lydell
58350cbe59
Fix failing test on Travis CI
...
Chalk disables colors in CI environments, making the test pass locally
but not on Travis CI.
This also makes the snapshot more readable.
2017-09-03 17:02:12 +02:00
ikatyang
ca7be87f9e
test: remove unnecessary `eslint-disable`
2017-09-03 22:06:55 +08:00
ikatyang
ac9fa43114
test(integration): add more tests
2017-09-03 21:31:33 +08:00
Simon Lydell
7c9e589323
Fix CLI option parsing ( #2684 )
...
Fixes #2683
2017-08-29 08:16:04 +02:00
Lucas Azzola
1c806f81b2
Rename --resolve-config to --find-config-path ( #2453 )
2017-07-11 23:57:26 +10:00
Evilebot Tnawi
469059dc20
CLI: Support .ignore files ( #2412 )
...
Closes #2294
2017-07-11 23:33:46 +10:00
Lucas Azzola
dcccfed366
Implement cosmiconfig for workspace configuration ( #2434 )
...
* Implement cosmiconfig
* Add resolveOptions API and extname support
* Add --resolve-config and --config, rename resolveOptions to resolveConfig
* Move color to top-level CLI options
* Fix unknown param warning
* Change from {} to null when no config is found
* Change override API to emulate eslint
* Add test for eslint-style overrides
* Delete overrides from resolveConfig
2017-07-10 22:26:36 +10:00
Evilebot Tnawi
a0cadad222
feat(cli): support multiple patterns with ignore pattern ( #2356 )
2017-07-04 17:55:06 +02:00
Lucas Azzola
21f913cb6e
CLI: ignore node_modules with ./**-style glob, fixes #2110 ( #2185 )
2017-06-18 14:35:42 +10:00
Lucas Azzola
364c38de0d
Implement custom parser API ( #1783 )
...
* feat(api): add custom parser API
* test(api): add integration test for parser resolution
* chore(api): fix build after resolving conflicts
* docs(api): document custom parser API
* docs(api): fix typo
* chore(build): add parse5 to build and support yarn test --prod
2017-06-12 16:51:12 +10:00
Philipp Spieß
d679f235ed
Also infer parser when using `--list-different` ( #1997 )
...
* Also infer parser when using `--list-different`
* Add integration tests for parser inference
2017-06-06 08:24:56 -07:00
Joseph Frazier
f6dabc0d27
Add regression test for CLI shebang preservation ( #1901 )
...
Following up on https://github.com/prettier/prettier/pull/1899
2017-06-02 13:42:44 -07:00
Michał Pierzchała
7a0df958dc
Ignore node_modules when running prettier from CLI ( #1683 )
...
* Ignore node_modules by default
* Add integration test suite for --with-node-modules CLI arg
* Refactor tests to snapshots
* Disable eslint for purposely faulty files
* Fix node 4
* Fix prettier
* Gitignore only top-level node_modules
2017-05-23 14:19:04 -07:00