Skip to content

Commit

Permalink
fix: lint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
kazupon committed Jul 3, 2023
1 parent cde8741 commit 9863438
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 5 deletions.
4 changes: 2 additions & 2 deletions packages/core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@
"jsdelivr": "dist/core.global.js",
"types": "dist/core.d.ts",
"dependencies": {
"@intlify/shared": "workspace:*",
"@intlify/core-base": "workspace:*"
"@intlify/core-base": "workspace:*",
"@intlify/shared": "workspace:*"
},
"engines": {
"node": ">= 16"
Expand Down
4 changes: 2 additions & 2 deletions packages/format-explorer/src/components/Options.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<script setup lang="ts">
import { reactive, watch, watchEffect } from 'vue'
import { reactive, watch } from 'vue'
import type { CompileOptions } from '@intlify/message-compiler'
/*
Expand Down Expand Up @@ -28,7 +28,7 @@ const emit = defineEmits<{
change: [options: CompileOptions]
}>()
watch(compilerOptions, (val, old) => {
watch(compilerOptions, val => {
console.log('watch compilerOptions', val)
emit('change', val)
})
Expand Down
1 change: 1 addition & 0 deletions packages/message-compiler/test/compiler.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@ describe('compiler options', () => {
const { ast } = compile(`hello world`, { location: false, optimize: false })
expect(ast).toMatchSnapshot('ast')
traverse(ast, node => {
// eslint-disable-next-line @typescript-eslint/no-explicit-any
expect((node as any).static).toBeUndefined()
})
})
Expand Down
2 changes: 1 addition & 1 deletion packages/message-compiler/test/generator.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -502,7 +502,7 @@ test('disable source map with location: false', async () => {
const msg = 'hello world'
const ast = parser.parse(msg)
transform(ast)
const { code, map } = generate(ast, { sourceMap: true, location: false })
const { map } = generate(ast, { sourceMap: true, location: false })

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

0 comments on commit 9863438

Please sign in to comment.