diff --git a/packages/cli/package.json b/packages/cli/package.json index 22656fd2df..cc23ac1b07 100644 --- a/packages/cli/package.json +++ b/packages/cli/package.json @@ -65,7 +65,7 @@ "@types/parseurl": "^1.3.1", "@types/request-promise-native": "^1.0.15", "jest": "^24.9.0", - "nodemon": "^1.19.1", + "nodemon": "^2.0.2", "run-script-os": "^1.0.7", "ts-jest": "^24.0.2", "tslint": "^5.17.0", diff --git a/packages/editor-ui/.eslintrc.js b/packages/editor-ui/.eslintrc.js index 25493bb780..b2f7cd1981 100644 --- a/packages/editor-ui/.eslintrc.js +++ b/packages/editor-ui/.eslintrc.js @@ -5,7 +5,6 @@ module.exports = { }, 'extends': [ 'plugin:vue/essential', - '@vue/standard', '@vue/typescript', ], rules: { @@ -18,6 +17,6 @@ module.exports = { 'no-labels': 0, }, parserOptions: { - parser: 'typescript-eslint-parser', + parser: '@typescript-eslint/parser', }, }; diff --git a/packages/editor-ui/package.json b/packages/editor-ui/package.json index 2cbd05db4d..ec0310dfcc 100644 --- a/packages/editor-ui/package.json +++ b/packages/editor-ui/package.json @@ -34,23 +34,27 @@ "@types/jest": "^24.0.18", "@types/lodash.get": "^4.4.5", "@types/lodash.set": "^4.3.6", + "@types/node": "12.12.22", "@types/quill": "^2.0.1", - "@vue/cli-plugin-babel": "^3.8.0", - "@vue/cli-plugin-e2e-cypress": "^3.8.0", - "@vue/cli-plugin-eslint": "^3.8.0", - "@vue/cli-plugin-typescript": "~3.8.1", - "@vue/cli-plugin-unit-jest": "^3.8.0", - "@vue/cli-service": "^3.8.0", - "@vue/eslint-config-standard": "^4.0.0", - "@vue/eslint-config-typescript": "~3.2.0", - "@vue/test-utils": "^1.0.0-beta.20", - "axios": "^0.18.1", + "@typescript-eslint/eslint-plugin": "^2.13.0", + "@typescript-eslint/parser": "^2.13.0", + "@vue/cli-plugin-babel": "^4.1.2", + "@vue/cli-plugin-e2e-cypress": "^4.1.2", + "@vue/cli-plugin-eslint": "^4.1.2", + "@vue/cli-plugin-typescript": "~4.1.2", + "@vue/cli-plugin-unit-jest": "^4.1.2", + "@vue/cli-service": "^4.1.2", + "@vue/eslint-config-standard": "^5.0.1", + "@vue/eslint-config-typescript": "~5.0.1", + "@vue/test-utils": "^1.0.0-beta.24", + "axios": "^0.19.0", "babel-core": "7.0.0-bridge.0", "babel-eslint": "^10.0.1", "dateformat": "^3.0.3", - "element-ui": "~2.4.11", - "eslint": "^5.8.0", - "eslint-plugin-vue": "^5.0.0-0", + "element-ui": "~2.13.0", + "eslint": "^6.8.0", + "eslint-plugin-import": "^2.19.1", + "eslint-plugin-vue": "^6.1.1", "file-saver": "^2.0.2", "flatted": "^2.0.0", "jquery": "^3.4.1", @@ -64,18 +68,18 @@ "prismjs": "^1.17.1", "quill": "^2.0.0-dev.3", "quill-autoformat": "^0.1.1", - "sass-loader": "^7.0.1", + "sass-loader": "^8.0.0", "string-template-parser": "^1.2.6", "ts-jest": "^24.0.2", "tslint": "^5.17.0", - "typescript": "~3.5.2", + "typescript": "~3.7.4", "vue": "^2.6.9", - "vue-cli-plugin-webpack-bundle-analyzer": "^1.3.0", + "vue-cli-plugin-webpack-bundle-analyzer": "^2.0.0", "vue-json-tree": "^0.4.1", "vue-prism-editor": "^0.3.0", "vue-router": "^3.0.6", "vue-template-compiler": "^2.5.17", - "vue-typed-mixins": "^0.1.0", + "vue-typed-mixins": "^0.2.0", "vuex": "^3.1.1" } } diff --git a/packages/editor-ui/src/components/BinaryDataDisplay.vue b/packages/editor-ui/src/components/BinaryDataDisplay.vue index b66fdd02ea..c9aca4856d 100644 --- a/packages/editor-ui/src/components/BinaryDataDisplay.vue +++ b/packages/editor-ui/src/components/BinaryDataDisplay.vue @@ -21,14 +21,10 @@ diff --git a/packages/editor-ui/src/components/WorkflowOpen.vue b/packages/editor-ui/src/components/WorkflowOpen.vue index 6fe447cfb9..9592ecb4d5 100644 --- a/packages/editor-ui/src/components/WorkflowOpen.vue +++ b/packages/editor-ui/src/components/WorkflowOpen.vue @@ -104,13 +104,13 @@ export default mixins( workflowData.updatedAt = this.convertToDisplayDate(workflowData.updatedAt as number); }); this.isDataLoading = false; - } + }, ) .catch( (error: Error) => { this.$showError(error, 'Problem loading workflows', 'There was a problem loading the workflows:'); this.isDataLoading = false; - } + }, ); }, workflowActiveChanged (data: { id: string, active: boolean }) { diff --git a/packages/editor-ui/src/components/WorkflowSettings.vue b/packages/editor-ui/src/components/WorkflowSettings.vue index 9b804e6dc2..178d51a813 100644 --- a/packages/editor-ui/src/components/WorkflowSettings.vue +++ b/packages/editor-ui/src/components/WorkflowSettings.vue @@ -185,7 +185,7 @@ export default mixins( key: 'none', value: 'Do not save', }, - ] + ], ); }, async loadSaveDataSuccessExecutionOptions () { @@ -204,7 +204,7 @@ export default mixins( key: 'none', value: 'Do not save', }, - ] + ], ); }, async loadSaveManualOptions () { diff --git a/packages/editor-ui/src/components/mixins/genericHelpers.ts b/packages/editor-ui/src/components/mixins/genericHelpers.ts index 4b77564a54..a51eecd547 100644 --- a/packages/editor-ui/src/components/mixins/genericHelpers.ts +++ b/packages/editor-ui/src/components/mixins/genericHelpers.ts @@ -63,7 +63,7 @@ export const genericHelpers = mixins(showMessage).extend({ text: 'Loading', spinner: 'el-icon-loading', background: 'rgba(255, 255, 255, 0.8)', - } + }, ); }, stopLoading () { diff --git a/packages/editor-ui/src/components/mixins/pushConnection.ts b/packages/editor-ui/src/components/mixins/pushConnection.ts index eb4c8fd868..f32423f6c9 100644 --- a/packages/editor-ui/src/components/mixins/pushConnection.ts +++ b/packages/editor-ui/src/components/mixins/pushConnection.ts @@ -122,7 +122,7 @@ export const pushConnection = mixins( // @ts-ignore receivedData = JSON.parse(event.data); } catch (error) { - console.error('The received push data is not valid JSON.'); + console.error('The received push data is not valid JSON.'); // eslint-disable-line no-console return; } diff --git a/packages/editor-ui/src/components/mixins/restApi.ts b/packages/editor-ui/src/components/mixins/restApi.ts index 875e366153..a72520718e 100644 --- a/packages/editor-ui/src/components/mixins/restApi.ts +++ b/packages/editor-ui/src/components/mixins/restApi.ts @@ -1,7 +1,7 @@ import Vue from 'vue'; import { parse } from 'flatted'; -import axios, { AxiosRequestConfig } from 'axios'; +import axios, { AxiosRequestConfig, Method } from 'axios'; import { IActivationError, ICredentialsDecryptedResponse, @@ -94,7 +94,7 @@ export const restApi = Vue.extend({ restApi (): IRestApi { const self = this; return { - async makeRestApiRequest (method: string, endpoint: string, data?: IDataObject): Promise { // tslint:disable-line:no-any + async makeRestApiRequest (method: Method, endpoint: string, data?: IDataObject): Promise { // tslint:disable-line:no-any try { const options: AxiosRequestConfig = { method, diff --git a/packages/editor-ui/src/components/mixins/workflowHelpers.ts b/packages/editor-ui/src/components/mixins/workflowHelpers.ts index 6c39c61ce4..e12eeb21a0 100644 --- a/packages/editor-ui/src/components/mixins/workflowHelpers.ts +++ b/packages/editor-ui/src/components/mixins/workflowHelpers.ts @@ -370,7 +370,7 @@ export const workflowHelpers = mixins( { confirmButtonText: 'Save', cancelButtonText: 'Cancel', - } + }, ) .then((data) => { // @ts-ignore @@ -403,7 +403,7 @@ export const workflowHelpers = mixins( if (currentWorkflow === undefined || withNewName === true) { // Workflow is new or is supposed to get saved under a new name // so create a new entry in database - workflowData.name = workflowName.trim() as string; + workflowData.name = workflowName!.trim() as string; if (withNewName === true) { // If an existing workflow gets resaved with a new name diff --git a/packages/editor-ui/src/components/mixins/workflowSave.ts b/packages/editor-ui/src/components/mixins/workflowSave.ts index 2596329032..1584d9a7c8 100644 --- a/packages/editor-ui/src/components/mixins/workflowSave.ts +++ b/packages/editor-ui/src/components/mixins/workflowSave.ts @@ -29,7 +29,7 @@ export const workflowSave = mixins( { confirmButtonText: 'Save', cancelButtonText: 'Cancel', - } + }, ) .then((data) => { // @ts-ignore @@ -62,7 +62,7 @@ export const workflowSave = mixins( if (currentWorkflow === undefined || withNewName === true) { // Workflow is new or is supposed to get saved under a new name // so create a new entry in database - workflowData.name = workflowName.trim() as string; + workflowData.name = workflowName!.trim() as string; if (withNewName === true) { // If an existing workflow gets resaved with a new name diff --git a/packages/editor-ui/src/views/NodeView.vue b/packages/editor-ui/src/views/NodeView.vue index ba5abdbb40..b9db49e03f 100644 --- a/packages/editor-ui/src/views/NodeView.vue +++ b/packages/editor-ui/src/views/NodeView.vue @@ -102,6 +102,7 @@