Skip to content

Commit

Permalink
linting
Browse files Browse the repository at this point in the history
  • Loading branch information
Carsten König committed Nov 6, 2024
1 parent 88a24ef commit 675e1bb
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 10 deletions.
2 changes: 2 additions & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ export default [
...vueI18n.configs['flat/recommended'],
{
rules: {
'semi': ['error', 'never'],
'vue/script-indent': ['error', 2, { 'baseIndent': 1 }],
'vue/max-attributes-per-line': 'off',
'vue/first-attribute-linebreak': 'off',
'vue/html-closing-bracket-newline': 'off',
Expand Down
4 changes: 2 additions & 2 deletions src/components/rest/RestQueryExamples.vue
Original file line number Diff line number Diff line change
Expand Up @@ -107,8 +107,8 @@
return REST_QUERY_EXAMPLES.filter(example => {
return example.method.includes(filterValue) ||
example.path.includes(filterValue) ||
example.description.includes(filterValue)
example.path.includes(filterValue) ||
example.description.includes(filterValue)
})
})
Expand Down
4 changes: 2 additions & 2 deletions src/components/setup/ClusterForm.vue
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,8 @@
if (!formValid.value) return
connect().then(idx => props.connectCallback(idx))
.catch(() => {
})
.catch(() => {
})
}
const emit = defineEmits(['update:modelValue'])
watch(cluster, value => emit('update:modelValue', value))
Expand Down
4 changes: 2 additions & 2 deletions src/components/shared/IndexFilter/IndexPattern.vue
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@
const { requestState, callElasticsearch } = useElasticsearchAdapter()
const load = () => {
return callElasticsearch('catIndices', { index: localValue.value, h: 'index' })
.then(body => (indices.value = body))
.catch(() => (indices.value = []))
.then(body => (indices.value = body))
.catch(() => (indices.value = []))
}
onMounted(load)
Expand Down
4 changes: 2 additions & 2 deletions src/components/shared/IndexFilter/IndexSelect.vue
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,8 @@
if (props.behavior === 'load') {
const load = () => {
return callElasticsearch(props.method, props.methodParams)
.then(body => indices.value = body.map((i: EsIndex) => (i.index || i)).sort())
.catch(() => (indices.value = []))
.then(body => indices.value = body.map((i: EsIndex) => (i.index || i)).sort())
.catch(() => (indices.value = []))
}
onMounted(load)
}
Expand Down
4 changes: 2 additions & 2 deletions src/components/shared/ModalLoader.vue
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,8 @@
const data = ref('')
const load = () => {
callElasticsearch(store.method, store.methodParams)
.then(body => (data.value = stringifyJson(body)))
.catch(() => (data.value = ''))
.then(body => (data.value = stringifyJson(body)))
.catch(() => (data.value = ''))
}
const ownValue = ref(false)
Expand Down

0 comments on commit 675e1bb

Please sign in to comment.