Skip to content

Commit d54fc72

Browse files
authored
Fix type error (#120)
1 parent 7215b1d commit d54fc72

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/rules/key-format-style.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* @author Yosuke Ota
33
*/
44
import type { AST as VAST } from 'vue-eslint-parser'
5-
import type { AST as JSONAST } from 'eslint-plugin-jsonc'
5+
import type { AST as JSONAST } from 'jsonc-eslint-parser'
66
import type { AST as YAMLAST } from 'yaml-eslint-parser'
77
import { extname } from 'path'
88
import { getLocaleMessages } from '../utils/index'

tests/lib/rules/key-format-style.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import rule = require('../../../lib/rules/key-format-style')
77
import { SettingsVueI18nLocaleDirObject } from '../../../lib/types'
88

99
const vueParser = require.resolve('vue-eslint-parser')
10-
const jsonParser = require.resolve('eslint-plugin-jsonc')
10+
const jsonParser = require.resolve('jsonc-eslint-parser')
1111
const yamlParser = require.resolve('yaml-eslint-parser')
1212
const fileLocalesRoot = join(__dirname, '../../fixtures/key-format-style/file')
1313
const keyLocalesRoot = join(__dirname, '../../fixtures/key-format-style/key')

0 commit comments

Comments
 (0)