ikatyang
08460e5ca5
test: add tests for `--stdin-filepath`
2017-09-08 15:08:19 +08:00
ikatyang
50a26900de
refactor: remove unnecessary code
2017-09-08 14:55:22 +08:00
ikatyang
d762f9d191
refactor: toNumber in getter
2017-09-08 14:53:13 +08:00
ikatyang
91ecadd168
refactor: validate value in getter
2017-09-08 14:48:54 +08:00
ikatyang
6e9e441aa9
refactor: reduce duplicate parameters
2017-09-08 13:57:45 +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
98c45bb421
refactor: use getter to show warning
2017-09-08 12:33:26 +08:00
Lucas Duailibe
85f1351366
Fix unused var
2017-09-07 21:57:07 -06:00
Lucas Duailibe
3cfee9c976
Clarification of code
2017-09-07 21:57:07 -06:00
Lucas Duailibe
2c37697f82
Fix chained logical expressions with objects/array/etc inlined
2017-09-07 21:57:07 -06:00
ikatyang
b13a104a7b
test: add test for `--flow-parser`
2017-09-08 11:45:59 +08:00
Lucas Duailibe
f964be5f8a
Remove unnecessary tests
2017-09-07 21:29:53 -06:00
Lucas Duailibe
541e929b43
Change how JSX mode is activated in ternaries
2017-09-07 21:29:53 -06:00
ikatyang
0630d174ab
test(integration): fix status
2017-09-08 10:59:48 +08:00
ikatyang
de2f61cd3e
Merge branch 'master' into refactor/cli
2017-09-08 10:58:28 +08:00
ikatyang
8939ee45db
refactor: extract normalize function
2017-09-08 10:57:29 +08:00
ikatyang
0981de9790
refactor: add missing dot
2017-09-08 08:54:59 +08:00
ikatyang
402519ffb0
refactor: no need to use `reduce`
2017-09-07 18:13:19 +08:00
ikatyang
fe4c5eb582
refactor: no need to pass additional arg
2017-09-07 17:09:45 +08:00
ikatyang
fdf257b97f
refactor: rename `err` to `error`
2017-09-07 17:02:43 +08:00
ikatyang
1156cb3e67
refactor: no need to use `switch..case`
2017-09-07 16:48:13 +08:00
ikatyang
3aef0bf1a0
refactor: remove unnecessary code
2017-09-07 16:41:51 +08:00
ikatyang
4163a4fa83
refactor: replace cliDefaultOptions with apiDefaultOptions
2017-09-07 16:23:40 +08:00
ikatyang
11183f6d7e
refactor: extract validate option functions
2017-09-07 15:14:43 +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
Ika
aaac83d126
refactor(runPrettier): reduce duplicate code ( #2764 )
2017-09-07 07:16:45 +02:00
ikatyang
80e5b515ec
refactor: rename variable
2017-09-07 11:30:04 +08:00
ikatyang
df6a74a3c5
refactor: sort `_options` keys
2017-09-07 11:25:46 +08:00
ikatyang
29f1873377
refactor: centralize options
2017-09-07 11:19:43 +08:00
ikatyang
0b78c53b0a
refactor: rename `e` with `error`
2017-09-07 10:27:01 +08:00
ikatyang
18782f77cb
refactor: rename `resolveConfig` with `logResolvedConfigPathOrDie`
2017-09-07 10:23:40 +08:00
ikatyang
d139006c98
refactor(cli): extract validate-related functions
2017-09-07 10:18:20 +08:00
Lucas Azzola
87503e5ef7
Refactor error handling ( #2750 )
2017-09-06 09:52:59 +10:00
Lucas Duailibe
15989df6e1
Group last argument if it's an empty object with a comment ( #2758 )
2017-09-05 12:22:25 -07:00
Anthony Sottile
4d68faf195
Use `files:` over `types:` in pre-commit configuration ( #2759 )
...
See https://github.com/prettier/prettier/issues/2745
2017-09-05 12:17:02 -07:00
James Henry
9c4ec68afd
Fix: TypeScript never keyword ( fixes #2718 ) ( #2756 )
2017-09-05 11:37:22 -07:00
Ika
2d6c4f70e9
chore(github): add issue template ( #2755 )
2017-09-05 09:41:11 -07:00
Roman Kurbatov
01387bc9d1
fixes dynamic imports ( #2748 )
2017-09-05 11:57:36 +10:00
Mitermayer Reis
c59a82cbae
Add CLI option '--config-precedence' ( #2733 )
...
Add CLI option '--config-precedence'
2017-09-05 08:56:23 +10:00
Maxime Thirouin
7eaf5c7cb7
Improve lint-staged setup example by adding more filetypes ( #2746 )
2017-09-04 17:42:26 +10:00
Simon Lydell
a29b407dda
Generalize run-external-typescript-tests.js ( #2742 )
...
... so it can run external Flow tests as well (or any external tests for
that matter).
2017-09-03 13:41:07 -07:00
Simon Lydell
133303f47a
Ignore some things in coverage ( #2741 )
...
- If statements for old deprecated stuff.
- "This should never happen" (and never happens in the tests) code paths.
2017-09-03 13:40:44 -07:00
Simon Lydell
368522cf33
Normalize CSS case ( #2736 )
...
Fixes #2653 .
2017-09-03 21:22:28 +02: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
Simon Lydell
fd025a855e
Merge pull request #2738 from ikatyang/test/more-cli-tests
...
test(integration): add more tests
2017-09-03 16:24:44 +02:00
Ika
c1707cf40c
chore(deps): remove `cross-spawn` ( #2739 )
2017-09-03 16:10:58 +02:00
ikatyang
ca7be87f9e
test: remove unnecessary `eslint-disable`
2017-09-03 22:06:55 +08:00
Simon Lydell
f903ae45ed
Make run-external-typescript-tests.js cross-platform ( #2737 )
...
The old version had quite a bit of code related to grouping errors,
showing the number of errors per group and saving the groups of errors
to different files. However, now there are only 12 bad tests so I didn't
bother porting that logic to the new version. Instead, the errors a
simply printed to stdout.
2017-09-03 15:59:19 +02:00