Skip to content

Commit f614bc5

Browse files
committed
add formatStylish
1 parent 8866478 commit f614bc5

File tree

16 files changed

+288
-446
lines changed

16 files changed

+288
-446
lines changed

README.md

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,11 @@
33

44
[![Test Coverage](https://api.codeclimate.com/v1/badges/b3483509ed87517cea27/test_coverage)](https://codeclimate.com/github/WisdomQuest/frontend-project-46/test_coverage)
55

6-
Ascinema(lesson4)
6+
Ascinema(step 4)
77
[![asciicast](https://asciinema.org/a/wHepNLn0QNSfYXf9OyHoPT4HJ.svg)](https://asciinema.org/a/wHepNLn0QNSfYXf9OyHoPT4HJ)
88

9-
Ascinema(lesson6)
10-
[![asciicast](https://asciinema.org/a/HxkkOQiIYxm2vO2JyCDFUd5sn.svg)](https://asciinema.org/a/HxkkOQiIYxm2vO2JyCDFUd5sn)
9+
Ascinema(step 6)
10+
[![asciicast](https://asciinema.org/a/HxkkOQiIYxm2vO2JyCDFUd5sn.svg)](https://asciinema.org/a/HxkkOQiIYxm2vO2JyCDFUd5sn)
11+
12+
Ascinema(step 7)
13+
[![asciicast](https://asciinema.org/a/tiPXgEuuDoMZAupBaOi3jpOhM.svg)](https://asciinema.org/a/tiPXgEuuDoMZAupBaOi3jpOhM)

__fixtures__/expectDiffFiles.txt

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
{
2-
- follow: false
3-
host: hexlet.io
4-
- proxy: 123.234.53.22
5-
- timeout: 50
6-
+ timeout: 20
7-
+ verbose: true
1+
{
2+
- follow: false
3+
host: hexlet.io
4+
- proxy: 123.234.53.22
5+
- timeout: 50
6+
+ timeout: 20
7+
+ verbose: true
88
}
Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
{
2+
common: {
3+
+ follow: false
4+
setting1: Value 1
5+
- setting2: 200
6+
- setting3: true
7+
+ setting3: null
8+
+ setting4: blah blah
9+
+ setting5: {
10+
key5: value5
11+
}
12+
setting6: {
13+
doge: {
14+
- wow:
15+
+ wow: so much
16+
}
17+
key: value
18+
+ ops: vops
19+
}
20+
}
21+
group1: {
22+
- baz: bas
23+
+ baz: bars
24+
foo: bar
25+
- nest: {
26+
key: value
27+
}
28+
+ nest: str
29+
}
30+
- group2: {
31+
abc: 12345
32+
deep: {
33+
id: 45
34+
}
35+
}
36+
+ group3: {
37+
deep: {
38+
id: {
39+
number: 45
40+
}
41+
}
42+
fee: 100500
43+
}
44+
}

__fixtures__/file1.json

Lines changed: 24 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,26 @@
11
{
2-
"host": "hexlet.io",
3-
"timeout": 50,
4-
"proxy": "123.234.53.22",
5-
"follow": false
2+
"common": {
3+
"setting1": "Value 1",
4+
"setting2": 200,
5+
"setting3": true,
6+
"setting6": {
7+
"key": "value",
8+
"doge": {
9+
"wow": ""
10+
}
11+
}
12+
},
13+
"group1": {
14+
"baz": "bas",
15+
"foo": "bar",
16+
"nest": {
17+
"key": "value"
18+
}
19+
},
20+
"group2": {
21+
"abc": 12345,
22+
"deep": {
23+
"id": 45
24+
}
25+
}
626
}

__fixtures__/file1.yaml

Lines changed: 17 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,17 @@
1-
host: hexlet.io
2-
timeout: 50
3-
proxy: 123.234.53.22
4-
follow: false
1+
common:
2+
setting1: Value 1
3+
setting2: 200
4+
setting3: true
5+
setting6:
6+
key: value
7+
doge:
8+
wow: ''
9+
group1:
10+
baz: bas
11+
foo: bar
12+
nest:
13+
key: value
14+
group2:
15+
abc: 12345
16+
deep:
17+
id: 45

__fixtures__/file11.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"host": "hexlet.io",
3+
"timeout": 50,
4+
"proxy": "123.234.53.22",
5+
"follow": false
6+
}

__fixtures__/file11.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
host: hexlet.io
2+
timeout: 50
3+
proxy: 123.234.53.22
4+
follow: false

__fixtures__/file2.json

Lines changed: 29 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,31 @@
11
{
2-
"timeout": 20,
3-
"verbose": true,
4-
"host": "hexlet.io"
2+
"common": {
3+
"follow": false,
4+
"setting1": "Value 1",
5+
"setting3": null,
6+
"setting4": "blah blah",
7+
"setting5": {
8+
"key5": "value5"
9+
},
10+
"setting6": {
11+
"key": "value",
12+
"ops": "vops",
13+
"doge": {
14+
"wow": "so much"
15+
}
16+
}
17+
},
18+
"group1": {
19+
"foo": "bar",
20+
"baz": "bars",
21+
"nest": "str"
22+
},
23+
"group3": {
24+
"deep": {
25+
"id": {
26+
"number": 45
27+
}
28+
},
29+
"fee": 100500
30+
}
531
}

__fixtures__/file2.yaml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
common:
2+
follow: false
3+
setting1: Value 1
4+
setting3: null
5+
setting4: blah blah
6+
setting5:
7+
key5: value5
8+
setting6:
9+
key: value
10+
ops: vops
11+
doge:
12+
wow: so much
13+
group1:
14+
foo: bar
15+
baz: bars
16+
nest: str
17+
group3:
18+
deep:
19+
id:
20+
number: 45
21+
fee: 100500

__fixtures__/file22.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"timeout": 20,
3+
"verbose": true,
4+
"host": "hexlet.io"
5+
}

0 commit comments

Comments
 (0)