Skip to content

Commit e7c6d86

Browse files
committed
Update dependencies
1 parent b304239 commit e7c6d86

File tree

9 files changed

+3533
-2976
lines changed

9 files changed

+3533
-2976
lines changed

.husky/pre-commit

+1-4
Original file line numberDiff line numberDiff line change
@@ -1,4 +1 @@
1-
#!/bin/sh
2-
. "$(dirname "$0")/_/husky.sh"
3-
4-
npx lint-staged
1+
lint-staged

jest-setup.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ global.groupTest = function groupTest(testGroups) {
1919
.process(item.fixture, { from: undefined })
2020
.then((root) => {
2121
expect(root.css).toEqual(item.expected);
22-
})
22+
}),
2323
);
2424
});
2525
});

lib/__tests__/test.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,6 @@ test(`Should throw an error if config has error`, () => {
1212
};
1313

1414
return expect(postcss([plugin(opts)]).process('', { from: undefined })).rejects.toThrow(
15-
'postcss-sorting: order: Should be an array'
15+
'postcss-sorting: order: Should be an array',
1616
);
1717
});

lib/getComments.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,6 @@ function afterDeclaration(comments, nextNode, nodeData, currentInitialIndex) {
103103
[...comments, commentData],
104104
nextNode.next(),
105105
nodeData,
106-
commentData.initialIndex
106+
commentData.initialIndex,
107107
);
108108
}

lib/order/__tests__/order.js

+10-10
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ test('Should assign comments before and after nodes correctly (order)', () =>
1717
{
1818
order: ['custom-properties', 'dollar-variables', 'at-variables', 'declarations'],
1919
},
20-
__dirname
20+
__dirname,
2121
));
2222

2323
test('Should sort by keywords', () =>
@@ -33,7 +33,7 @@ test('Should sort by keywords', () =>
3333
'at-rules',
3434
],
3535
},
36-
__dirname
36+
__dirname,
3737
));
3838

3939
test('At-rules combination from most specified to least specified', () =>
@@ -70,7 +70,7 @@ test('At-rules combination from most specified to least specified', () =>
7070
},
7171
],
7272
},
73-
__dirname
73+
__dirname,
7474
));
7575

7676
test('At-rules mixed combination', () =>
@@ -104,7 +104,7 @@ test('At-rules mixed combination', () =>
104104
},
105105
],
106106
},
107-
__dirname
107+
__dirname,
108108
));
109109

110110
test('Should sort inside nested rules', () =>
@@ -113,7 +113,7 @@ test('Should sort inside nested rules', () =>
113113
{
114114
order: ['custom-properties', 'declarations', 'rules'],
115115
},
116-
__dirname
116+
__dirname,
117117
));
118118

119119
test('Should sort inside nested at-rules', () =>
@@ -122,7 +122,7 @@ test('Should sort inside nested at-rules', () =>
122122
{
123123
order: ['custom-properties', 'declarations', 'at-rules'],
124124
},
125-
__dirname
125+
__dirname,
126126
));
127127

128128
test('Should move unspecified nodes to the bottom', () =>
@@ -131,7 +131,7 @@ test('Should move unspecified nodes to the bottom', () =>
131131
{
132132
order: ['custom-properties', 'declarations'],
133133
},
134-
__dirname
134+
__dirname,
135135
));
136136

137137
test('Should preserve indentation', () =>
@@ -140,7 +140,7 @@ test('Should preserve indentation', () =>
140140
{
141141
order: ['declarations', 'rules', 'at-rules'],
142142
},
143-
__dirname
143+
__dirname,
144144
));
145145

146146
groupTest([
@@ -613,7 +613,7 @@ test('Should sort by keywords (styled)', () =>
613613
{
614614
order: ['declarations', 'rules', 'at-rules'],
615615
},
616-
__dirname
616+
__dirname,
617617
));
618618

619619
test('Ignore nodes with template literals (styled)', () =>
@@ -622,5 +622,5 @@ test('Ignore nodes with template literals (styled)', () =>
622622
{
623623
order: ['declarations', 'rules', 'at-rules'],
624624
},
625-
__dirname
625+
__dirname,
626626
));

lib/properties-order/__tests__/properties-order.js

+30-30
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ test('Should sort properties (array config)', () =>
44
{
55
'properties-order': ['position', 'top', 'display', 'z-index'],
66
},
7-
__dirname
7+
__dirname,
88
));
99

