File tree Expand file tree Collapse file tree 1 file changed +0
-134
lines changed
Expand file tree Collapse file tree 1 file changed +0
-134
lines changed Original file line number Diff line number Diff line change @@ -18,137 +18,3 @@ Referred the source code from [Rich Somerfield](https://github.com/richie5um)'s
1818 * Sort JS object keys
1919 Keybinding: ` Alt+S `
2020 * Sort JS object keys (Reverse)
21-
22-
23- ## Release Notes
24-
25- ### 0.0.1
26-
27- * Initial release of a testing version
28- * Add ` Sort JS object keys ` command
29- * Add ` Sort JS object keys (Reverse) ` command
30-
31- ### 0.0.3
32-
33- * Support ES6 shorthand object
34- e.g:
35- ``` js
36- {
37- user,
38- password
39- }
40- ```
41- Will be sorted to
42- ` ` ` js
43- {
44- password: password,
45- user: user
46- }
47- ` ` `
48-
49- * Support value which is multiple lines or have space in it.
50- e .g :
51- ` ` ` js
52- {
53- b: new String('b')
54- .length,
55- a: new String('a')
56- }
57- ` ` `
58- Will be sorted to
59- ` ` ` js
60- {
61- a: new String('a'),
62- b: new String('b').length
63- }
64- ` ` `
65- * Will automatically add trailing comma if the prevs object has trailing comma
66- e .g :
67- ` ` ` js
68- {
69- b: 'b',
70- a: 'a'
71- }
72- ` ` `
73- Will be sorted to
74- ` ` ` js
75- {
76- a: 'a',
77- b: 'b'
78- }
79- ` ` `
80- But this object which already has trailing comma:
81- ` ` ` js
82- {
83- b: 'b',
84- a: 'a',
85- }
86- ` ` `
87- Will be sorted to
88- ` ` ` js
89- {
90- a: 'a',
91- b: 'b',
92- }
93- ` ` `
94-
95- ### 0.0 .6
96-
97- * Support Array in object
98-
99- * Auto indent object if it is not in the first collumn
100-
101- * Auto use ES6 short hand value
102-
103-
104- ### 0.0 .7
105-
106- * Support line comments in object
107-
108- e .g :
109- ` ` ` js
110- {
111- b: 2,
112- // some comment
113- a: 1,
114- // another comment
115- d: 5,
116- c: 4,
117- }
118- ` ` `
119- Will be sorted to
120- ` ` ` js
121- {
122- // some comment
123- a: 1,
124- b: 2,
125- c: 4,
126- // another comment
127- d: 5,
128- }
129- ` ` `
130-
131- ### 0.0 .8
132-
133- * Fix an indent not correct bug
134-
135- ### 0.0 .9
136-
137- * Support \' in string
138-
139- e.g:
140- ```js
141- {
142- b: ' test \' ' ,
143- c: ' test \' test' ,
144- a: ' \' test' ,
145- }
146- ```
147- Will be sorted to
148- ` ` ` js
149- {
150- a: '\' test',
151- b: 'test \' ',
152- c: 'test \' test',
153- }
154- ` ` `
You can’t perform that action at this time.
0 commit comments