Skip to content

Commit 9863438

Browse files
committed
fix: lint errors
1 parent cde8741 commit 9863438

File tree

4 files changed

+6
-5
lines changed

4 files changed

+6
-5
lines changed

packages/core/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,8 @@
3333
"jsdelivr": "dist/core.global.js",
3434
"types": "dist/core.d.ts",
3535
"dependencies": {
36-
"@intlify/shared": "workspace:*",
37-
"@intlify/core-base": "workspace:*"
36+
"@intlify/core-base": "workspace:*",
37+
"@intlify/shared": "workspace:*"
3838
},
3939
"engines": {
4040
"node": ">= 16"

packages/format-explorer/src/components/Options.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<script setup lang="ts">
2-
import { reactive, watch, watchEffect } from 'vue'
2+
import { reactive, watch } from 'vue'
33
import type { CompileOptions } from '@intlify/message-compiler'
44
55
/*
@@ -28,7 +28,7 @@ const emit = defineEmits<{
2828
change: [options: CompileOptions]
2929
}>()
3030
31-
watch(compilerOptions, (val, old) => {
31+
watch(compilerOptions, val => {
3232
console.log('watch compilerOptions', val)
3333
emit('change', val)
3434
})

packages/message-compiler/test/compiler.test.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,7 @@ describe('compiler options', () => {
8787
const { ast } = compile(`hello world`, { location: false, optimize: false })
8888
expect(ast).toMatchSnapshot('ast')
8989
traverse(ast, node => {
90+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
9091
expect((node as any).static).toBeUndefined()
9192
})
9293
})

packages/message-compiler/test/generator.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -502,7 +502,7 @@ test('disable source map with location: false', async () => {
502502
const msg = 'hello world'
503503
const ast = parser.parse(msg)
504504
transform(ast)
505-
const { code, map } = generate(ast, { sourceMap: true, location: false })
505+
const { map } = generate(ast, { sourceMap: true, location: false })
506506

507507
expect(map!.sourcesContent).toBeUndefined()
508508
const consumer = await new SourceMapConsumer(map as RawSourceMap)

0 commit comments

Comments
 (0)