From d5dcbbf8e5e0f0d86691f8c03bceb426e0c23963 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Iv=C3=A1n=20Ovejero?= Date: Tue, 9 Jan 2024 16:37:05 +0100 Subject: [PATCH] ci: Fix lint setup in `chat` package (no-changelog) (#8275) --- packages/@n8n/chat/.eslintrc.cjs | 41 ------------------- packages/@n8n/chat/package.json | 3 +- packages/@n8n/chat/src/App.vue | 2 +- .../@n8n/chat/src/__stories__/App.stories.ts | 2 +- packages/@n8n/chat/src/components/Chat.vue | 2 +- .../@n8n/chat/src/components/ChatWindow.vue | 4 +- packages/@n8n/chat/src/components/Input.vue | 2 +- packages/@n8n/chat/src/components/Layout.vue | 2 +- packages/@n8n/chat/src/components/Message.vue | 8 +--- .../chat/src/components/MessageTyping.vue | 4 +- packages/@n8n/chat/src/plugins/chat.ts | 2 +- packages/@n8n/chat/src/types/chat.ts | 2 +- packages/@n8n_io/eslint-config/frontend.js | 6 --- packages/design-system/.eslintrc.js | 2 - packages/editor-ui/.eslintrc.js | 2 + 15 files changed, 17 insertions(+), 67 deletions(-) diff --git a/packages/@n8n/chat/.eslintrc.cjs b/packages/@n8n/chat/.eslintrc.cjs index bf217e07f3153..a1ad467ea3b92 100644 --- a/packages/@n8n/chat/.eslintrc.cjs +++ b/packages/@n8n/chat/.eslintrc.cjs @@ -7,45 +7,4 @@ module.exports = { extends: ['@n8n_io/eslint-config/frontend'], ...sharedOptions(__dirname, 'frontend'), - - rules: { - 'n8n-local-rules/dangerously-use-html-string-missing': 'off', - - // TODO: Remove these - 'id-denylist': 'warn', - 'import/extensions': 'warn', - 'import/no-default-export': 'warn', - 'import/order': 'off', - 'import/no-cycle': 'warn', - 'import/no-duplicates': 'warn', - '@typescript-eslint/ban-types': 'warn', - '@typescript-eslint/dot-notation': 'warn', - '@typescript-eslint/lines-between-class-members': 'warn', - '@typescript-eslint/member-delimiter-style': 'warn', - '@typescript-eslint/naming-convention': 'warn', - '@typescript-eslint/no-empty-interface': 'warn', - '@typescript-eslint/no-for-in-array': 'warn', - '@typescript-eslint/no-loop-func': 'warn', - '@typescript-eslint/no-non-null-assertion': 'warn', - '@typescript-eslint/no-shadow': 'warn', - '@typescript-eslint/no-this-alias': 'warn', - '@typescript-eslint/no-unnecessary-boolean-literal-compare': 'warn', - '@typescript-eslint/no-unnecessary-type-assertion': 'warn', - '@typescript-eslint/no-unsafe-argument': 'warn', - '@typescript-eslint/no-unsafe-call': 'warn', - '@typescript-eslint/no-unsafe-return': 'warn', - '@typescript-eslint/no-unused-expressions': 'warn', - '@typescript-eslint/no-unused-vars': 'warn', - '@typescript-eslint/no-use-before-define': 'warn', - '@typescript-eslint/no-var-requires': 'warn', - '@typescript-eslint/prefer-nullish-coalescing': 'warn', - '@typescript-eslint/prefer-optional-chain': 'warn', - '@typescript-eslint/restrict-plus-operands': 'warn', - '@typescript-eslint/unbound-method': 'warn', - '@typescript-eslint/ban-ts-comment': ['warn', { 'ts-ignore': true }], - '@typescript-eslint/no-redundant-type-constituents': 'warn', - '@typescript-eslint/no-base-to-string': 'warn', - '@typescript-eslint/no-explicit-any': 'warn', - '@typescript-eslint/no-unsafe-enum-comparison': 'warn', - }, }; diff --git a/packages/@n8n/chat/package.json b/packages/@n8n/chat/package.json index 9408ae572d52b..5700b3273e613 100644 --- a/packages/@n8n/chat/package.json +++ b/packages/@n8n/chat/package.json @@ -14,7 +14,8 @@ "test:dev": "vitest", "test": "vitest run --coverage", "type-check": "vue-tsc --noEmit -p tsconfig.json --composite false", - "lint": "eslint . --ext .vue,.js,.jsx,.cjs,.mjs,.ts,.tsx,.cts,.mts --fix --ignore-path .gitignore --ignore-path .eslintignore", + "lint": "eslint . --ext .js,.ts,.vue --quiet", + "lintfix": "eslint . --ext .js,.ts,.vue --fix", "format": "prettier --write src/", "storybook": "storybook dev -p 6006 --no-open", "build:storybook": "storybook build", diff --git a/packages/@n8n/chat/src/App.vue b/packages/@n8n/chat/src/App.vue index d2afb274cdb65..ec90bef42583e 100644 --- a/packages/@n8n/chat/src/App.vue +++ b/packages/@n8n/chat/src/App.vue @@ -1,9 +1,9 @@