parent
655fef1bf9
commit
bcb4224205
|
@ -8,7 +8,7 @@ Tip! Don't write this stuff manually.
|
|||
|
||||
-->
|
||||
|
||||
**Prettier 1.6.1**
|
||||
**Prettier 1.7.0**
|
||||
[Playground link](https://prettier.io/playground/#.....)
|
||||
```sh
|
||||
# Options (if any):
|
||||
|
|
|
@ -1,3 +1,9 @@
|
|||
# 1.7.0
|
||||
|
||||
[link](https://github.com/jlongster/prettier/compare/1.6.1...1.7.0)
|
||||
|
||||
* [Release Notes](https://github.com/prettier/prettier/releases/tag/1.7.0)
|
||||
|
||||
# 1.6.1
|
||||
|
||||
[link](https://github.com/jlongster/prettier/compare/1.6.0...1.6.1)
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "prettier",
|
||||
"version": "1.6.1",
|
||||
"version": "1.7.0",
|
||||
"description": "Prettier is an opinionated code formatter",
|
||||
"bin": {
|
||||
"prettier": "./bin/prettier.js"
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -25379,7 +25379,15 @@ function parseNestedCSS(node) {
|
|||
node.selector = parseSelector(selector);
|
||||
} catch (e) {
|
||||
// Fail silently. It's better to print it as is than to try and parse it
|
||||
node.selector = selector;
|
||||
// Note: A common failure is for SCSS nested properties. `background:
|
||||
// none { color: red; }` is parsed as a NestedDeclaration by
|
||||
// postcss-scss, while `background: { color: red; }` is parsed as a Rule
|
||||
// with a selector ending with a colon. See:
|
||||
// https://github.com/postcss/postcss-scss/issues/39
|
||||
node.selector = {
|
||||
type: "selector-root-invalid",
|
||||
value: selector
|
||||
};
|
||||
}
|
||||
}
|
||||
if (node.type && typeof node.value === "string") {
|
||||
|
|
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue