@nitra/eslint-config 3.6.4 → 3.6.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.js +11 -2
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -49,8 +49,17 @@ const VUE_SCRIPT_ESLINT_RECOMMENDED_GAP_RULES = {
|
|
|
49
49
|
// @ts-expect-error типізація плагіна не гарантує `configs.recommended`; у runtime поле є.
|
|
50
50
|
const e18eRecommendedFlat = /** @type {import('eslint').Linter.FlatConfig} */ (e18ePlugin.configs.recommended)
|
|
51
51
|
|
|
52
|
-
/**
|
|
53
|
-
|
|
52
|
+
/**
|
|
53
|
+
* Лише віртуальні GraphQL-документи з процесора (gql у `.js`/`.vue`): шляхи виду
|
|
54
|
+
* `…/file.js/0_document.graphql` або `…/Comp.vue/…/0_document.graphql`. Фізичні `*.graphql` у проєкті не
|
|
55
|
+
* потрапляють сюди — їх ESLint з цим пакетом не аналізує graphql-eslint.
|
|
56
|
+
*/
|
|
57
|
+
const GRAPHQL_EXTRACTED_DOCUMENT_FILES = [
|
|
58
|
+
'**/*.vue/**/*.graphql',
|
|
59
|
+
'**/*.js/*.graphql',
|
|
60
|
+
'**/*.mjs/*.graphql',
|
|
61
|
+
'**/*.cjs/*.graphql'
|
|
62
|
+
]
|
|
54
63
|
|
|
55
64
|
/**
|
|
56
65
|
* Правила для витягнутих GraphQL-блоків: пресет operations-recommended (поля, типи, змінні).
|