You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: tests/lib/rules/valid-message-syntax.ts
+78-83
Original file line number
Diff line number
Diff line change
@@ -223,24 +223,25 @@ tester.run('valid-message-syntax', rule as never, {
223
223
}
224
224
]
225
225
},
226
-
{
227
-
code: `
228
-
key: message @:(v8)
229
-
`,
230
-
...options.yaml.default,
231
-
errors: [
232
-
{
233
-
message: `If you want to use '${TEST_RULE_ID_PREFIX}valid-message-syntax' rule, you need to set 'messageSyntaxVersion' at 'settings'. See the 'eslint-plugin-vue-i18n' documentation`,
234
-
line: 1,
235
-
column: 1
236
-
},
237
-
{
238
-
message: 'Unexpected empty linked key',
239
-
line: 2,
240
-
column: 21
241
-
}
242
-
]
243
-
},
226
+
// {
227
+
// // The syntax is now allowed.
228
+
// code: `
229
+
// key: message @:(v8)
230
+
// `,
231
+
// ...options.yaml.default,
232
+
// errors: [
233
+
// {
234
+
// message: `If you want to use '${TEST_RULE_ID_PREFIX}valid-message-syntax' rule, you need to set 'messageSyntaxVersion' at 'settings'. See the 'eslint-plugin-vue-i18n' documentation`,
235
+
// line: 1,
236
+
// column: 1
237
+
// },
238
+
// {
239
+
// message: 'Unexpected empty linked key',
240
+
// line: 2,
241
+
// column: 21
242
+
// }
243
+
// ]
244
+
// },
244
245
{
245
246
code: `
246
247
key: message { v9 }
@@ -272,61 +273,65 @@ tester.run('valid-message-syntax', rule as never, {
272
273
}
273
274
]
274
275
},
275
-
{
276
-
code: `
277
-
key: message @:(v8)
278
-
`,
279
-
...options.yaml.v9,
280
-
errors: [
281
-
{
282
-
message: 'Unexpected empty linked key',
283
-
line: 2,
284
-
column: 21
285
-
}
286
-
]
287
-
},
288
-
{
289
-
code: `
290
-
key: message new line
291
-
@:(v8)
292
-
`,
293
-
...options.yaml.v9,
294
-
errors: [
295
-
{
296
-
message: 'Unexpected empty linked key',
297
-
line: 3,
298
-
column: 10
299
-
}
300
-
]
301
-
},
302
-
{
303
-
code: `
304
-
key: "message new line
305
-
@:(v8)"
306
-
`,
307
-
...options.yaml.v9,
308
-
errors: [
309
-
{
310
-
message: 'Unexpected empty linked key',
311
-
line: 3,
312
-
column: 10
313
-
}
314
-
]
315
-
},
316
-
{
317
-
code: `
318
-
key: 'message new line
319
-
@:(v8)'
320
-
`,
321
-
...options.yaml.v9,
322
-
errors: [
323
-
{
324
-
message: 'Unexpected empty linked key',
325
-
line: 3,
326
-
column: 10
327
-
}
328
-
]
329
-
},
276
+
// {
277
+
// // The syntax is now allowed.
278
+
// code: `
279
+
// key: message @:(v8)
280
+
// `,
281
+
// ...options.yaml.v9,
282
+
// errors: [
283
+
// {
284
+
// message: 'Unexpected empty linked key',
285
+
// line: 2,
286
+
// column: 21
287
+
// }
288
+
// ]
289
+
// },
290
+
// {
291
+
// // The syntax is now allowed.
292
+
// code: `
293
+
// key: message new line
294
+
// @:(v8)
295
+
// `,
296
+
// ...options.yaml.v9,
297
+
// errors: [
298
+
// {
299
+
// message: 'Unexpected empty linked key',
300
+
// line: 3,
301
+
// column: 10
302
+
// }
303
+
// ]
304
+
// },
305
+
// {
306
+
// // The syntax is now allowed.
307
+
// code: `
308
+
// key: "message new line
309
+
// @:(v8)"
310
+
// `,
311
+
// ...options.yaml.v9,
312
+
// errors: [
313
+
// {
314
+
// message: 'Unexpected empty linked key',
315
+
// line: 3,
316
+
// column: 10
317
+
// }
318
+
// ]
319
+
// },
320
+
// {
321
+
// // The syntax is now allowed.
322
+
// code: `
323
+
// key: 'message new line
324
+
// @:(v8)'
325
+
// `,
326
+
// ...options.yaml.v9,
327
+
// errors: [
328
+
// {
329
+
// message: 'Unexpected empty linked key',
330
+
// line: 3,
331
+
// column: 10
332
+
// }
333
+
// ]
334
+
// },
330
335
{
331
336
code: `
332
337
<i18n lang="yaml">
@@ -476,16 +481,6 @@ tester.run('valid-message-syntax', rule as never, {
0 commit comments