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/prefer-linked-key-with-paren.ts
+3-5
Original file line number
Diff line number
Diff line change
@@ -21,7 +21,7 @@ const options = {
21
21
settings: {
22
22
'vue-i18n': {
23
23
localeDir: {
24
-
pattern: FIXTURES_ROOT+'/*.{json,yaml,yml}'
24
+
pattern: `${FIXTURES_ROOT}/*.{json,yaml,yml}`
25
25
},
26
26
messageSyntaxVersion
27
27
}
@@ -35,7 +35,7 @@ const options = {
35
35
settings: {
36
36
'vue-i18n': {
37
37
localeDir: {
38
-
pattern: FIXTURES_ROOT+'/*.{json,yaml,yml}'
38
+
pattern: `${FIXTURES_ROOT}/*.{json,yaml,yml}`
39
39
},
40
40
messageSyntaxVersion
41
41
}
@@ -385,9 +385,7 @@ tester.run('prefer-linked-key-with-paren', rule as never, {
385
385
...options.yaml(null),
386
386
output: null,
387
387
errors: [
388
-
"If you want to use '"+
389
-
TEST_RULE_ID_PREFIX+
390
-
"prefer-linked-key-with-paren' rule, you need to set 'messageSyntaxVersion' at 'settings'. See the 'eslint-plugin-vue-i18n' documentation"
388
+
`If you want to use '${TEST_RULE_ID_PREFIX}prefer-linked-key-with-paren' rule, you need to set 'messageSyntaxVersion' at 'settings'. See the 'eslint-plugin-vue-i18n' documentation`
Copy file name to clipboardExpand all lines: tests/lib/rules/valid-message-syntax.ts
+12-24
Original file line number
Diff line number
Diff line change
@@ -17,7 +17,7 @@ const options = {
17
17
filename: join(localesRoot,'test.json'),
18
18
settings: {
19
19
'vue-i18n': {
20
-
localeDir: localesRoot+'/*.{json,yaml,yml}'
20
+
localeDir: `${localesRoot}/*.{json,yaml,yml}`
21
21
}
22
22
}
23
23
},
@@ -26,7 +26,7 @@ const options = {
26
26
filename: join(localesRoot,'test.json'),
27
27
settings: {
28
28
'vue-i18n': {
29
-
localeDir: localesRoot+'/*.{json,yaml,yml}',
29
+
localeDir: `${localesRoot}/*.{json,yaml,yml}`,
30
30
messageSyntaxVersion: '^8.0.0'
31
31
}
32
32
}
@@ -36,7 +36,7 @@ const options = {
36
36
filename: join(localesRoot,'test.json'),
37
37
settings: {
38
38
'vue-i18n': {
39
-
localeDir: localesRoot+'/*.{json,yaml,yml}',
39
+
localeDir: `${localesRoot}/*.{json,yaml,yml}`,
40
40
messageSyntaxVersion: '^9.0.0'
41
41
}
42
42
}
@@ -48,7 +48,7 @@ const options = {
48
48
filename: join(localesRoot,'test.yaml'),
49
49
settings: {
50
50
'vue-i18n': {
51
-
localeDir: localesRoot+'/*.{json,yaml,yml}'
51
+
localeDir: `${localesRoot}/*.{json,yaml,yml}`
52
52
}
53
53
}
54
54
},
@@ -57,7 +57,7 @@ const options = {
57
57
filename: join(localesRoot,'test.yaml'),
58
58
settings: {
59
59
'vue-i18n': {
60
-
localeDir: localesRoot+'/*.{json,yaml,yml}',
60
+
localeDir: `${localesRoot}/*.{json,yaml,yml}`,
61
61
messageSyntaxVersion: '^8.0.0'
62
62
}
63
63
}
@@ -67,7 +67,7 @@ const options = {
67
67
filename: join(localesRoot,'test.yaml'),
68
68
settings: {
69
69
'vue-i18n': {
70
-
localeDir: localesRoot+'/*.{json,yaml,yml}',
70
+
localeDir: `${localesRoot}/*.{json,yaml,yml}`,
71
71
messageSyntaxVersion: '^9.0.0'
72
72
}
73
73
}
@@ -79,7 +79,7 @@ const options = {
79
79
filename: join(localesRoot,'test.vue'),
80
80
settings: {
81
81
'vue-i18n': {
82
-
localeDir: localesRoot+'/*.{json,yaml,yml}'
82
+
localeDir: `${localesRoot}/*.{json,yaml,yml}`
83
83
}
84
84
}
85
85
},
@@ -88,7 +88,7 @@ const options = {
88
88
filename: join(localesRoot,'test.vue'),
89
89
settings: {
90
90
'vue-i18n': {
91
-
localeDir: localesRoot+'/*.{json,yaml,yml}',
91
+
localeDir: `${localesRoot}/*.{json,yaml,yml}`,
92
92
messageSyntaxVersion: '^9.0.0'
93
93
}
94
94
}
@@ -155,10 +155,7 @@ tester.run('valid-message-syntax', rule as never, {
155
155
...options.json.default,
156
156
errors: [
157
157
{
158
-
message:
159
-
"If you want to use '"+
160
-
TEST_RULE_ID_PREFIX+
161
-
"valid-message-syntax' rule, you need to set 'messageSyntaxVersion' at 'settings'. See the 'eslint-plugin-vue-i18n' documentation",
158
+
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`,
162
159
line: 1,
163
160
column: 1
164
161
},
@@ -233,10 +230,7 @@ tester.run('valid-message-syntax', rule as never, {
233
230
...options.yaml.default,
234
231
errors: [
235
232
{
236
-
message:
237
-
"If you want to use '"+
238
-
TEST_RULE_ID_PREFIX+
239
-
"valid-message-syntax' rule, you need to set 'messageSyntaxVersion' at 'settings'. See the 'eslint-plugin-vue-i18n' documentation",
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`,
240
234
line: 1,
241
235
column: 1
242
236
},
@@ -254,10 +248,7 @@ tester.run('valid-message-syntax', rule as never, {
254
248
...options.yaml.default,
255
249
errors: [
256
250
{
257
-
message:
258
-
"If you want to use '"+
259
-
TEST_RULE_ID_PREFIX+
260
-
"valid-message-syntax' rule, you need to set 'messageSyntaxVersion' at 'settings'. See the 'eslint-plugin-vue-i18n' documentation",
251
+
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`,
261
252
line: 1,
262
253
column: 1
263
254
},
@@ -379,10 +370,7 @@ tester.run('valid-message-syntax', rule as never, {
379
370
...options.vue.default,
380
371
errors: [
381
372
{
382
-
message:
383
-
"If you want to use '"+
384
-
TEST_RULE_ID_PREFIX+
385
-
"valid-message-syntax' rule, you need to set 'messageSyntaxVersion' at 'settings'. See the 'eslint-plugin-vue-i18n' documentation",
373
+
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`,
0 commit comments