Skip to content

Commit

Permalink
Amended the default value of "insertNewLineAroundProperties" formatti…
Browse files Browse the repository at this point in the history
…ng option
  • Loading branch information
Anantachai Saothong (Manta) committed Apr 28, 2017
1 parent 9651e4e commit 7bb092b
Show file tree
Hide file tree
Showing 11 changed files with 4 additions and 17 deletions.
2 changes: 1 addition & 1 deletion docs/format.js

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions docs/index.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion edge/createFormattingOptions.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ const schema = {
insertNewLineAroundProperties: {
description: 'Insert a new-line around a group of CSS properties.\nUnlike <mark>insertNewLineAroundBlocks</mark> and <mark>insertNewLineAroundOthers</mark>, this option cannot be set to <code>"root"</code> nor <code>"nested"</code> because CSS properties cannot be placed at the top level.\n<span class="no-vsce">Check the detailed examples <a href="#option-insert-newline-around-any">below</a>.</span>',
oneOf: [true, false],
default: true,
default: false,
},
insertNewLineAroundOthers: {
description: 'Insert a new-line around a group of non-properties, non-imports and non-blocks.\nOnly apply to others outside a block when set to <code>"root"</code>, or only apply to others inside a block when set to <code>"nested"</code>.\n<span class="no-vsce">Check the detailed examples <a href="#option-insert-newline-around-any">below</a>.</span>',
Expand Down
1 change: 0 additions & 1 deletion spec/comment-multi-line/output.styl
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
.class1 { /* side-comment */
/* another-top-comment */
margin: 8px /* another-middle-comment */ 0; /* another-side-comment */

/* bottom-comment */
}

Expand Down
1 change: 0 additions & 1 deletion spec/comment-single-line/output.styl
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
// comment-10
.class2 {
display: block;

var = 'http://example.com'; // comment-11
}
}
1 change: 0 additions & 1 deletion spec/extend/output.styl
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,5 @@ $boo {
@extend .class1;
@extend .class2, .class3, .class4 !optional;
@extend $boo;

color: white;
}
1 change: 0 additions & 1 deletion spec/hash/output.styl
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,5 @@ foo['0'] = bar;

body {
{foo};

display: a3 in foo;
}
1 change: 0 additions & 1 deletion spec/mixin/output.styl
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ mixin(n) {

button {
mixin(5px);

mixin: 5px;
}

Expand Down
6 changes: 0 additions & 6 deletions spec/operator/output.styl
Original file line number Diff line number Diff line change
Expand Up @@ -3,24 +3,18 @@ body {
visibility: !true == false;
left: -5px;
margin: 1 + 2px;

list = 1 2 3;

color: 1 in list;
padding: list[-1];

range = 1...5;
math = 1 + 2 - 3 * (4 / 5) % 6 ** 7;
color = color is defined ? unit(num, 'px') : white;
color ?= white;
color ?= white;

border-color: #fff is a 'rgba';
background-color: #f00 - rgba(100, 0, 0, 0.5);

name = 'blue';
lookup('light-' + name);

font-size: num em;
width: 'calc(100% - %s)' % 40px;
}
1 change: 0 additions & 1 deletion spec/option-insert-semicolon-false/output.styl
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@

body {
display: none

var = 1

func() {
Expand Down
1 change: 0 additions & 1 deletion spec/option-insert-semicolon-true/output.styl
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@

body {
display: none;

var = 1;

func() {
Expand Down

0 comments on commit 7bb092b

Please sign in to comment.