From d2642acbb90e85a339dab51c71f31417b34018b0 Mon Sep 17 00:00:00 2001 From: Ulf Gebhardt Date: Wed, 15 Nov 2023 16:19:28 +0100 Subject: [PATCH] eslint comments --- .eslintrc.json | 6 ++++-- package-lock.json | 29 +++++++++++++++++++++++++++++ package.json | 1 + 3 files changed, 34 insertions(+), 2 deletions(-) diff --git a/.eslintrc.json b/.eslintrc.json index 127bc15..528e341 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -5,12 +5,12 @@ }, "extends": [ "eslint:recommended", + "plugin:@eslint-community/eslint-comments/recommended", "plugin:@typescript-eslint/recommended", "plugin:import/recommended", "plugin:import/typescript", "plugin:promise/recommended", "plugin:vue/vue3-recommended", - "plugin:vuetify/base", "plugin:vuetify/recommended", "plugin:prettier/recommended" ], @@ -52,6 +52,8 @@ // This makes sure our vike router does not throw errors "vue/multi-word-component-names": ["error", { "ignores": ["default", "index.page"] - }] + }], + // Optional eslint-comments rule + "@eslint-community/eslint-comments/no-unused-disable": "error" } } diff --git a/package-lock.json b/package-lock.json index 92ed3a2..df5eea6 100644 --- a/package-lock.json +++ b/package-lock.json @@ -31,6 +31,7 @@ "vuetify": "^3.4.0" }, "devDependencies": { + "@eslint-community/eslint-plugin-eslint-comments": "^4.1.0", "@storybook/addon-essentials": "^7.5.3", "@storybook/addon-interactions": "^7.5.3", "@storybook/addon-links": "^7.5.3", @@ -2636,6 +2637,34 @@ "node": ">=12" } }, + "node_modules/@eslint-community/eslint-plugin-eslint-comments": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/@eslint-community/eslint-plugin-eslint-comments/-/eslint-plugin-eslint-comments-4.1.0.tgz", + "integrity": "sha512-B2mwipifrBS5E00vN8vME68laPMZ0h3sNGOEDj5g9iUN9k5EU99Omq0Nc325eKNoFFDnDtiHp3DqIjO+1bstag==", + "dev": true, + "dependencies": { + "escape-string-regexp": "^4.0.0", + "ignore": "^5.2.4" + }, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "peerDependencies": { + "eslint": "^6.0.0 || ^7.0.0 || ^8.0.0" + } + }, + "node_modules/@eslint-community/eslint-plugin-eslint-comments/node_modules/escape-string-regexp": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-4.0.0.tgz", + "integrity": "sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA==", + "dev": true, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, "node_modules/@eslint-community/eslint-utils": { "version": "4.4.0", "resolved": "https://registry.npmjs.org/@eslint-community/eslint-utils/-/eslint-utils-4.4.0.tgz", diff --git a/package.json b/package.json index 49bfe28..d3443b9 100644 --- a/package.json +++ b/package.json @@ -60,6 +60,7 @@ "vuetify": "^3.4.0" }, "devDependencies": { + "@eslint-community/eslint-plugin-eslint-comments": "^4.1.0", "@storybook/addon-essentials": "^7.5.3", "@storybook/addon-interactions": "^7.5.3", "@storybook/addon-links": "^7.5.3",