From 416ff90371621fbd3cf2711ed7b53422ce08d337 Mon Sep 17 00:00:00 2001 From: Pelle Wessman Date: Thu, 15 Aug 2024 13:45:34 +0200 Subject: [PATCH 1/2] fix: improved check of whether ignore is global Fixes #80 --- app/components/ConfigItem.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/components/ConfigItem.vue b/app/components/ConfigItem.vue index 3c671a4..9a67e54 100644 --- a/app/components/ConfigItem.vue +++ b/app/components/ConfigItem.vue @@ -147,7 +147,7 @@ const extraConfigs = computed(() => {
-
+
Ignore files globally
From 6f71a063b2963bfcbc5d404e37616c340fbc9675 Mon Sep 17 00:00:00 2001 From: Pelle Wessman Date: Thu, 15 Aug 2024 15:37:39 +0200 Subject: [PATCH 2/2] Ignore meta fields when checking if lone ignore --- app/components/ConfigItem.vue | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/app/components/ConfigItem.vue b/app/components/ConfigItem.vue index 9a67e54..ce52c23 100644 --- a/app/components/ConfigItem.vue +++ b/app/components/ConfigItem.vue @@ -18,6 +18,19 @@ const emit = defineEmits<{ badgeClick: [string] }>() +/** + * Fields that are considered metadata and not part of the config object. + * @type {Set} + * @see {@link https://github.com/eslint/rewrite/blob/e2a7ec809db20e638abbad250d105ddbde88a8d5/packages/config-array/src/config-array.js#L72-L76} + */ +const META_FIELDS = new Set(['name']) + +/** + * Fields that are added to configs internally by config inspector. + * @type {Set} + */ +const CONFIG_INSPECTOR_FIELDS = new Set(['index']) + const open = defineModel('open', { default: true, }) @@ -147,7 +160,7 @@ const extraConfigs = computed(() => {
-
+
Ignore files globally