File tree 4 files changed +39
-0
lines changed
4 files changed +39
-0
lines changed Original file line number Diff line number Diff line change
1
+ import vueI18n from '@intlify/eslint-plugin-vue-i18n'
2
+ import js from '@eslint/js'
3
+ import pluginVue from 'eslint-plugin-vue'
4
+
5
+ export default [
6
+ js . configs . recommended ,
7
+ ...pluginVue . configs [ 'flat/recommended' ] ,
8
+ ...vueI18n . configs . recommended ,
9
+ {
10
+ rules : {
11
+ // override rules
12
+ } ,
13
+ settings : {
14
+ 'vue-i18n' : {
15
+ localeDir : './src/resources/*.json' ,
16
+ messageSyntaxVersion : '^11.0.0'
17
+ }
18
+ }
19
+ }
20
+ ]
Original file line number Diff line number Diff line change
1
+ {
2
+ "name" : " @intlify/eslint-plugin-vue-i18n-repro" ,
3
+ "type" : " module" ,
4
+ "private" : true ,
5
+ "devDependencies" : {
6
+ "@eslint/js" : " latest" ,
7
+ "@intlify/eslint-plugin-vue-i18n" : " latest" ,
8
+ "eslint" : " latest" ,
9
+ "eslint-plugin-vue" : " latest"
10
+ }
11
+ }
Original file line number Diff line number Diff line change
1
+ <template >
2
+ <p >{{ $t('hello') }}</p >
3
+ <p >{{ $t('hi') }}</p >
4
+ </template >
Original file line number Diff line number Diff line change
1
+ {
2
+ "hello" : " Hello! <span>DIO!</span>" ,
3
+ "hi" : " Hi! DIO!"
4
+ }
You can’t perform that action at this time.
0 commit comments