ci: Ensure that eslint runs on all frontend code (no-changelog) (#4602)

* ensure that eslint runs on all frontend code

* remove tslint from `design-system`

* enable prettier and eslint-prettier for `design-system`

* Delete tslint.json

* use a single editorconfig for the repo

* enable prettier for all code in `design-system`

* more linting fixes on design-system

* ignore coverage for git and prettier

* lintfix on editor-ui
This commit is contained in:
कारतोफ्फेलस्क्रिप्ट™
2022-11-15 18:20:54 +01:00
committed by GitHub
parent d96d6f11db
commit 13659d036f
227 changed files with 2222 additions and 2566 deletions

View File

@@ -1,5 +1,11 @@
<template>
<div :class="{'n8n-select': true, [$style.container]: true, [$style.withPrepend]: !!$slots.prepend}">
<div
:class="{
'n8n-select': true,
[$style.container]: true,
[$style.withPrepend]: !!$slots.prepend,
}"
>
<div v-if="$slots.prepend" :class="$style.prepend">
<slot name="prepend" />
</div>
@@ -41,8 +47,7 @@ export default Vue.extend({
ElSelect, // eslint-disable-line @typescript-eslint/no-unsafe-assignment
},
props: {
value: {
},
value: {},
size: {
type: String,
default: 'large',
@@ -112,21 +117,21 @@ export default Vue.extend({
},
methods: {
focus() {
const select = this.$refs.innerSelect as Vue & HTMLElement | undefined;
const select = this.$refs.innerSelect as (Vue & HTMLElement) | undefined;
if (select) {
select.focus();
}
},
blur() {
const select = this.$refs.innerSelect as Vue & HTMLElement | undefined;
const select = this.$refs.innerSelect as (Vue & HTMLElement) | undefined;
if (select) {
select.blur();
}
},
focusOnInput() {
const select = this.$refs.innerSelect as Vue & HTMLElement | undefined;
const select = this.$refs.innerSelect as (Vue & HTMLElement) | undefined;
if (select) {
const input = select.$refs.input as Vue & HTMLElement | undefined;
const input = select.$refs.input as (Vue & HTMLElement) | undefined;
if (input) {
input.focus();
}