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

@@ -16,7 +16,7 @@
<font-awesome-icon v-else :icon="name" :style="fontStyleData" />
</div>
<div v-else :class="$style['node-icon-placeholder']">
{{ nodeTypeName? nodeTypeName.charAt(0) : '?' }}
{{ nodeTypeName ? nodeTypeName.charAt(0) : '?' }}
?
</div>
</n8n-tooltip>
@@ -39,8 +39,7 @@ export default Vue.extend({
type: {
type: String,
required: true,
validator: (value: string): boolean =>
['file', 'icon', 'unknown'].includes(value),
validator: (value: string): boolean => ['file', 'icon', 'unknown'].includes(value),
},
src: {
type: String,
@@ -68,8 +67,8 @@ export default Vue.extend({
},
},
computed: {
iconStyleData (): object {
if(!this.size) {
iconStyleData(): object {
if (!this.size) {
return {
color: this.color || '',
};
@@ -82,7 +81,7 @@ export default Vue.extend({
'line-height': `${this.size}px`,
};
},
fontStyleData (): object {
fontStyleData(): object {
return {
'max-width': `${this.size}px`,
};
@@ -130,6 +129,6 @@ export default Vue.extend({
.disabled {
color: '#ccc';
-webkit-filter: contrast(40%) brightness(1.5) grayscale(100%);
filter: contrast(40%) brightness(1.5) grayscale(100%);
filter: contrast(40%) brightness(1.5) grayscale(100%);
}
</style>