refactor: Phase out TSLint in editor-ui (no-changelog) (#4935)

* 🔥 Remove `tslint.json`

* 🔥 Remove TSLint commands

* 🔥 Remove exceptions in `editor-ui`

* 🔥 Remove from `.npmignore`

* 🔥 Remove from `eslint-config`

* 🔥 Remove exception from `design-system`

* 🎨 Prettify

* 📦 Update pnpm-lock

* 🔥 Remove duplicate import

* 🔥 Remove exemption for `no-explicit-any`

* 👕 Inline `no-explicit-any` exemptions
This commit is contained in:
Iván Ovejero
2022-12-15 14:06:00 +01:00
committed by GitHub
parent efa4c56757
commit 0e4cda5763
32 changed files with 69 additions and 165 deletions

View File

@@ -4,11 +4,11 @@ import Vue from 'vue';
export const debounceHelper = Vue.extend({
data() {
return {
debouncedFunctions: [] as any[], // tslint:disable-line:no-any
debouncedFunctions: [] as any[],
};
},
methods: {
// tslint:disable-next-line:no-any
// eslint-disable-next-line @typescript-eslint/no-explicit-any
async callDebounced(...inputParameters: any[]): Promise<void> {
const functionName = inputParameters.shift() as string;
const { trailing, debounceTime } = inputParameters.shift();

View File

@@ -1,6 +1,6 @@
/* eslint-disable @typescript-eslint/no-explicit-any */
import Vue from 'vue';
// tslint:disable-next-line:no-any
function broadcast(componentName: string, eventName: string, params: any) {
// @ts-ignore
(this as Vue).$children.forEach((child) => {
@@ -19,7 +19,6 @@ function broadcast(componentName: string, eventName: string, params: any) {
export default Vue.extend({
methods: {
// tslint:disable-next-line:no-any
$dispatch(componentName: string, eventName: string, params: any) {
let parent = this.$parent || this.$root;
let name = parent.$options.name;
@@ -37,7 +36,7 @@ export default Vue.extend({
parent.$emit.apply(parent, [eventName].concat(params));
}
},
// tslint:disable-next-line:no-any
$broadcast(componentName: string, eventName: string, params: any) {
broadcast.call(this, componentName, eventName, params);
},

View File

@@ -6,7 +6,8 @@ import mixins from 'vue-typed-mixins';
export const genericHelpers = mixins(showMessage).extend({
data() {
return {
loadingService: null as any | null, // tslint:disable-line:no-any
// eslint-disable-next-line @typescript-eslint/no-explicit-any
loadingService: null as any | null,
};
},
computed: {

View File

@@ -65,7 +65,7 @@ export const restApi = Vue.extend({
method: Method,
endpoint: string,
data?: IDataObject,
// tslint:disable-next-line:no-any
// eslint-disable-next-line @typescript-eslint/no-explicit-any
): Promise<any> {
return makeRestApiRequest(self.rootStore.getRestApiContext, method, endpoint, data);
},

View File

@@ -68,7 +68,6 @@ import { useTemplatesStore } from '@/stores/templates';
import { useNodeTypesStore } from '@/stores/nodeTypes';
import { useUsersStore } from '@/stores/users';
import { useWorkflowsEEStore } from '@/stores/workflows.ee';
import { ICredentialMap, ICredentialsResponse, IUsedCredential } from '@/Interface';
import { getWorkflowPermissions, IPermissions } from '@/permissions';
import { ICredentialsResponse } from '@/Interface';