1010
test('Should sort prefixed properties before unprefixed property', () =>
@@ -13,7 +13,7 @@ test('Should sort prefixed properties before unprefixed property', () =>
1313
{
1414
'properties-order': ['position', '-webkit-box-sizing', 'box-sizing', 'width'],
1515
},
16-
__dirname
16+
__dirname,
1717
));
1818

1919
test('Should assign comments before and after declarations correctly (properties-order)', () =>
@@ -22,7 +22,7 @@ test('Should assign comments before and after declarations correctly (properties
2222
{
2323
'properties-order': ['border-bottom', 'font-style'],
2424
},
25-
__dirname
25+
__dirname,
2626
));
2727

2828
test('Should place the leftovers properties in the end (not specified)', () =>
@@ -31,7 +31,7 @@ test('Should place the leftovers properties in the end (not specified)', () =>
3131
{
3232
'properties-order': ['position', 'z-index'],
3333
},
34-
__dirname
34+
__dirname,
3535
));
3636

3737
test('Should place the leftovers properties in the end (bottom)', () =>
@@ -41,7 +41,7 @@ test('Should place the leftovers properties in the end (bottom)', () =>
4141
'properties-order': ['position', 'z-index'],
4242
'unspecified-properties-position': 'bottom',
4343
},
44-
__dirname
44+
__dirname,
4545
));
4646

4747
test('Should place the leftovers properties in the beginning (top)', () =>
@@ -51,7 +51,7 @@ test('Should place the leftovers properties in the beginning (top)', () =>
5151
'properties-order': ['position', 'z-index'],
5252
'unspecified-properties-position': 'top',
5353
},
54-
__dirname
54+
__dirname,
5555
));
5656

5757
test('Should place the leftovers properties in the end (bottomAlphabetical)', () =>
@@ -61,7 +61,7 @@ test('Should place the leftovers properties in the end (bottomAlphabetical)', ()
6161
'properties-order': ['position', 'z-index'],
6262
'unspecified-properties-position': 'bottomAlphabetical',
6363
},
64-
__dirname
64+
__dirname,
6565
));
6666

6767
test('Should preserve order if properties have same name', () =>
@@ -70,7 +70,7 @@ test('Should preserve order if properties have same name', () =>
7070
{
7171
'properties-order': ['position', 'z-index'],
7272
},
73-
__dirname
73+
__dirname,
7474
));
7575

7676
test('Should preserve order if properties have same name', () =>
@@ -79,7 +79,7 @@ test('Should preserve order if properties have same name', () =>
7979
{
8080
'properties-order': ['position', 'z-index'],
8181
},
82-
__dirname
82+
__dirname,
8383
));
8484

8585
test('Should preserve order if properties have same name', () =>
@@ -88,7 +88,7 @@ test('Should preserve order if properties have same name', () =>
8888
{
8989
'properties-order': 'alphabetical',
9090
},
91-
__dirname
91+
__dirname,
9292
));
9393

9494
test('Should preserve order if properties have same name (case insensitive)', () =>
@@ -97,7 +97,7 @@ test('Should preserve order if properties have same name (case insensitive)', ()
9797
{
9898
'properties-order': ['position', 'z-index'],
9999
},
100-
__dirname
100+
__dirname,
101101
));
102102

103103
test('Should preserve order if properties have same name (case insensitive)', () =>
@@ -106,7 +106,7 @@ test('Should preserve order if properties have same name (case insensitive)', ()
106106
{
107107
'properties-order': 'alphabetical',
108108
},
109-
__dirname
109+
__dirname,
110110
));
111111

