Skip to content

Commit 5a588ea

Browse files
committed
Japanese and Chinese has no lower/upper letters
1 parent e3e5fb8 commit 5a588ea

File tree

1 file changed

+13
-18
lines changed

1 file changed

+13
-18
lines changed

tests/lib/rules/prop-name-casing.js

Lines changed: 13 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -287,6 +287,19 @@ ruleTester.run('prop-name-casing', rule, {
287287
}
288288
`,
289289
parserOptions
290+
},
291+
{
292+
// Japanese characters
293+
filename: 'test.vue',
294+
code: `
295+
export default {
296+
props: {
297+
'漢字': String
298+
}
299+
}
300+
`,
301+
output: null,
302+
parserOptions
290303
}
291304
],
292305

@@ -507,24 +520,6 @@ ruleTester.run('prop-name-casing', rule, {
507520
line: 4
508521
}]
509522
},
510-
{
511-
// Japanese characters
512-
filename: 'test.vue',
513-
code: `
514-
export default {
515-
props: {
516-
'漢字': String
517-
}
518-
}
519-
`,
520-
output: null,
521-
parserOptions,
522-
errors: [{
523-
message: 'Prop "漢字" is not in camelCase.',
524-
type: 'Property',
525-
line: 4
526-
}]
527-
},
528523
{
529524
filename: 'test.vue',
530525
code: `

0 commit comments

Comments
 (0)