Skip to content

Commit 675e1bb

Browse files
author
Carsten König
committed
linting
1 parent 88a24ef commit 675e1bb

File tree

6 files changed

+12
-10
lines changed

6 files changed

+12
-10
lines changed

eslint.config.mjs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ export default [
1717
...vueI18n.configs['flat/recommended'],
1818
{
1919
rules: {
20+
'semi': ['error', 'never'],
21+
'vue/script-indent': ['error', 2, { 'baseIndent': 1 }],
2022
'vue/max-attributes-per-line': 'off',
2123
'vue/first-attribute-linebreak': 'off',
2224
'vue/html-closing-bracket-newline': 'off',

src/components/rest/RestQueryExamples.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,8 +107,8 @@
107107
108108
return REST_QUERY_EXAMPLES.filter(example => {
109109
return example.method.includes(filterValue) ||
110-
example.path.includes(filterValue) ||
111-
example.description.includes(filterValue)
110+
example.path.includes(filterValue) ||
111+
example.description.includes(filterValue)
112112
})
113113
})
114114

src/components/setup/ClusterForm.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,8 @@
4949
if (!formValid.value) return
5050
5151
connect().then(idx => props.connectCallback(idx))
52-
.catch(() => {
53-
})
52+
.catch(() => {
53+
})
5454
}
5555
const emit = defineEmits(['update:modelValue'])
5656
watch(cluster, value => emit('update:modelValue', value))

src/components/shared/IndexFilter/IndexPattern.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,8 @@
3939
const { requestState, callElasticsearch } = useElasticsearchAdapter()
4040
const load = () => {
4141
return callElasticsearch('catIndices', { index: localValue.value, h: 'index' })
42-
.then(body => (indices.value = body))
43-
.catch(() => (indices.value = []))
42+
.then(body => (indices.value = body))
43+
.catch(() => (indices.value = []))
4444
}
4545
onMounted(load)
4646

src/components/shared/IndexFilter/IndexSelect.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,8 +68,8 @@
6868
if (props.behavior === 'load') {
6969
const load = () => {
7070
return callElasticsearch(props.method, props.methodParams)
71-
.then(body => indices.value = body.map((i: EsIndex) => (i.index || i)).sort())
72-
.catch(() => (indices.value = []))
71+
.then(body => indices.value = body.map((i: EsIndex) => (i.index || i)).sort())
72+
.catch(() => (indices.value = []))
7373
}
7474
onMounted(load)
7575
}

src/components/shared/ModalLoader.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,8 @@
5454
const data = ref('')
5555
const load = () => {
5656
callElasticsearch(store.method, store.methodParams)
57-
.then(body => (data.value = stringifyJson(body)))
58-
.catch(() => (data.value = ''))
57+
.then(body => (data.value = stringifyJson(body)))
58+
.catch(() => (data.value = ''))
5959
}
6060
6161
const ownValue = ref(false)

0 commit comments

Comments
 (0)