@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.
Files changed (2) hide show
  1. package/index.js +11 -2
  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
- /** Віртуальні документи з gql/graphql у .js/.vue (processor); ESLint обробляє їх як окремі `*.graphql` файли. */
53
- const GRAPHQL_EXTRACTED_DOCUMENT_FILES = ['**/*.graphql']
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 (поля, типи, змінні).
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nitra/eslint-config",
3
- "version": "3.6.4",
3
+ "version": "3.6.6",
4
4
  "description": "An ESLint shareable config for projects using Vue and Node",
5
5
  "keywords": [
6
6
  "eslint",