112112
test(`Should not remove first comment in the rule if it's not on separate line (properties-order)`, () =>
@@ -115,7 +115,7 @@ test(`Should not remove first comment in the rule if it's not on separate line (
115115
{
116116
'properties-order': ['display'],
117117
},
118-
__dirname
118+
__dirname,
119119
));
120120

121121
test(`Should sort declarations grouped together between not declarations (without comments)`, () =>
@@ -124,7 +124,7 @@ test(`Should sort declarations grouped together between not declarations (withou
124124
{
125125
'properties-order': ['display', 'position'],
126126
},
127-
__dirname
127+
__dirname,
128128
));
129129

130130
test(`Should sort declarations grouped together between not declarations (with comments)`, () =>
@@ -133,7 +133,7 @@ test(`Should sort declarations grouped together between not declarations (with c
133133
{
134134
'properties-order': ['display', 'position'],
135135
},
136-
__dirname
136+
__dirname,
137137
));
138138

139139
test(`Should sort declarations scattered everywhere (without comments)`, () =>
@@ -142,7 +142,7 @@ test(`Should sort declarations scattered everywhere (without comments)`, () =>
142142
{
143143
'properties-order': ['display', 'position'],
144144
},
145-
__dirname
145+
__dirname,
146146
));
147147

148148
test(`Should sort declarations scattered everywhere (with comments)`, () =>
@@ -151,7 +151,7 @@ test(`Should sort declarations scattered everywhere (with comments)`, () =>
151151
{
152152
'properties-order': ['display', 'position'],
153153
},
154-
__dirname
154+
__dirname,
155155
));
156156

157157
test('Should sort properties alphabetically', () =>
@@ -160,7 +160,7 @@ test('Should sort properties alphabetically', () =>
160160
{
161161
'properties-order': 'alphabetical',
162162
},
163-
__dirname
163+
__dirname,
164164
));
165165

166166
test('Should sort properties alphabetically regardless of case', () => {
@@ -169,7 +169,7 @@ test('Should sort properties alphabetically regardless of case', () => {
169169
{
170170
'properties-order': 'alphabetical',
171171
},
172-
__dirname
172+
__dirname,
173173
);
174174
});
175175

@@ -179,7 +179,7 @@ test('Should sort shorthand properties before their longhand versions', () =>
179179
{
180180
'properties-order': 'alphabetical',
181181
},
182-
__dirname
182+
__dirname,
183183
));
184184

185185
test('Should sort prefixed properties before unprefixed property in alphabetical order', () =>
@@ -188,7 +188,7 @@ test('Should sort prefixed properties before unprefixed property in alphabetical
188188
{
189189
'properties-order': 'alphabetical',
190190
},
191-
__dirname
191+
__dirname,
192192
));
193193

194194
test('Should assign comments before and after declarations correctly (properties-order, alphabetical)', () =>
@@ -197,7 +197,7 @@ test('Should assign comments before and after declarations correctly (properties
197197
{
198198
'properties-order': 'alphabetical',
199199
},
200-
__dirname
200+
__dirname,
201201
));
202202

203203
test(`Preserve-empty-lines-between properties`, () =>
@@ -206,7 +206,7 @@ test(`Preserve-empty-lines-between properties`, () =>
206206
{
207207
'properties-order': ['position', 'top', 'display', 'z-index'],
208208
},
209-
__dirname
209+
__dirname,
210210
));
211211

212212
test('Should sort properties (styled)', () =>
@@ -215,7 +215,7 @@ test('Should sort properties (styled)', () =>
215215
{
216216
'properties-order': ['position', 'top', 'display', 'z-index'],
217217
},
218-
__dirname
218+
__dirname,
219219
));
220220

221221
test('Should sort properties in nested rules (styled)', () =>
@@ -224,7 +224,7 @@ test('Should sort properties in nested rules (styled)', () =>
224224
{
225225
'properties-order': ['position', 'top', 'display', 'z-index'],
226226
},
227-
__dirname
227+
__dirname,
228228
));
229229

230230
test('Should sort properties in css helper (styled)', () =>
@@ -233,7 +233,7 @@ test('Should sort properties in css helper (styled)', () =>
233233
{
234234
'properties-order': ['position', 'top', 'display', 'z-index'],
235235
},
236-
__dirname
236+
__dirname,
237237
));
238238

239239
test('Ignore template literals in flat components (styled)', () =>
@@ -242,7 +242,7 @@ test('Ignore template literals in flat components (styled)', () =>
242242
{
243243
'properties-order': ['position', 'top', 'display', 'z-index'],
244244
},
245-
__dirname
245+
__dirname,
246246
));
247247

248248
test('Ignore template literals in nested components (styled)', () =>
@@ -251,7 +251,7 @@ test('Ignore template literals in nested components (styled)', () =>
251251
{
252252
'properties-order': ['position', 'top', 'display', 'z-index'],
253253
},
254-
__dirname
254+
__dirname,
255255
));
256256

257257
test('Should sort properties (html, <style> tag)', () =>
@@ -260,7 +260,7 @@ test('Should sort properties (html, <style> tag)', () =>
260260
{
261261
'properties-order': ['position', 'top', 'display', 'z-index'],
262262
},
263-
__dirname
263+
__dirname,
264264
));
265265

266266
test('Should sort properties (html, style attribute)', () =>
@@ -269,5 +269,5 @@ test('Should sort properties (html, style attribute)', () =>
269269
{
270270
'properties-order': ['position', 'top', 'display', 'z-index'],
271271
},
272-
__dirname
272+
__dirname,
273273
));

0 commit comments

Comments
 (0)