@@ -18,7 +18,23 @@ ruleTester.run("order-properties", rule, {
18
18
errors : [
19
19
{
20
20
message :
21
- "Package top-level properties are not ordered in the npm standard way. Run the ESLint auto-fixer to correct." ,
21
+ 'Package top-level property "main" is not ordered in the npm standard way. Run the ESLint auto-fixer to correct.' ,
22
+ } ,
23
+ {
24
+ message :
25
+ 'Package top-level property "homepage" is not ordered in the npm standard way. Run the ESLint auto-fixer to correct.' ,
26
+ } ,
27
+ {
28
+ message :
29
+ 'Package top-level property "version" is not ordered in the npm standard way. Run the ESLint auto-fixer to correct.' ,
30
+ } ,
31
+ {
32
+ message :
33
+ 'Package top-level property "name" is not ordered in the npm standard way. Run the ESLint auto-fixer to correct.' ,
34
+ } ,
35
+ {
36
+ message :
37
+ 'Package top-level property "repository" is not ordered in the npm standard way. Run the ESLint auto-fixer to correct.' ,
22
38
} ,
23
39
] ,
24
40
filename : "package.json" ,
@@ -49,7 +65,15 @@ ruleTester.run("order-properties", rule, {
49
65
errors : [
50
66
{
51
67
message :
52
- "Package top-level properties are not ordered in the npm standard way. Run the ESLint auto-fixer to correct." ,
68
+ 'Package top-level property "main" is not ordered in the npm standard way. Run the ESLint auto-fixer to correct.' ,
69
+ } ,
70
+ {
71
+ message :
72
+ 'Package top-level property "version" is not ordered in the npm standard way. Run the ESLint auto-fixer to correct.' ,
73
+ } ,
74
+ {
75
+ message :
76
+ 'Package top-level property "repository" is not ordered in the npm standard way. Run the ESLint auto-fixer to correct.' ,
53
77
} ,
54
78
] ,
55
79
filename : "package.json" ,
@@ -80,7 +104,23 @@ ruleTester.run("order-properties", rule, {
80
104
errors : [
81
105
{
82
106
message :
83
- "Package top-level properties are not ordered in the npm standard way. Run the ESLint auto-fixer to correct." ,
107
+ 'Package top-level property "main" is not ordered in the npm standard way. Run the ESLint auto-fixer to correct.' ,
108
+ } ,
109
+ {
110
+ message :
111
+ 'Package top-level property "homepage" is not ordered in the npm standard way. Run the ESLint auto-fixer to correct.' ,
112
+ } ,
113
+ {
114
+ message :
115
+ 'Package top-level property "version" is not ordered in the npm standard way. Run the ESLint auto-fixer to correct.' ,
116
+ } ,
117
+ {
118
+ message :
119
+ 'Package top-level property "name" is not ordered in the npm standard way. Run the ESLint auto-fixer to correct.' ,
120
+ } ,
121
+ {
122
+ message :
123
+ 'Package top-level property "repository" is not ordered in the npm standard way. Run the ESLint auto-fixer to correct.' ,
84
124
} ,
85
125
] ,
86
126
filename : "package.json" ,
@@ -111,7 +151,23 @@ ruleTester.run("order-properties", rule, {
111
151
errors : [
112
152
{
113
153
message :
114
- "Package top-level properties are not ordered in the npm standard way. Run the ESLint auto-fixer to correct." ,
154
+ 'Package top-level property "main" is not ordered in the npm standard way. Run the ESLint auto-fixer to correct.' ,
155
+ } ,
156
+ {
157
+ message :
158
+ 'Package top-level property "homepage" is not ordered in the npm standard way. Run the ESLint auto-fixer to correct.' ,
159
+ } ,
160
+ {
161
+ message :
162
+ 'Package top-level property "version" is not ordered in the npm standard way. Run the ESLint auto-fixer to correct.' ,
163
+ } ,
164
+ {
165
+ message :
166
+ 'Package top-level property "name" is not ordered in the npm standard way. Run the ESLint auto-fixer to correct.' ,
167
+ } ,
168
+ {
169
+ message :
170
+ 'Package top-level property "repository" is not ordered in the npm standard way. Run the ESLint auto-fixer to correct.' ,
115
171
} ,
116
172
] ,
117
173
filename : "package.json" ,
@@ -142,7 +198,23 @@ ruleTester.run("order-properties", rule, {
142
198
errors : [
143
199
{
144
200
message :
145
- "Package top-level properties are not ordered in the npm standard way. Run the ESLint auto-fixer to correct." ,
201
+ 'Package top-level property "main" is not ordered in the npm standard way. Run the ESLint auto-fixer to correct.' ,
202
+ } ,
203
+ {
204
+ message :
205
+ 'Package top-level property "homepage" is not ordered in the npm standard way. Run the ESLint auto-fixer to correct.' ,
206
+ } ,
207
+ {
208
+ message :
209
+ 'Package top-level property "version" is not ordered in the npm standard way. Run the ESLint auto-fixer to correct.' ,
210
+ } ,
211
+ {
212
+ message :
213
+ 'Package top-level property "name" is not ordered in the npm standard way. Run the ESLint auto-fixer to correct.' ,
214
+ } ,
215
+ {
216
+ message :
217
+ 'Package top-level property "repository" is not ordered in the npm standard way. Run the ESLint auto-fixer to correct.' ,
146
218
} ,
147
219
] ,
148
220
filename : "package.json" ,
@@ -174,7 +246,23 @@ ruleTester.run("order-properties", rule, {
174
246
errors : [
175
247
{
176
248
message :
177
- "Package top-level properties are not ordered in the npm standard way. Run the ESLint auto-fixer to correct." ,
249
+ 'Package top-level property "main" is not ordered in the npm standard way. Run the ESLint auto-fixer to correct.' ,
250
+ } ,
251
+ {
252
+ message :
253
+ 'Package top-level property "homepage" is not ordered in the npm standard way. Run the ESLint auto-fixer to correct.' ,
254
+ } ,
255
+ {
256
+ message :
257
+ 'Package top-level property "version" is not ordered in the npm standard way. Run the ESLint auto-fixer to correct.' ,
258
+ } ,
259
+ {
260
+ message :
261
+ 'Package top-level property "name" is not ordered in the npm standard way. Run the ESLint auto-fixer to correct.' ,
262
+ } ,
263
+ {
264
+ message :
265
+ 'Package top-level property "repository" is not ordered in the npm standard way. Run the ESLint auto-fixer to correct.' ,
178
266
} ,
179
267
] ,
180
268
filename : "package.json" ,
@@ -206,7 +294,23 @@ ruleTester.run("order-properties", rule, {
206
294
errors : [
207
295
{
208
296
message :
209
- "Package top-level properties are not ordered in the npm standard way. Run the ESLint auto-fixer to correct." ,
297
+ 'Package top-level property "main" is not ordered in the npm standard way. Run the ESLint auto-fixer to correct.' ,
298
+ } ,
299
+ {
300
+ message :
301
+ 'Package top-level property "homepage" is not ordered in the npm standard way. Run the ESLint auto-fixer to correct.' ,
302
+ } ,
303
+ {
304
+ message :
305
+ 'Package top-level property "version" is not ordered in the npm standard way. Run the ESLint auto-fixer to correct.' ,
306
+ } ,
307
+ {
308
+ message :
309
+ 'Package top-level property "name" is not ordered in the npm standard way. Run the ESLint auto-fixer to correct.' ,
310
+ } ,
311
+ {
312
+ message :
313
+ 'Package top-level property "repository" is not ordered in the npm standard way. Run the ESLint auto-fixer to correct.' ,
210
314
} ,
211
315
] ,
212
316
filename : "package.json" ,
0 commit comments