master
Stephen Scott 2017-09-27 11:00:29 -06:00
parent 11a7b8d308
commit c2bc33b3ad
9 changed files with 6949 additions and 6919 deletions

View File

@ -8,7 +8,7 @@ Tip! Don't write this stuff manually.
-->
**Prettier 1.7.0**
**Prettier 1.7.1**
[Playground link](https://prettier.io/playground/#.....)
```sh
# Options (if any):

View File

@ -1,3 +1,32 @@
# 1.7.1
[link](https://github.com/jlongster/prettier/compare/1.7.0...1.7.1)
* Enable cosmiconfig rcExtensions (#2749 by elektronik2k5)
* Keep original empty lines in argument list (#2763 by jackyho112)
* Upgrade prettier dependency to 1.7.0, fix lint (#2821 by josephfrazier)
* Fix different precedence binary expression when inlining (#2827 by duailibe)
* Bump Babylon (#2831 by existentialism)
* Don't lowercase Less variables when parsed with SCSS parser (#2833 by lydell)
* Don't lowercase `&class` in SCSS/Less selectors (#2834 by lydell)
* Add support for ClassPrivateProperty (#2837 by existentialism)
* Upgrade cosmiconfig to v3, remove hardcoded combinatoric problem (#2843 by azz)
* Split Less and SCSS parsing into different parsers (#2844 by lydell)
* feat: support detailed `--help` (#2847 by ikatyang)
* Update cosmiconfig to 3.0.1 to avoid memory leak (#2848 by danez)
* chore: add prettier-stylelint to the related projects (#2859 by hugomrdias)
* Don't lowercase SCSS placeholder selectors (#2876 by lydell)
* Fix line break in test declarations with 2nd argument as a function (#2877 by duailibe)
* Use semicolons in Flow interface-like bodies (#2593) (#2888 by motiz88)
* We do not need to have a reference to the toolbox-companion since we (#2892 by mitermayer)
* fix(cli): validate options for every `config-precedence` (#2894 by ikatyang)
* fix: do not print stack trace for invalid option (#2895 by ikatyang)
* refactor: use custom error (#2896 by ikatyang)
* fix(typescript): allow symbol type (#2899 by ikatyang)
* Support fit(), xit(), it.only(), etc (#2900 by azz)
* Fix editor styling on empty editors (#2904 by jakegavin)
* Fix printing of comments between decorators and method names (#2906 by azz)
# 1.7.0
[link](https://github.com/jlongster/prettier/compare/1.6.1...1.7.0)

View File

@ -699,8 +699,7 @@ Default | CLI Override | API Override
Prettier uses [cosmiconfig](https://github.com/davidtheclark/cosmiconfig) for configuration file support.
This means you can configure prettier via:
<!-- TODO: Uncomment on the next line when Prettier >1.7.0 has been released. -->
* A `.prettierrc` file, written in YAML or JSON<!--, with optional extensions: `.yaml/.yml/.json/.js`-->.
* A `.prettierrc` file, written in YAML or JSON, with optional extensions: `.yaml/.yml/.json/.js`.
* A `prettier.config.js` file that exports an object.
* A `"prettier"` key in your `package.json` file.
@ -839,7 +838,7 @@ The minimum version of TypeScript supported is 2.1.3 as it introduces the abilit
- [`prettier-eslint`](https://github.com/prettier/prettier-eslint)
passes `prettier` output to `eslint --fix`
- [`prettier-stylelint`](https://github.com/hugomrdias/prettier-stylelint)
passes `prettier` output to `stylelint --fix`
passes `prettier` output to `stylelint --fix`
- [`prettier-standard`](https://github.com/sheerun/prettier-standard)
uses `prettier` and `prettier-eslint` to format code with standard rules
- [`prettier-standard-formatter`](https://github.com/dtinth/prettier-standard-formatter)

View File

@ -1,6 +1,6 @@
{
"name": "prettier",
"version": "1.7.0",
"version": "1.7.1",
"description": "Prettier is an opinionated code formatter",
"bin": {
"prettier": "./bin/prettier.js"

File diff suppressed because one or more lines are too long

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because one or more lines are too long

View File

@ -1411,10 +1411,6 @@ esprima@^2.7.1:
version "2.7.3"
resolved "https://registry.yarnpkg.com/esprima/-/esprima-2.7.3.tgz#96e3b70d5779f6ad49cd032673d1c312767ba581"
esprima@^3.1.1:
version "3.1.3"
resolved "https://registry.yarnpkg.com/esprima/-/esprima-3.1.3.tgz#fdca51cee6133895e3c88d535ce49dbff62a4633"
esprima@^4.0.0:
version "4.0.0"
resolved "https://registry.yarnpkg.com/esprima/-/esprima-4.0.0.tgz#4499eddcd1110e0b218bacf2fa7f7f59f55ca804"
@ -2456,14 +2452,7 @@ js-tokens@^3.0.0:
version "3.0.1"
resolved "https://registry.yarnpkg.com/js-tokens/-/js-tokens-3.0.1.tgz#08e9f132484a2c45a30907e9dc4d5567b7f114d7"
js-yaml@^3.7.0, js-yaml@^3.8.4:
version "3.8.4"
resolved "https://registry.yarnpkg.com/js-yaml/-/js-yaml-3.8.4.tgz#520b4564f86573ba96662af85a8cafa7b4b5a6f6"
dependencies:
argparse "^1.0.7"
esprima "^3.1.1"
js-yaml@^3.8.1, js-yaml@^3.9.0:
js-yaml@^3.7.0, js-yaml@^3.8.1, js-yaml@^3.8.4, js-yaml@^3.9.0:
version "3.9.1"
resolved "https://registry.yarnpkg.com/js-yaml/-/js-yaml-3.9.1.tgz#08775cebdfdd359209f0d2acd383c8f86a6904a0"
dependencies:
@ -3660,11 +3649,7 @@ sax@^1.2.1:
version "1.2.2"
resolved "https://registry.yarnpkg.com/sax/-/sax-1.2.2.tgz#fd8631a23bc7826bef5d871bdb87378c95647828"
"semver@2 || 3 || 4 || 5", semver@^5.3.0:
version "5.3.0"
resolved "https://registry.yarnpkg.com/semver/-/semver-5.3.0.tgz#9b2ce5d3de02d17c6012ad326aa6b4d0cf54f94f"
semver@5.4.1:
"semver@2 || 3 || 4 || 5", semver@5.4.1, semver@^5.3.0:
version "5.4.1"
resolved "https://registry.yarnpkg.com/semver/-/semver-5.4.1.tgz#e059c09d8571f0540823733433505d3a2f00b18e"