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

@@ -4,8 +4,7 @@ import { action } from '@storybook/addon-actions';
export default {
title: 'Modules/FormBox',
component: N8nFormBox,
argTypes: {
},
argTypes: {},
parameters: {
backgrounds: { default: '--color-background-light' },
},
@@ -35,7 +34,7 @@ FormBox.args = {
label: 'Your Email',
type: 'email',
required: true,
validationRules: [{name: 'VALID_EMAIL'}],
validationRules: [{ name: 'VALID_EMAIL' }],
},
},
{
@@ -51,7 +50,7 @@ FormBox.args = {
label: 'Your Password',
type: 'password',
required: true,
validationRules: [{name: 'DEFAULT_PASSWORD_RULES'}],
validationRules: [{ name: 'DEFAULT_PASSWORD_RULES' }],
},
},
{
@@ -66,4 +65,3 @@ FormBox.args = {
redirectText: 'Go somewhere',
redirectLink: 'https://n8n.io',
};

View File

@@ -1,20 +1,11 @@
<template>
<div
:class="['n8n-form-box', $style.container]"
>
<div
v-if="title"
:class="$style.heading"
>
<n8n-heading
size="xlarge"
>
{{title}}
<div :class="['n8n-form-box', $style.container]">
<div v-if="title" :class="$style.heading">
<n8n-heading size="xlarge">
{{ title }}
</n8n-heading>
</div>
<div
:class="$style.inputsContainer"
>
<div :class="$style.inputsContainer">
<n8n-form-inputs
:inputs="inputs"
:eventBus="formBus"
@@ -24,16 +15,9 @@
/>
</div>
<div :class="$style.buttonsContainer" v-if="secondaryButtonText || buttonText">
<span
v-if="secondaryButtonText"
:class="$style.secondaryButtonContainer"
>
<n8n-link
size="medium"
theme="text"
@click="onSecondaryButtonClick"
>
{{secondaryButtonText}}
<span v-if="secondaryButtonText" :class="$style.secondaryButtonContainer">
<n8n-link size="medium" theme="text" @click="onSecondaryButtonClick">
{{ secondaryButtonText }}
</n8n-link>
</span>
<n8n-button
@@ -45,11 +29,8 @@
/>
</div>
<div :class="$style.actionContainer">
<n8n-link
v-if="redirectText && redirectLink"
:to="redirectLink"
>
{{redirectText}}
<n8n-link v-if="redirectText && redirectLink" :to="redirectLink">
{{ redirectText }}
</n8n-link>
</div>
</div>
@@ -103,10 +84,10 @@ export default Vue.extend({
};
},
methods: {
onInput(e: {name: string, value: string}) {
onInput(e: { name: string; value: string }) {
this.$emit('input', e);
},
onSubmit(e: {[key: string]: string}) {
onSubmit(e: { [key: string]: string }) {
this.$emit('submit', e);
},
onButtonClick() {