Lucas Duailibe
2466ce11a5
Force template literals to break after ` for sytled-components ( #2926 )
...
Force template literals to break after ` for styled-components
2017-10-02 17:55:42 +02:00
Lucas Azzola
64ec692b92
Mention labels docs in CONTRIBUTING.md ( #2950 )
...
Also remove `--` that was required in `yarn` v0.
2017-10-02 07:44:45 +02:00
Ika
c7f9bb5731
chore(deps): update cosmiconfig to v3.1.0 ( #2952 )
2017-10-02 13:01:32 +11:00
Lucas Azzola
a6096ee799
Respect --stdin-filepath, regardless of config source ( #2948 )
...
* Respect --stdin-filepath, regardless of config source
Fixes #2946
* Remove obsolete snapshot
2017-10-01 15:55:35 +11:00
Lucas Azzola
3329ee022f
Upgrade prettier to 1.7.3 ( #2940 )
2017-09-30 14:28:53 +02:00
Lucas Azzola
099cf760d0
Update ISSUE_TEMPLATE to 1.7.3
2017-09-30 20:57:49 +10:00
Lucas Azzola
ecf0281b31
1.7.3
2017-09-30 20:48:10 +10:00
Simon Lydell
808dc4e7e3
Add missing quote in README.md
...
Fixes #2935 .
2017-09-30 10:00:47 +02:00
Simon Lydell
9d448fb217
Try to fix website deploy
2017-09-29 10:50:58 +02:00
Simon Lydell
fa882b26af
Fix Travis production builds ( #2933 )
...
* Fix Travis production builds
* Fix Travis production builds, attempt 2
* Remove `allow_failures` in .travis.yml
The reason we allowed the production builds to fail in the first place:
❯ git show 532ac0d3f
commit 532ac0d3f8
Author: Joseph Frazier <1212jtraceur@gmail.com>
Date: 2017-06-17 19:37:51 -0400
Build/test dist/ on Travis (#2176 )
This helps us keep track of whether or not the dist/ build actually
works (see https://github.com/prettier/prettier/pull/2174 ). Note that
the dist/ jobs are allowed to fail, and do not affect overall build
time, so they shouldn't slow anything down (see
https://blog.travis-ci.com/2013-11-27-fast-finishing-builds/ ).
However, as we discovered in #2933 requiring the production builds to
succeed only adds about 1 minute of build time, so it is not worth the
risk of missing that the production builds fail.
2017-09-29 09:34:47 +02:00
Simon Lydell
63916beebb
Try to fix cosmiconfig in the built version of Prettier ( #2930 )
2017-09-29 09:27:50 +02:00
Ika
0d756080b5
fix: ignore and show warning for unknown option from config file ( #2929 )
2017-09-28 19:59:32 +02:00
Simon Lydell
51d123b3f1
Update postcss-values-parser ( #2928 )
...
My PR has been merged and released to npm, so no need to depend on my
fork anymore.
2017-09-28 19:59:14 +02:00
Lucas Azzola
3c91c2ab42
Fix unit tests on Windows ( #2922 )
2017-09-28 19:30:51 +10:00
Lucas Azzola
264ec70999
Don't use parens with optional chaining meber expressions ( #2921 )
2017-09-28 17:46:47 +10:00
Lucas Azzola
ae21d60386
Recommend pinning prettier version ( #2920 )
...
* Recommend pinning prettier version
* Change from -E to --exact/--save-exact
2017-09-28 14:34:32 +10:00
Stephen Scott
75781a6d16
1.7.2
2017-09-27 17:20:13 -06:00
Lucas Duailibe
038d02b3e2
Revert "Fix line break in test declarations with a single argument function declaration" ( #2912 )
...
This reverts commit 3703cb5b07
.
2017-09-27 21:32:34 +02:00
Simon Lydell
0313ce6299
Fix the playground for 1.7.1
2017-09-27 20:38:16 +02:00
Stephen Scott
c2bc33b3ad
1.7.1
2017-09-27 11:00:29 -06:00
Lucas Azzola
11a7b8d308
Fix printing of comments between decorators and method names ( #2906 )
2017-09-28 00:03:11 +10:00
Jake Gavin
6179d92518
Fix editor styles for blank playgrounds ( #2904 )
2017-09-27 08:06:48 +02:00
Lucas Azzola
f77e471b0c
Upgrade to ts2.5.3-insiders ( #2842 )
2017-09-27 15:43:17 +10:00
Lucas Duailibe
3703cb5b07
Fix line break in test declarations with a single argument function declaration ( #2877 )
2017-09-26 19:24:25 +02:00
jackyho112
88049a3d6b
Keep original empty lines in argument list ( #2763 )
...
* Account for empty lines in argument list in typical cases
* Fix build errors
* Fix one more build error
* Refactor
* Have better variable names for printing argument list
* Account for feedback on argument list empty lines
* Improve expanion argument logics
* Add a lot more tests
* Improve a test
* Make code cleaner
* Fix a lint error
* Refactor
* Add one last check
* Refactor
2017-09-26 17:47:56 +02:00
Lucas Azzola
daef144102
Support fit(), xit(), it.only(), etc ( #2900 )
2017-09-26 23:12:38 +10:00
Stephen Scott
e1c2085d2e
Merge pull request #2888 from motiz88/fix-2593
...
Use semicolons in Flow interface-like bodies (#2593 )
2017-09-25 22:31:24 -07:00
Simon Lydell
c6bac7cfe6
Split Less and SCSS parsing into different parsers ( #2844 )
...
* Split Less and SCSS parsing into different parsers
Now, .less files are always parsed with postcss-less, and .scss files
areare always parsed with postcss-scss. This:
- Is less hacky.
- Is meant to avoid issues like #2829 .
- Is probably more performant.
`parser: "postcss"` and `--parser postcss` continue to work like before:
First trying postcss-less, and if that fails, postcss-scss, unless a
regex says that we should try in the opposite order. The new values for
the parser option are "postcss-less" and "postcss-scss".
* Remove postcss from package.json since it is not used
* Rename parser-less to less and parser-scss to scss
* Deprecate parser:postcss in favor of parser:css
* Fix CSS tests
2017-09-26 07:08:11 +02:00
Ika
70f5165bb1
fix(typescript): allow symbol type ( #2899 )
2017-09-26 12:34:31 +10:00
Ika
630ea58a50
refactor: use custom error ( #2896 )
2017-09-25 21:11:27 +02:00
Ika
4435ecbc7b
fix(cli): validate options for every `config-precedence` ( #2894 )
...
* fix(cli): validate options for every `config-precedence`
* refactor: use camelcase
* refactor: reduce duplicate code
* refactor: rename function
* refactor: rename parameter
2017-09-25 21:04:25 +02:00
Mitermayer Reis
798bdb0e6a
We do not need to have a reference to the toolbox-companion since we ( #2892 )
...
have our own implementation of it under install-service-worker.js
2017-09-25 20:46:40 +02:00
Ika
d0a622ffa8
fix: do not print stack trace for invalid option ( #2895 )
...
* fix: do not print stack trace for invalid option
* refactor: use ConfigError
2017-09-25 20:42:56 +02:00
Moti Zilberman
5e146cdabe
Use semicolons in Flow interface-like bodies ( #2593 )
...
Closes #2593 .
2017-09-25 12:45:40 +01:00
Simon Lydell
cd4d4e7273
Don't lowercase SCSS placeholder selectors ( #2876 )
...
Fixes #2872 .
2017-09-21 20:23:22 +02:00
Ika
184e368a9a
feat: support detailed `--help` ( #2847 )
...
* feat: support detailed --help
* refactor: put alias first, separate with comma
* feat: support detailed --help for --no-option
* docs: add missing type
* docs: remove `This requires node 8 or a transform`
* docs: remove config-precedence's choice descriptions in option.description
* docs: replace `option-name` with `flag`
* docs: update docs for `choices`
* docs: update `help` description
* docs: update error message
* docs: replace `undocumented` with empty string
* refactor: extract `getOptionDefaultValue`
* refactor: dynamically generate `defaults to ...`
* refactor: extract `getOptionWithLevenSuggestion`
* refactor: extract `createChoiceUsages`
* refactor: remove `optionTitleName`
* test: add `--help` tests for all options
* fix: handle `--help --help`
* feat: support `--help <alias>`
* refactor: use `flattenArray`
* feat: handle `--help <unknown>`
* docs: add description for `semi`, `color` and `bracket-spacing`
* fix: remove unnecessary option in `--help`
2017-09-21 07:54:13 +02:00
Lucas Duailibe
9b0d6b8de0
Fix different precedence binary expression when inlining ( #2827 )
2017-09-20 17:07:51 +02:00
Brian Ng
2be986d0d7
Add support for ClassPrivateProperty ( #2837 )
2017-09-19 21:41:24 +02:00
Simon Lydell
68d1b56696
Comment out config file extensions docs until next release
...
See #2861 .
2017-09-19 21:37:20 +02:00
Hugo Dias
f6356ae94c
chore: add prettier-stylelint to the related projects ( #2859 )
2017-09-19 20:23:06 +02:00
Daniel Tschinder
eb776b7635
Update cosmiconfig to 3.0.1 to avoid memory leak ( #2848 )
2017-09-18 09:09:07 +10:00
Nick Ribal
592f99fde6
Enable cosmiconfig rcExtensions ( #2749 )
...
* Enable cosmiconfig rcExtensions; add two tests
* Remove default value; make integration input files self descripting; update all integration snapshots
* Add engines field to package.json
2017-09-17 02:47:53 +10:00
Simon Lydell
ed67690925
Fix playground for the next release
2017-09-16 15:35:32 +02:00
Lucas Azzola
48899289da
Upgrade cosmiconfig to v3, remove hardcoded combinatoric problem ( #2843 )
...
* Upgrade cosmiconfig to v3, remove hardcoded combinatoric problem
* Fix indendation change from 1.7
* Ensure default value for useCache is true
* Pin mem version
2017-09-16 20:24:08 +10:00
Joseph Frazier
2c59fb2f07
Upgrade prettier dependency to 1.7.0, fix lint ( #2821 )
2017-09-15 15:49:55 -04:00
Simon Lydell
fb55367633
Don't lowercase Less variables when parsed with SCSS parser ( #2833 )
...
Fixes #2829
2017-09-15 19:48:16 +02:00
Simon Lydell
23041e2113
Don't lowercase `&class` in SCSS/Less selectors ( #2834 )
...
Fixes #2830
2017-09-15 19:48:04 +02:00
Brian Ng
5bd8ca472b
Bump Babylon ( #2831 )
2017-09-15 17:26:35 +02:00
Simon Lydell
06c9127f02
Update instructions for running tests against dist
...
Fixes #2819 .
2017-09-14 21:56:59 +02:00
Simon Lydell
ec4abdfb1e
Don't lowercase CSS custom media names ( #2822 )
...
Fixes #2820 . While that issue is about `@media (--fooBar)` in
particular, this commit changes to never lowercase stuff starting with
`--` in general, as it seems like those `--customStuff` things can pop
up kind of anywhere.
2017-09-14 21:55:11 +02:00