Skip to content

Commit 682451e

Browse files
committed
chore: fix lint errors
1 parent 8b5f790 commit 682451e

File tree

4 files changed

+94
-134
lines changed

4 files changed

+94
-134
lines changed

package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@
7878
"test:unit": "cross-env TZ=UTC vitest run -c ./vitest.unit.config.ts --typecheck"
7979
},
8080
"devDependencies": {
81-
"@eslint/js": "^9.9.1",
81+
"@eslint/js": "^9.38.0",
8282
"@intlify/core-base": "workspace:*",
8383
"@intlify/message-compiler": "workspace:*",
8484
"@intlify/vue-i18n-core": "workspace:*",
@@ -99,9 +99,9 @@
9999
"api-docs-gen": "^0.4.0",
100100
"bumpp": "^10.0.0",
101101
"cross-env": "^7.0.3",
102-
"eslint": "^9.9.1",
103-
"eslint-config-prettier": "^9.1.0",
104-
"eslint-plugin-vue": "^9.28.0",
102+
"eslint": "^9.38.0",
103+
"eslint-config-prettier": "^10.1.8",
104+
"eslint-plugin-vue": "^10.5.1",
105105
"fast-glob": "^3.3.3",
106106
"get-port-please": "^3.1.2",
107107
"gh-changelogen": "^0.2.8",

packages/format-explorer/src/App.vue

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
<script setup lang="ts">
2-
import { ref } from 'vue'
3-
import { SourceMapConsumer } from 'source-map-js'
42
import { baseCompile } from '@intlify/message-compiler'
53
import * as monaco from 'monaco-editor'
4+
import { SourceMapConsumer } from 'source-map-js'
5+
import { ref } from 'vue'
66
import { debounce } from './utils'
77
8-
import Navigation from './components/Navigation.vue'
98
import Editor from './components/Editor.vue'
9+
import Navigation from './components/Navigation.vue'
1010
import Options from './components/Options.vue'
1111
1212
import type { CompileError, CompileOptions } from '@intlify/message-compiler'
@@ -23,6 +23,7 @@ interface PersistedState {
2323
const genCodes = ref<string>('')
2424
const compileErrors = ref<CompileError[]>([])
2525
const persistedState: PersistedState = JSON.parse(
26+
// eslint-disable-next-line -- FIXME:
2627
decodeURIComponent(window.location.hash.slice(1)) || localStorage.getItem('state') || `{}`
2728
)
2829
const initialCodes = persistedState.src || 'hello {name}!'
@@ -88,7 +89,9 @@ let outputEditor: monaco.editor.IStandaloneCodeEditor | null = null
8889
const onChangeModel = async (message: string): Promise<void> => {
8990
console.log('onChangeModel', message)
9091
const state = JSON.stringify({ src: message } as PersistedState)
92+
// eslint-disable-next-line -- FIXME:
9193
localStorage.setItem('state', state)
94+
// eslint-disable-next-line -- FIXME:
9295
window.location.hash = encodeURIComponent(state)
9396
genCodes.value = await compile(message, _compilerOptions)
9497
}

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ import theme from '../theme'
1616
import { debounce as _debounce } from '../utils'
1717
1818
// @ts-ignore
19+
// eslint-disable-next-line -- FIXME:
1920
self.MonacoEnvironment = {
2021
getWorker(_: unknown, label: string) {
2122
if (label === 'json') {
@@ -95,6 +96,7 @@ onMounted(() => {
9596
throw new Error('editor is null')
9697
}
9798
99+
// eslint-disable-next-line -- FIXME:
98100
window.addEventListener('resize', () => editor.layout())
99101
100102
const changeEmitter = props.debounce

0 commit comments

Comments
 (0)