@testgorilla/tgo-linting 2.1.1 → 4.0.0

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@testgorilla/tgo-linting",
3
- "version": "2.1.1",
3
+ "version": "4.0.0",
4
4
  "displayName": "TGO Linting",
5
5
  "description": "Linting rules and code quality standards for TestGorilla projects",
6
6
  "author": "TestGorilla",
@@ -24,9 +24,9 @@
24
24
  "registry": "https://registry.npmjs.org/"
25
25
  },
26
26
  "dependencies": {
27
- "@angular-eslint/eslint-plugin": "^19.8.0",
28
- "@angular-eslint/eslint-plugin-template": "^19.8.0",
29
- "@angular-eslint/template-parser": "^19.8.0",
27
+ "@angular-eslint/eslint-plugin": "^20.7.0",
28
+ "@angular-eslint/eslint-plugin-template": "^20.7.0",
29
+ "@angular-eslint/template-parser": "^20.7.0",
30
30
  "@typescript-eslint/utils": "^8.56.1",
31
31
  "eslint-config-prettier": "10.1.8",
32
32
  "eslint-import-resolver-typescript": "4.4.4",
@@ -15,7 +15,17 @@ export interface RecommendedOptions {
15
15
  * Strict default ESLint flat-config preset for TGO Angular frontends.
16
16
  *
17
17
  * Type-aware rules (no-unsafe-*, restrict-*, no-floating-promises, etc.) are
18
- * kept at `warn` until consumer tsconfig moves to TS strict. Ratchet to error
19
- * after the strict tsconfig migration (Phase 1, Workstream 3).
18
+ * at `error`. The previously-deferred warn severities were ratcheted to error
19
+ * after the strict tsconfig migration landed in consumer codebases. Two rules
20
+ * remain explicitly relaxed in the preset:
21
+ * - `@typescript-eslint/consistent-type-imports` (off — Angular DI conflict)
22
+ * - `@angular-eslint/use-component-view-encapsulation` (off — separate
23
+ * styling refactor workstream)
24
+ * See the inline comments at each rule for full rationale.
25
+ *
26
+ * The spec/mock files block (default glob: *.spec.ts + *.integration.spec.ts
27
+ * + *.mock.ts + *.mocks.ts) relaxes type-aware family rules and a few others
28
+ * to match the idiomatic test-code shape (bracket access, fire-trigger
29
+ * subscribes, mock literals with `any` typing).
20
30
  */
21
31
  export declare function recommended(opts: RecommendedOptions): ConfigArray;
@@ -24,11 +24,26 @@ const tseslintRecommendedTypeChecked = typescript_eslint_1.default.configs.recom
24
24
  * Strict default ESLint flat-config preset for TGO Angular frontends.
25
25
  *
26
26
  * Type-aware rules (no-unsafe-*, restrict-*, no-floating-promises, etc.) are
27
- * kept at `warn` until consumer tsconfig moves to TS strict. Ratchet to error
28
- * after the strict tsconfig migration (Phase 1, Workstream 3).
27
+ * at `error`. The previously-deferred warn severities were ratcheted to error
28
+ * after the strict tsconfig migration landed in consumer codebases. Two rules
29
+ * remain explicitly relaxed in the preset:
30
+ * - `@typescript-eslint/consistent-type-imports` (off — Angular DI conflict)
31
+ * - `@angular-eslint/use-component-view-encapsulation` (off — separate
32
+ * styling refactor workstream)
33
+ * See the inline comments at each rule for full rationale.
34
+ *
35
+ * The spec/mock files block (default glob: *.spec.ts + *.integration.spec.ts
36
+ * + *.mock.ts + *.mocks.ts) relaxes type-aware family rules and a few others
37
+ * to match the idiomatic test-code shape (bracket access, fire-trigger
38
+ * subscribes, mock literals with `any` typing).
29
39
  */
30
40
  function recommended(opts) {
31
- const { tsconfigRootDir, project = 'tsconfig.json', tsFiles = ['src/**/*.ts'], htmlFiles = ['src/**/*.html'], specFiles = ['src/**/*.spec.ts', 'src/**/*.integration.spec.ts'], } = opts;
41
+ const { tsconfigRootDir, project = 'tsconfig.json', tsFiles = ['src/**/*.ts'], htmlFiles = ['src/**/*.html'], specFiles = [
42
+ 'src/**/*.spec.ts',
43
+ 'src/**/*.integration.spec.ts',
44
+ 'src/**/*.mock.ts',
45
+ 'src/**/*.mocks.ts',
46
+ ], } = opts;
32
47
  return typescript_eslint_1.default.config(
33
48
  // ── TypeScript files (*.ts) ──────────────────────────────────────────
34
49
  {
@@ -64,45 +79,59 @@ function recommended(opts) {
64
79
  ...tseslintRecommendedTypeChecked,
65
80
  ...eslint_config_prettier_1.default.rules,
66
81
  // ══════════════════════════════════════════════════════════════════
67
- // Type-aware rules — DEFERRED at warn until TS strict lands.
68
- // Cleanup PRs ratchet these to error after tsconfig.json gets `strict: true`.
82
+ // Type-aware rules — ERROR (ratcheted from warn after TS strict landed
83
+ // in consumer codebases).
69
84
  // ══════════════════════════════════════════════════════════════════
70
- '@typescript-eslint/no-unused-vars': 'warn',
71
- '@typescript-eslint/no-unsafe-assignment': 'warn',
72
- '@typescript-eslint/no-unsafe-call': 'warn',
73
- '@typescript-eslint/no-unsafe-member-access': 'warn',
74
- '@typescript-eslint/no-unsafe-return': 'warn',
75
- '@typescript-eslint/no-unsafe-argument': 'warn',
76
- '@typescript-eslint/no-unsafe-enum-comparison': 'warn',
77
- '@typescript-eslint/no-unsafe-unary-minus': 'warn',
78
- '@typescript-eslint/no-floating-promises': 'warn',
79
- '@typescript-eslint/no-misused-promises': 'warn',
80
- '@typescript-eslint/await-thenable': 'warn',
81
- '@typescript-eslint/only-throw-error': 'warn',
82
- '@typescript-eslint/prefer-promise-reject-errors': 'warn',
83
- '@typescript-eslint/require-await': 'warn',
84
- '@typescript-eslint/return-await': ['warn', 'in-try-catch'],
85
- '@typescript-eslint/no-base-to-string': 'warn',
86
- '@typescript-eslint/restrict-template-expressions': 'warn',
87
- '@typescript-eslint/restrict-plus-operands': 'warn',
88
- '@typescript-eslint/no-unnecessary-type-assertion': 'warn',
89
- '@typescript-eslint/no-redundant-type-constituents': 'warn',
90
- '@typescript-eslint/no-deprecated': 'warn',
91
- '@typescript-eslint/no-meaningless-void-operator': 'warn',
92
- '@typescript-eslint/prefer-readonly': 'warn',
93
- '@typescript-eslint/prefer-nullish-coalescing': 'warn',
94
- '@typescript-eslint/prefer-optional-chain': 'warn',
95
- '@typescript-eslint/prefer-includes': 'warn',
96
- '@typescript-eslint/prefer-string-starts-ends-with': 'warn',
97
- '@typescript-eslint/prefer-literal-enum-member': 'warn',
98
- '@typescript-eslint/no-mixed-enums': 'warn',
99
- '@typescript-eslint/switch-exhaustiveness-check': 'warn',
100
- '@typescript-eslint/use-unknown-in-catch-callback-variable': 'warn',
101
- '@typescript-eslint/unbound-method': 'warn',
102
- '@typescript-eslint/no-wrapper-object-types': 'warn',
85
+ // `_`-prefix is the conventional opt-out for intentionally-unused
86
+ // identifiers in TypeScript (matches the `noUnusedParameters` compiler
87
+ // option's behavior). Mock/stub methods that need a signature-compatible
88
+ // parameter but ignore the value (e.g. `configure(_config?: …) {}`),
89
+ // destructured rest collectors (`const { _internal: _, ...rest } = obj`),
90
+ // and `catch (_e: unknown)` blocks all benefit. Production code can't
91
+ // accidentally hide real unused names — pick a different prefix.
92
+ '@typescript-eslint/no-unused-vars': [
93
+ 'error',
94
+ {
95
+ argsIgnorePattern: '^_',
96
+ varsIgnorePattern: '^_',
97
+ caughtErrorsIgnorePattern: '^_',
98
+ },
99
+ ],
100
+ '@typescript-eslint/no-unsafe-assignment': 'error',
101
+ '@typescript-eslint/no-unsafe-call': 'error',
102
+ '@typescript-eslint/no-unsafe-member-access': 'error',
103
+ '@typescript-eslint/no-unsafe-return': 'error',
104
+ '@typescript-eslint/no-unsafe-argument': 'error',
105
+ '@typescript-eslint/no-unsafe-enum-comparison': 'error',
106
+ '@typescript-eslint/no-unsafe-unary-minus': 'error',
107
+ '@typescript-eslint/no-floating-promises': 'error',
108
+ '@typescript-eslint/no-misused-promises': 'error',
109
+ '@typescript-eslint/await-thenable': 'error',
110
+ '@typescript-eslint/only-throw-error': 'error',
111
+ '@typescript-eslint/prefer-promise-reject-errors': 'error',
112
+ '@typescript-eslint/require-await': 'error',
113
+ '@typescript-eslint/return-await': ['error', 'in-try-catch'],
114
+ '@typescript-eslint/no-base-to-string': 'error',
115
+ '@typescript-eslint/restrict-template-expressions': 'error',
116
+ '@typescript-eslint/restrict-plus-operands': 'error',
117
+ '@typescript-eslint/no-unnecessary-type-assertion': 'error',
118
+ '@typescript-eslint/no-redundant-type-constituents': 'error',
119
+ '@typescript-eslint/no-deprecated': 'error',
120
+ '@typescript-eslint/no-meaningless-void-operator': 'error',
121
+ '@typescript-eslint/prefer-readonly': 'error',
122
+ '@typescript-eslint/prefer-nullish-coalescing': 'error',
123
+ '@typescript-eslint/prefer-optional-chain': 'error',
124
+ '@typescript-eslint/prefer-includes': 'error',
125
+ '@typescript-eslint/prefer-string-starts-ends-with': 'error',
126
+ '@typescript-eslint/prefer-literal-enum-member': 'error',
127
+ '@typescript-eslint/no-mixed-enums': 'error',
128
+ '@typescript-eslint/switch-exhaustiveness-check': 'error',
129
+ '@typescript-eslint/use-unknown-in-catch-callback-variable': 'error',
130
+ '@typescript-eslint/unbound-method': 'error',
131
+ '@typescript-eslint/no-wrapper-object-types': 'error',
103
132
  '@typescript-eslint/no-unsafe-function-type': 'off',
104
133
  'dot-notation': 'off',
105
- '@typescript-eslint/dot-notation': ['warn', { allowIndexSignaturePropertyAccess: true }],
134
+ '@typescript-eslint/dot-notation': ['error', { allowIndexSignaturePropertyAccess: true }],
106
135
  // ══════════════════════════════════════════════════════════════════
107
136
  // Type-aware rules at error — purely syntactic, safe without TS strict.
108
137
  // ══════════════════════════════════════════════════════════════════
@@ -111,7 +140,10 @@ function recommended(opts) {
111
140
  '@typescript-eslint/no-namespace': 'error',
112
141
  '@typescript-eslint/no-misused-new': 'error',
113
142
  '@typescript-eslint/no-empty-object-type': 'error',
114
- '@typescript-eslint/triple-slash-reference': ['error', { path: 'always', types: 'prefer-import', lib: 'always' }],
143
+ '@typescript-eslint/triple-slash-reference': [
144
+ 'error',
145
+ { path: 'always', types: 'prefer-import', lib: 'always' },
146
+ ],
115
147
  '@typescript-eslint/unified-signatures': 'error',
116
148
  '@typescript-eslint/prefer-function-type': 'error',
117
149
  '@typescript-eslint/prefer-namespace-keyword': 'error',
@@ -145,29 +177,77 @@ function recommended(opts) {
145
177
  '@typescript-eslint/array-type': 'off',
146
178
  '@typescript-eslint/parameter-properties': 'off',
147
179
  '@typescript-eslint/explicit-member-accessibility': ['off', { accessibility: 'explicit' }],
148
- // Naming convention — Angular-friendly, lenient. Land at warn, ratchet later.
180
+ // Naming convention — Angular-friendly, lenient. Error severity (ratcheted
181
+ // from warn). Selectors below opt out of naming enforcement for the
182
+ // identifier kinds that legitimately mirror the snake_case shape of
183
+ // TestGorilla's backend API (DTOs, destructured server responses,
184
+ // class fields that proxy API field names, Quill keyboard-shortcut /
185
+ // language object-literal method keys like `Cmd-Z` or `c++`).
186
+ // Last-matching-selector-wins, so the additions go at the tail.
149
187
  '@typescript-eslint/naming-convention': [
150
- 'warn',
151
- { selector: 'default', format: ['camelCase'], leadingUnderscore: 'allow', trailingUnderscore: 'allow' },
152
- { selector: 'variable', format: ['camelCase', 'UPPER_CASE', 'PascalCase'], leadingUnderscore: 'allow' },
188
+ 'error',
189
+ {
190
+ selector: 'default',
191
+ format: ['camelCase'],
192
+ leadingUnderscore: 'allow',
193
+ trailingUnderscore: 'allow',
194
+ },
195
+ {
196
+ selector: 'variable',
197
+ format: ['camelCase', 'UPPER_CASE', 'PascalCase'],
198
+ leadingUnderscore: 'allow',
199
+ },
153
200
  { selector: 'parameter', format: ['camelCase'], leadingUnderscore: 'allow' },
154
- { selector: 'memberLike', modifiers: ['private'], format: ['camelCase'], leadingUnderscore: 'allow' },
201
+ {
202
+ selector: 'memberLike',
203
+ modifiers: ['private'],
204
+ format: ['camelCase'],
205
+ leadingUnderscore: 'allow',
206
+ },
155
207
  { selector: 'typeLike', format: ['PascalCase'] },
156
208
  { selector: 'enumMember', format: ['PascalCase', 'UPPER_CASE'] },
157
209
  // API payloads commonly use snake_case — opt out of property naming entirely.
158
210
  { selector: 'objectLiteralProperty', format: null },
159
211
  { selector: 'import', format: null },
212
+ // Interface / type members modelling API shape.
213
+ { selector: 'typeProperty', format: null },
214
+ // DTO classes + UPPER_CASE static const-like fields + PascalCase class-field
215
+ // re-exports of types/enums to templates.
216
+ { selector: 'classProperty', format: null, leadingUnderscore: 'allow' },
217
+ // `const { foo_bar } = result;` destructured locals/parameters keep API names.
218
+ { selector: 'variable', modifiers: ['destructured'], format: null },
219
+ { selector: 'parameter', modifiers: ['destructured'], format: null },
220
+ // Quill keyboard shortcuts (`Cmd-Z`, `Ctrl-Shift-K`) and language keys (`c++`, `c#`).
221
+ { selector: 'objectLiteralMethod', format: null },
160
222
  ],
161
223
  '@typescript-eslint/no-restricted-types': [
162
224
  'error',
163
225
  {
164
226
  types: {
165
- Object: { message: 'Avoid using the `Object` type. Did you mean `object`?', fixWith: 'object' },
166
- Function: { message: 'Avoid using the `Function` type. Prefer a specific function type.', fixWith: '() => void' },
167
- Boolean: { message: 'Avoid using the `Boolean` type. Did you mean `boolean`?', fixWith: 'boolean' },
168
- Number: { message: 'Avoid using the `Number` type. Did you mean `number`?', fixWith: 'number' },
169
- String: { message: 'Avoid using the `String` type. Did you mean `string`?', fixWith: 'string' },
170
- Symbol: { message: 'Avoid using the `Symbol` type. Did you mean `symbol`?', fixWith: 'symbol' },
227
+ Object: {
228
+ message: 'Avoid using the `Object` type. Did you mean `object`?',
229
+ fixWith: 'object',
230
+ },
231
+ Function: {
232
+ message: 'Avoid using the `Function` type. Prefer a specific function type.',
233
+ fixWith: '() => void',
234
+ },
235
+ Boolean: {
236
+ message: 'Avoid using the `Boolean` type. Did you mean `boolean`?',
237
+ fixWith: 'boolean',
238
+ },
239
+ Number: {
240
+ message: 'Avoid using the `Number` type. Did you mean `number`?',
241
+ fixWith: 'number',
242
+ },
243
+ String: {
244
+ message: 'Avoid using the `String` type. Did you mean `string`?',
245
+ fixWith: 'string',
246
+ },
247
+ Symbol: {
248
+ message: 'Avoid using the `Symbol` type. Did you mean `symbol`?',
249
+ fixWith: 'symbol',
250
+ },
171
251
  },
172
252
  },
173
253
  ],
@@ -175,10 +255,16 @@ function recommended(opts) {
175
255
  // Angular structural rules — error.
176
256
  // ══════════════════════════════════════════════════════════════════
177
257
  '@angular-eslint/component-class-suffix': 'error',
178
- '@angular-eslint/component-selector': ['error', { type: 'element', prefix: 'tgo', style: 'kebab-case' }],
258
+ '@angular-eslint/component-selector': [
259
+ 'error',
260
+ { type: 'element', prefix: 'tgo', style: 'kebab-case' },
261
+ ],
179
262
  '@angular-eslint/contextual-lifecycle': 'error',
180
263
  '@angular-eslint/directive-class-suffix': 'error',
181
- '@angular-eslint/directive-selector': ['error', { type: 'attribute', prefix: 'tgo', style: 'camelCase' }],
264
+ '@angular-eslint/directive-selector': [
265
+ 'error',
266
+ { type: 'attribute', prefix: 'tgo', style: 'camelCase' },
267
+ ],
182
268
  '@angular-eslint/no-conflicting-lifecycle': 'error',
183
269
  '@angular-eslint/no-input-rename': 'error',
184
270
  '@angular-eslint/no-inputs-metadata-property': 'error',
@@ -190,7 +276,15 @@ function recommended(opts) {
190
276
  '@angular-eslint/use-pipe-transform-interface': 'error',
191
277
  '@angular-eslint/prefer-standalone': 'error',
192
278
  '@angular-eslint/prefer-on-push-component-change-detection': 'error',
193
- '@angular-eslint/use-component-view-encapsulation': 'error',
279
+ // use-component-view-encapsulation — off in the preset. Re-enabling
280
+ // requires per-component audit of every `ViewEncapsulation.None` site
281
+ // (third-party DOM targets, global content-projection slots, intentional
282
+ // style leaks) and a refactor for the accidental ones. That work belongs
283
+ // in a dedicated styling-focused workstream in each consumer codebase,
284
+ // not in this preset's strict default. Consumers can override to
285
+ // `error` locally if they want to gate on it sooner. TODO: revisit
286
+ // when at least one consumer ships the per-component audit.
287
+ '@angular-eslint/use-component-view-encapsulation': 'off',
194
288
  '@angular-eslint/no-queries-metadata-property': 'error',
195
289
  '@angular-eslint/no-duplicates-in-metadata-arrays': 'error',
196
290
  '@angular-eslint/no-async-lifecycle-method': 'error',
@@ -206,11 +300,10 @@ function recommended(opts) {
206
300
  'import-x/no-self-import': 'error',
207
301
  'import-x/no-duplicates': 'error',
208
302
  // PERF NOTE — TIMING profile shows this rule at 64-75% of total rule execution time
209
- // (~1.1-1.3s per file). It walks every import looking for @deprecated JSDoc tags and
210
- // currently reports zero violations. Type-aware; ratchets to error with the rest of the
211
- // type-aware family after TS strict lands. Kept at warn rather than off so the rule stays
212
- // part of the canonical rule set; revisit migrating to OXLint's fast path with Workstream 1.
213
- 'import-x/no-deprecated': 'warn',
303
+ // (~1.1-1.3s per file). It walks every import looking for @deprecated JSDoc tags. Ratcheted
304
+ // to error along with the rest of the type-aware family after TS strict landed. Revisit
305
+ // migrating to OXLint's fast path with Workstream 1 if total lint time becomes a concern.
306
+ 'import-x/no-deprecated': 'error',
214
307
  'import-x/no-relative-packages': 'error',
215
308
  'import-x/no-mutable-exports': 'error',
216
309
  'import-x/no-extraneous-dependencies': 'error',
@@ -253,29 +346,42 @@ function recommended(opts) {
253
346
  'security/detect-no-csrf-before-method-override': 'off',
254
347
  'security/detect-possible-timing-attacks': 'off',
255
348
  // ══════════════════════════════════════════════════════════════════
256
- // RxJS hygiene (eslint-plugin-rxjs-x).
257
- // Some rules use type info; land at warn until TS strict, ratchet after.
349
+ // RxJS hygiene (eslint-plugin-rxjs-x). Error severity (ratcheted from
350
+ // warn after TS strict landed). All five are real-bug-class rules
351
+ // (async-in-subscribe, untyped catch in pipe, nested subscribes that
352
+ // should be flatMap, completer-not-last, leaking subscriptions).
258
353
  // ══════════════════════════════════════════════════════════════════
259
- 'rxjs-x/no-async-subscribe': 'warn',
260
- 'rxjs-x/no-implicit-any-catch': 'warn',
261
- 'rxjs-x/no-nested-subscribe': 'warn',
262
- 'rxjs-x/no-unsafe-takeuntil': 'warn',
263
- 'rxjs-x/no-ignored-subscription': 'warn',
354
+ 'rxjs-x/no-async-subscribe': 'error',
355
+ 'rxjs-x/no-implicit-any-catch': 'error',
356
+ 'rxjs-x/no-nested-subscribe': 'error',
357
+ 'rxjs-x/no-unsafe-takeuntil': 'error',
358
+ 'rxjs-x/no-ignored-subscription': 'error',
264
359
  // ══════════════════════════════════════════════════════════════════
265
360
  // Core ESLint — error.
266
361
  // ══════════════════════════════════════════════════════════════════
267
362
  'arrow-body-style': 'error',
268
- complexity: ['warn', 15],
363
+ complexity: ['error', 15],
269
364
  'constructor-super': 'error',
270
365
  curly: 'error',
271
366
  'default-case-last': 'error',
272
367
  eqeqeq: ['error', 'always'],
273
368
  'guard-for-in': 'error',
274
- 'id-denylist': ['error', 'any', 'Number', 'number', 'String', 'string', 'Boolean', 'boolean', 'Undefined', 'undefined'],
369
+ 'id-denylist': [
370
+ 'error',
371
+ 'any',
372
+ 'Number',
373
+ 'number',
374
+ 'String',
375
+ 'string',
376
+ 'Boolean',
377
+ 'boolean',
378
+ 'Undefined',
379
+ 'undefined',
380
+ ],
275
381
  'max-classes-per-file': 'off',
276
- 'max-depth': ['warn', 4],
277
- 'max-nested-callbacks': ['warn', 3],
278
- 'max-params': ['warn', 5],
382
+ 'max-depth': ['error', 4],
383
+ 'max-nested-callbacks': ['error', 3],
384
+ 'max-params': ['error', 5],
279
385
  'no-bitwise': 'error',
280
386
  'no-caller': 'error',
281
387
  'no-cond-assign': 'error',
@@ -283,9 +389,24 @@ function recommended(opts) {
283
389
  'error',
284
390
  {
285
391
  allow: [
286
- 'warn', 'dir', 'timeLog', 'assert', 'clear', 'count', 'countReset', 'group', 'groupEnd',
287
- 'table', 'dirxml', 'error', 'groupCollapsed', 'Console', 'profile', 'profileEnd',
288
- 'timeStamp', 'context',
392
+ 'warn',
393
+ 'dir',
394
+ 'timeLog',
395
+ 'assert',
396
+ 'clear',
397
+ 'count',
398
+ 'countReset',
399
+ 'group',
400
+ 'groupEnd',
401
+ 'table',
402
+ 'dirxml',
403
+ 'error',
404
+ 'groupCollapsed',
405
+ 'Console',
406
+ 'profile',
407
+ 'profileEnd',
408
+ 'timeStamp',
409
+ 'context',
289
410
  ],
290
411
  },
291
412
  ],
@@ -303,7 +424,10 @@ function recommended(opts) {
303
424
  {
304
425
  paths: [
305
426
  { name: 'rxjs/Rx', message: 'Use the rxjs barrel (`rxjs`) instead.' },
306
- { name: 'lodash', message: 'Import per-method from lodash (e.g., `lodash/cloneDeep`) for tree-shaking.' },
427
+ {
428
+ name: 'lodash',
429
+ message: 'Import per-method from lodash (e.g., `lodash/cloneDeep`) for tree-shaking.',
430
+ },
307
431
  { name: 'moment', message: 'Use date-fns (already a project dep).' },
308
432
  ],
309
433
  },
@@ -313,7 +437,7 @@ function recommended(opts) {
313
437
  'no-restricted-syntax': [
314
438
  'error',
315
439
  {
316
- selector: "CallExpression[callee.property.name=/^bypassSecurityTrust(Html|Script|Url|ResourceUrl|Style)$/]",
440
+ selector: 'CallExpression[callee.property.name=/^bypassSecurityTrust(Html|Script|Url|ResourceUrl|Style)$/]',
317
441
  message: 'Use the bypass-sanitization-{html,url}.pipe.ts wrappers in src/@testgorilla/pipes instead of calling DomSanitizer.bypassSecurityTrust* directly. If a TS-side bypass is genuinely required, add an inline eslint-disable-next-line with a SECURITY comment explaining why.',
318
442
  },
319
443
  ],
@@ -375,7 +499,13 @@ function recommended(opts) {
375
499
  '@angular-eslint/template/prefer-control-flow': 'error',
376
500
  },
377
501
  },
378
- // ── Spec files (*.spec.ts, *.integration.spec.ts) — relax type/style rules ──
502
+ // ── Spec / mock files (default glob: *.spec.ts, *.integration.spec.ts,
503
+ // *.mock.ts, *.mocks.ts) — relax type-aware and a few style rules to
504
+ // match the idiomatic test-code shape (bracket access for production
505
+ // internals, fire-trigger subscribes that Jest cleans up via test
506
+ // isolation, mock literals with `any`-shaped fixtures, snake_case API
507
+ // field names re-used in fixture object literals). Also allows `ui-*`
508
+ // selectors for mocks that substitute Canopy UI library components. ──
379
509
  {
380
510
  files: specFiles,
381
511
  rules: {
@@ -389,6 +519,63 @@ function recommended(opts) {
389
519
  '@typescript-eslint/naming-convention': 'off',
390
520
  'max-params': 'off',
391
521
  'max-nested-callbacks': 'off',
522
+ // dot-notation: rule's autofix converts `service['privateField']` →
523
+ // `service.privateField`, which trips TS access-modifier checks
524
+ // (TS2341/TS2445) and/or no-underscore-dangle on `_`-prefixed
525
+ // internals. Bracket access is the standard idiom for reaching
526
+ // production internals from tests; the noise is purely cosmetic.
527
+ '@typescript-eslint/dot-notation': 'off',
528
+ // no-ignored-subscription: the canonical pattern in specs is
529
+ // `service.method().subscribe()` used as a fire-trigger for the
530
+ // production code's side effect (typically an HTTP request the spec
531
+ // then asserts via `httpTesting.expectOne`). Jest test isolation
532
+ // makes leaks impossible by construction, so the rule's
533
+ // memory-leak-prevention signal is zero here while the noise is
534
+ // substantial.
535
+ 'rxjs-x/no-ignored-subscription': 'off',
536
+ // component-selector: mocks that substitute Canopy UI library
537
+ // components (`ui-*` selectors owned by `@testgorilla/tgo-ui`)
538
+ // must use the same selectors to slot in correctly under
539
+ // TestBed.overrideComponent.
540
+ '@angular-eslint/component-selector': [
541
+ 'error',
542
+ { type: 'element', prefix: ['tgo', 'ui'], style: 'kebab-case' },
543
+ ],
544
+ // no-non-null-assertion: idiomatic `querySelector('input')!` after
545
+ // an `expect(...).toBeDefined()` or after a static template
546
+ // guarantees the element exists. The spec has already proven
547
+ // non-null upstream; the rule's signal is zero here while the
548
+ // noise is substantial. Same precedent as `dot-notation` /
549
+ // `no-ignored-subscription` — spec-file relaxations match the
550
+ // idiomatic test shape. Production code keeps the rule at error.
551
+ '@typescript-eslint/no-non-null-assertion': 'off',
552
+ // no-underscore-dangle: specs routinely reach into `_`-prefixed
553
+ // internals of services and SignalStore factories to assert
554
+ // against private state (e.g. `(store as unknown as
555
+ // { _resetSubject: ... })._resetSubject()`). The SignalStore
556
+ // factory block already disables this rule for `*.store.ts` /
557
+ // `*.store.feature.ts`, but `*.store.spec.ts` matches the spec
558
+ // block instead — so the disable needs to be here too.
559
+ 'no-underscore-dangle': 'off',
560
+ },
561
+ },
562
+ // ── NgRx SignalStore factory files (*.store.ts, *.store.feature.ts) —
563
+ // three rules conflict with the SignalStore authoring pattern:
564
+ // - `explicit-function-return-type`: signalStore() / withFeature()
565
+ // rely on inferred generic return types; naming the type either
566
+ // duplicates inference or narrows below what's intended.
567
+ // - `no-underscore-dangle`: SignalStore convention uses `_`-prefixed
568
+ // internal helpers (e.g. `_state`, `_load`) that don't leak through
569
+ // the public store API.
570
+ // - `prefer-arrow-callback`: factories pass `function` keyword
571
+ // callbacks for proper `this`-binding inside the feature; arrow
572
+ // conversion can change semantics. ──
573
+ {
574
+ files: ['src/**/*.store.ts', 'src/**/*.store.feature.ts'],
575
+ rules: {
576
+ '@typescript-eslint/explicit-function-return-type': 'off',
577
+ 'no-underscore-dangle': 'off',
578
+ 'prefer-arrow-callback': 'off',
392
579
  },
393
580
  },
394
581
  // ── JS files ─────────────────────────────────────────────────────────
@@ -1 +1 @@
1
- {"version":3,"file":"recommended.js","sourceRoot":"","sources":["../../../../../packages/tgo-linting/src/configs/recommended.ts"],"names":[],"mappings":";;AAqDA,kCA+YC;;AApcD,0FAAmD;AACnD,4GAAoE;AACpE,4EAA4E;AAC5E,+EAA+E;AAC/E,8EAA8E;AAC9E,kFAAkF;AAClF,gFAAgF;AAChF,+FAAwE;AACxE,4FAAmD;AACnD,4FAA4C;AAC5C,sFAAuC;AACvC,wGAAwD;AACxD,wFAAwC;AACxC,4FAA6C;AAC7C,kFAA8D;AAE9D,sCAAqC;AAQrC,MAAM,mBAAmB,GAAG,2BAAQ,CAAC,OAAO,CAAC,WAAW,CAAC,MAAM,CAC7D,CAAC,GAAG,EAAE,GAAG,EAAE,EAAE,WAAC,OAAA,CAAC,EAAE,GAAG,GAAG,EAAE,GAAG,CAAC,MAAA,GAAG,CAAC,KAAK,mCAAI,EAAE,CAAC,EAAE,CAAC,CAAA,EAAA,EAChD,EAAE,CACH,CAAA;AACD,MAAM,8BAA8B,GAAG,2BAAQ,CAAC,OAAO,CAAC,sBAAsB,CAAC,MAAM,CACnF,CAAC,GAAG,EAAE,GAAG,EAAE,EAAE,WAAC,OAAA,CAAC,EAAE,GAAG,GAAG,EAAE,GAAG,CAAC,MAAA,GAAG,CAAC,KAAK,mCAAI,EAAE,CAAC,EAAE,CAAC,CAAA,EAAA,EAChD,EAAE,CACH,CAAA;AAeD;;;;;;GAMG;AACH,SAAgB,WAAW,CAAC,IAAwB;IAClD,MAAM,EACJ,eAAe,EACf,OAA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AED,+EAA+E;IAC/E;QACE,KAAK,EAAE,SAAS;QAChB,KAAK,EAAE;YACL,mCAAmC,EAAE,KAAK;YAC1C,mCAAmC,EAAE,KAAK;YAC1C,4CAA4C,EAAE,KAAK;YACnD,yCAAyC,EAAE,KAAK;YAChD,qCAAqC,EAAE,KAAK;YAC5C,uCAAuC,EAAE,KAAK;YAC9C,oCAAoC,EAAE,KAAK;YAC3C,sCAAsC,EAAE,KAAK;YAC7C,YAAY,EAAE,KAAK;YACnB,sBAAsB,EAAE,KAAK;SAC9B;KACF;IAED,wEAAwE;IACxE;QACE,KAAK,EAAE,CAAC,SAAS,CAAC;QAClB,eAAe,EAAE;YACf,WAAW,EAAE,IAAI;YACjB,UAAU,EAAE,QAAQ;SACrB;QACD,KAAK,EAAE;YACL,uCAAuC,EAAE,KAAK;SAC/C;KACF,CACF,CAAA;AACH,CAAC","sourcesContent":["import angular from '@angular-eslint/eslint-plugin'\nimport angularTemplate from '@angular-eslint/eslint-plugin-template'\n// `@angular-eslint/template-parser` is a TypeScript-compiled ES module with\n// `__esModule: true` and only named exports — there is no `default`. A default\n// import via `__importDefault` resolves to `undefined`, silently dropping the\n// parser and letting ESLint fall back to espree (parser errors on every `.html`).\n// Namespace import preserves the parse/parseForESLint functions ESLint expects.\nimport * as angularTemplateParser from '@angular-eslint/template-parser'\nimport prettierConfig from 'eslint-config-prettier'\nimport importX from 'eslint-plugin-import-x'\nimport jsdoc from 'eslint-plugin-jsdoc'\nimport noUnsanitized from 'eslint-plugin-no-unsanitized'\nimport rxjsX from 'eslint-plugin-rxjs-x'\nimport security from 'eslint-plugin-security'\nimport tseslint, { type ConfigArray } from 'typescript-eslint'\n\nimport { tgoPlugin } from '../plugin'\n\n// `tseslint.configs.recommended` etc. are arrays of mixed config objects\n// (some carry `name`, some carry `rules`, etc.). Flatten their rule maps via\n// reduce; cast the result to a permissive record so the spread into the\n// strongly-typed `rules` block below doesn't leak unrelated config keys.\ntype RulesRecord = Record<string, unknown>\n\nconst tseslintRecommended = tseslint.configs.recommended.reduce<RulesRecord>(\n (acc, cfg) => ({ ...acc, ...(cfg.rules ?? {}) }),\n {},\n)\nconst tseslintRecommendedTypeChecked = tseslint.configs.recommendedTypeChecked.reduce<RulesRecord>(\n (acc, cfg) => ({ ...acc, ...(cfg.rules ?? {}) }),\n {},\n)\n\nexport interface RecommendedOptions {\n /** Absolute path to the consumer repo root. Pass `import.meta.dirname`. */\n tsconfigRootDir: string\n /** tsconfig path (relative to tsconfigRootDir). Default: 'tsconfig.json'. */\n project?: string\n /** Glob for source TS files. Default: ['src/**\\/*.ts']. */\n tsFiles?: string[]\n /** Glob for HTML templates. Default: ['src/**\\/*.html']. */\n htmlFiles?: string[]\n /** Glob for spec files (relaxations applied). Default: ['src/**\\/*.spec.ts', 'src/**\\/*.integration.spec.ts']. */\n specFiles?: string[]\n}\n\n/**\n * Strict default ESLint flat-config preset for TGO Angular frontends.\n *\n * Type-aware rules (no-unsafe-*, restrict-*, no-floating-promises, etc.) are\n * kept at `warn` until consumer tsconfig moves to TS strict. Ratchet to error\n * after the strict tsconfig migration (Phase 1, Workstream 3).\n */\nexport function recommended(opts: RecommendedOptions): ConfigArray {\n const {\n tsconfigRootDir,\n project = 'tsconfig.json',\n tsFiles = ['src/**/*.ts'],\n htmlFiles = ['src/**/*.html'],\n specFiles = ['src/**/*.spec.ts', 'src/**/*.integration.spec.ts'],\n } = opts\n\n return tseslint.config(\n // ── TypeScript files (*.ts) ──────────────────────────────────────────\n {\n files: tsFiles,\n languageOptions: {\n parser: tseslint.parser,\n parserOptions: {\n project,\n tsconfigRootDir,\n sourceType: 'module',\n },\n },\n settings: {\n 'import-x/resolver': {\n typescript: { project },\n node: true,\n },\n },\n plugins: {\n '@typescript-eslint': tseslint.plugin,\n '@angular-eslint': angular,\n 'import-x': importX,\n jsdoc,\n 'no-unsanitized': noUnsanitized,\n security,\n 'rxjs-x': rxjsX,\n },\n rules: {\n // Spread recommended + recommendedTypeChecked, then disable ESLint formatting\n // rules that conflict with Prettier. Prettier runs separately in consumer\n // pipelines (pre-commit / lint-staged / CI), not as an ESLint rule.\n ...tseslintRecommended,\n ...tseslintRecommendedTypeChecked,\n ...prettierConfig.rules,\n\n // ══════════════════════════════════════════════════════════════════\n // Type-aware rules — DEFERRED at warn until TS strict lands.\n // Cleanup PRs ratchet these to error after tsconfig.json gets `strict: true`.\n // ══════════════════════════════════════════════════════════════════\n '@typescript-eslint/no-unused-vars': 'warn',\n '@typescript-eslint/no-unsafe-assignment': 'warn',\n '@typescript-eslint/no-unsafe-call': 'warn',\n '@typescript-eslint/no-unsafe-member-access': 'warn',\n '@typescript-eslint/no-unsafe-return': 'warn',\n '@typescript-eslint/no-unsafe-argument': 'warn',\n '@typescript-eslint/no-unsafe-enum-comparison': 'warn',\n '@typescript-eslint/no-unsafe-unary-minus': 'warn',\n '@typescript-eslint/no-floating-promises': 'warn',\n '@typescript-eslint/no-misused-promises': 'warn',\n '@typescript-eslint/await-thenable': 'warn',\n '@typescript-eslint/only-throw-error': 'warn',\n '@typescript-eslint/prefer-promise-reject-errors': 'warn',\n '@typescript-eslint/require-await': 'warn',\n '@typescript-eslint/return-await': ['warn', 'in-try-catch'],\n '@typescript-eslint/no-base-to-string': 'warn',\n '@typescript-eslint/restrict-template-expressions': 'warn',\n '@typescript-eslint/restrict-plus-operands': 'warn',\n '@typescript-eslint/no-unnecessary-type-assertion': 'warn',\n '@typescript-eslint/no-redundant-type-constituents': 'warn',\n '@typescript-eslint/no-deprecated': 'warn',\n '@typescript-eslint/no-meaningless-void-operator': 'warn',\n '@typescript-eslint/prefer-readonly': 'warn',\n '@typescript-eslint/prefer-nullish-coalescing': 'warn',\n '@typescript-eslint/prefer-optional-chain': 'warn',\n '@typescript-eslint/prefer-includes': 'warn',\n '@typescript-eslint/prefer-string-starts-ends-with': 'warn',\n '@typescript-eslint/prefer-literal-enum-member': 'warn',\n '@typescript-eslint/no-mixed-enums': 'warn',\n '@typescript-eslint/switch-exhaustiveness-check': 'warn',\n '@typescript-eslint/use-unknown-in-catch-callback-variable': 'warn',\n '@typescript-eslint/unbound-method': 'warn',\n '@typescript-eslint/no-wrapper-object-types': 'warn',\n '@typescript-eslint/no-unsafe-function-type': 'off',\n 'dot-notation': 'off',\n '@typescript-eslint/dot-notation': ['warn', { allowIndexSignaturePropertyAccess: true }],\n\n // ══════════════════════════════════════════════════════════════════\n // Type-aware rules at error — purely syntactic, safe without TS strict.\n // ══════════════════════════════════════════════════════════════════\n '@typescript-eslint/no-explicit-any': 'error',\n '@typescript-eslint/no-non-null-assertion': 'error',\n '@typescript-eslint/no-namespace': 'error',\n '@typescript-eslint/no-misused-new': 'error',\n '@typescript-eslint/no-empty-object-type': 'error',\n '@typescript-eslint/triple-slash-reference': ['error', { path: 'always', types: 'prefer-import', lib: 'always' }],\n '@typescript-eslint/unified-signatures': 'error',\n '@typescript-eslint/prefer-function-type': 'error',\n '@typescript-eslint/prefer-namespace-keyword': 'error',\n '@typescript-eslint/prefer-for-of': 'error',\n '@typescript-eslint/adjacent-overload-signatures': 'error',\n '@typescript-eslint/consistent-type-assertions': 'error',\n '@typescript-eslint/no-inferrable-types': ['error', { ignoreParameters: true }],\n '@typescript-eslint/no-shadow': ['error', { hoist: 'all' }],\n '@typescript-eslint/no-unused-expressions': 'error',\n '@typescript-eslint/no-this-alias': 'error',\n '@typescript-eslint/no-for-in-array': 'error',\n '@typescript-eslint/ban-ts-comment': 'error',\n // consistent-type-imports — disabled preset-wide. The rule is not\n // Angular-aware: it converts constructor-injected service imports to\n // `import type { X }`, which then fails the Angular AOT compiler with\n // TS-992003 (\"No suitable injection token\") because Angular reads the\n // parameter type as a runtime DI token. The escape is one\n // `eslint-disable-next-line` comment per DI import, which scales with\n // the number of constructor-injected services in the codebase. Off\n // until either (a) consumer codebases migrate from constructor DI to\n // `inject()` everywhere — at which point the rule becomes safe and\n // valuable — or (b) we adopt a typescript-eslint variant that\n // recognises Angular DI sites.\n '@typescript-eslint/consistent-type-imports': 'off',\n '@typescript-eslint/no-import-type-side-effects': 'error',\n\n // High-friction rules — explicitly off (see plan rationale).\n '@typescript-eslint/explicit-function-return-type': 'off',\n '@typescript-eslint/no-empty-function': 'off',\n '@typescript-eslint/no-use-before-define': 'off',\n '@typescript-eslint/no-require-imports': 'off',\n '@typescript-eslint/array-type': 'off',\n '@typescript-eslint/parameter-properties': 'off',\n '@typescript-eslint/explicit-member-accessibility': ['off', { accessibility: 'explicit' }],\n\n // Naming convention — Angular-friendly, lenient. Land at warn, ratchet later.\n '@typescript-eslint/naming-convention': [\n 'warn',\n { selector: 'default', format: ['camelCase'], leadingUnderscore: 'allow', trailingUnderscore: 'allow' },\n { selector: 'variable', format: ['camelCase', 'UPPER_CASE', 'PascalCase'], leadingUnderscore: 'allow' },\n { selector: 'parameter', format: ['camelCase'], leadingUnderscore: 'allow' },\n { selector: 'memberLike', modifiers: ['private'], format: ['camelCase'], leadingUnderscore: 'allow' },\n { selector: 'typeLike', format: ['PascalCase'] },\n { selector: 'enumMember', format: ['PascalCase', 'UPPER_CASE'] },\n // API payloads commonly use snake_case — opt out of property naming entirely.\n { selector: 'objectLiteralProperty', format: null },\n { selector: 'import', format: null },\n ],\n\n '@typescript-eslint/no-restricted-types': [\n 'error',\n {\n types: {\n Object: { message: 'Avoid using the `Object` type. Did you mean `object`?', fixWith: 'object' },\n Function: { message: 'Avoid using the `Function` type. Prefer a specific function type.', fixWith: '() => void' },\n Boolean: { message: 'Avoid using the `Boolean` type. Did you mean `boolean`?', fixWith: 'boolean' },\n Number: { message: 'Avoid using the `Number` type. Did you mean `number`?', fixWith: 'number' },\n String: { message: 'Avoid using the `String` type. Did you mean `string`?', fixWith: 'string' },\n Symbol: { message: 'Avoid using the `Symbol` type. Did you mean `symbol`?', fixWith: 'symbol' },\n },\n },\n ],\n\n // ══════════════════════════════════════════════════════════════════\n // Angular structural rules — error.\n // ══════════════════════════════════════════════════════════════════\n '@angular-eslint/component-class-suffix': 'error',\n '@angular-eslint/component-selector': ['error', { type: 'element', prefix: 'tgo', style: 'kebab-case' }],\n '@angular-eslint/contextual-lifecycle': 'error',\n '@angular-eslint/directive-class-suffix': 'error',\n '@angular-eslint/directive-selector': ['error', { type: 'attribute', prefix: 'tgo', style: 'camelCase' }],\n '@angular-eslint/no-conflicting-lifecycle': 'error',\n '@angular-eslint/no-input-rename': 'error',\n '@angular-eslint/no-inputs-metadata-property': 'error',\n '@angular-eslint/no-output-native': 'error',\n '@angular-eslint/no-output-on-prefix': 'error',\n '@angular-eslint/no-output-rename': 'error',\n '@angular-eslint/no-outputs-metadata-property': 'error',\n '@angular-eslint/use-lifecycle-interface': 'error',\n '@angular-eslint/use-pipe-transform-interface': 'error',\n '@angular-eslint/prefer-standalone': 'error',\n '@angular-eslint/prefer-on-push-component-change-detection': 'error',\n '@angular-eslint/use-component-view-encapsulation': 'error',\n '@angular-eslint/no-queries-metadata-property': 'error',\n '@angular-eslint/no-duplicates-in-metadata-arrays': 'error',\n '@angular-eslint/no-async-lifecycle-method': 'error',\n '@angular-eslint/no-empty-lifecycle-method': 'error',\n\n // ══════════════════════════════════════════════════════════════════\n // Import discipline (eslint-plugin-import-x).\n // ══════════════════════════════════════════════════════════════════\n // PERF NOTE — full-repo lint with this rule enabled costs ~+45s wall and ~+1 GB peak RSS\n // (measured: 92.8s / 3.38 GB OFF vs 138.6s / 4.44 GB ON across 2,337 files). It walks the\n // full import graph and finds zero violations today. Kept active to preserve the rule as\n // part of the canonical rule set; revisit moving it to OXLint's fast path as part of the\n // toolchain decision (Phase 1, Workstream 1) rather than disabling.\n 'import-x/no-self-import': 'error',\n 'import-x/no-duplicates': 'error',\n // PERF NOTE — TIMING profile shows this rule at 64-75% of total rule execution time\n // (~1.1-1.3s per file). It walks every import looking for @deprecated JSDoc tags and\n // currently reports zero violations. Type-aware; ratchets to error with the rest of the\n // type-aware family after TS strict lands. Kept at warn rather than off so the rule stays\n // part of the canonical rule set; revisit migrating to OXLint's fast path with Workstream 1.\n 'import-x/no-deprecated': 'warn',\n 'import-x/no-relative-packages': 'error',\n 'import-x/no-mutable-exports': 'error',\n 'import-x/no-extraneous-dependencies': 'error',\n // Consumers carve out routing/lazy/config/stories paths.\n 'import-x/no-default-export': 'error',\n 'import-x/order': [\n 'error',\n {\n groups: ['builtin', 'external', 'internal', 'parent', 'sibling', 'index', 'type'],\n 'newlines-between': 'always',\n alphabetize: { order: 'asc', caseInsensitive: true },\n },\n ],\n\n // ══════════════════════════════════════════════════════════════════\n // JSDoc.\n // ══════════════════════════════════════════════════════════════════\n 'jsdoc/check-alignment': 'error',\n\n // ══════════════════════════════════════════════════════════════════\n // Security: XSS guards (no-unsanitized).\n // ══════════════════════════════════════════════════════════════════\n 'no-unsanitized/method': 'error',\n 'no-unsanitized/property': 'error',\n\n // ══════════════════════════════════════════════════════════════════\n // Security: cherry-picked from eslint-plugin-security.\n // Most rules in this plugin are Node-specific and noisy in browser code; only the\n // browser-relevant detectors are enabled. Plugin defaults explicitly turned off below.\n // ══════════════════════════════════════════════════════════════════\n 'security/detect-eval-with-expression': 'error',\n 'security/detect-unsafe-regex': 'error',\n 'security/detect-bidi-characters': 'error', // CVE-2021-42574 trojan-source guard.\n 'security/detect-non-literal-regexp': 'off',\n 'security/detect-pseudoRandomBytes': 'off',\n 'security/detect-non-literal-require': 'off',\n 'security/detect-non-literal-fs-filename': 'off',\n 'security/detect-object-injection': 'off',\n 'security/detect-buffer-noassert': 'off',\n 'security/detect-child-process': 'off',\n 'security/detect-disable-mustache-escape': 'off',\n 'security/detect-new-buffer': 'off',\n 'security/detect-no-csrf-before-method-override': 'off',\n 'security/detect-possible-timing-attacks': 'off',\n\n // ══════════════════════════════════════════════════════════════════\n // RxJS hygiene (eslint-plugin-rxjs-x).\n // Some rules use type info; land at warn until TS strict, ratchet after.\n // ══════════════════════════════════════════════════════════════════\n 'rxjs-x/no-async-subscribe': 'warn',\n 'rxjs-x/no-implicit-any-catch': 'warn',\n 'rxjs-x/no-nested-subscribe': 'warn',\n 'rxjs-x/no-unsafe-takeuntil': 'warn',\n 'rxjs-x/no-ignored-subscription': 'warn',\n\n // ══════════════════════════════════════════════════════════════════\n // Core ESLint — error.\n // ══════════════════════════════════════════════════════════════════\n 'arrow-body-style': 'error',\n complexity: ['warn', 15],\n 'constructor-super': 'error',\n curly: 'error',\n 'default-case-last': 'error',\n eqeqeq: ['error', 'always'],\n 'guard-for-in': 'error',\n 'id-denylist': ['error', 'any', 'Number', 'number', 'String', 'string', 'Boolean', 'boolean', 'Undefined', 'undefined'],\n 'max-classes-per-file': 'off',\n 'max-depth': ['warn', 4],\n 'max-nested-callbacks': ['warn', 3],\n 'max-params': ['warn', 5],\n 'no-bitwise': 'error',\n 'no-caller': 'error',\n 'no-cond-assign': 'error',\n 'no-console': [\n 'error',\n {\n allow: [\n 'warn', 'dir', 'timeLog', 'assert', 'clear', 'count', 'countReset', 'group', 'groupEnd',\n 'table', 'dirxml', 'error', 'groupCollapsed', 'Console', 'profile', 'profileEnd',\n 'timeStamp', 'context',\n ],\n },\n ],\n 'no-debugger': 'error',\n 'no-empty': 'off',\n 'no-empty-function': 'off',\n 'no-eval': 'error',\n 'no-fallthrough': 'error',\n 'no-implicit-coercion': 'error',\n 'no-invalid-this': 'off',\n 'no-new-wrappers': 'error',\n 'no-param-reassign': 'error',\n 'no-restricted-imports': [\n 'error',\n {\n paths: [\n { name: 'rxjs/Rx', message: 'Use the rxjs barrel (`rxjs`) instead.' },\n { name: 'lodash', message: 'Import per-method from lodash (e.g., `lodash/cloneDeep`) for tree-shaking.' },\n { name: 'moment', message: 'Use date-fns (already a project dep).' },\n ],\n },\n ],\n // Block direct DomSanitizer.bypassSecurityTrust* calls — production callers should use\n // sanitization wrapper pipes. Consumers carve out the wrappers themselves.\n 'no-restricted-syntax': [\n 'error',\n {\n selector: \"CallExpression[callee.property.name=/^bypassSecurityTrust(Html|Script|Url|ResourceUrl|Style)$/]\",\n message: 'Use the bypass-sanitization-{html,url}.pipe.ts wrappers in src/@testgorilla/pipes instead of calling DomSanitizer.bypassSecurityTrust* directly. If a TS-side bypass is genuinely required, add an inline eslint-disable-next-line with a SECURITY comment explaining why.',\n },\n ],\n 'no-script-url': 'error',\n 'no-template-curly-in-string': 'error',\n 'no-throw-literal': 'error',\n 'no-undef-init': 'error',\n 'no-underscore-dangle': ['error', { allow: ['_state'], allowAfterThis: true }],\n 'no-unsafe-finally': 'error',\n 'no-unused-labels': 'error',\n 'no-use-before-define': 'off',\n 'no-useless-concat': 'error',\n 'no-useless-return': 'error',\n 'no-var': 'error',\n 'object-shorthand': 'error',\n 'one-var': ['error', 'never'],\n 'prefer-arrow-callback': 'error',\n 'prefer-const': 'error',\n 'prefer-object-spread': 'error',\n 'prefer-template': 'error',\n 'quote-props': ['error', 'as-needed'],\n radix: 'error',\n 'use-isnan': 'error',\n yoda: 'error',\n\n // ── Off — Prettier owns formatting. eslint-config-prettier disables most of these;\n // listing explicitly overrides any preset that re-enables them.\n 'arrow-parens': 'off',\n 'brace-style': 'off',\n 'comma-dangle': 'off',\n 'eol-last': 'off',\n 'linebreak-style': 'off',\n 'max-len': 'off',\n 'new-parens': 'off',\n 'newline-per-chained-call': 'off',\n 'no-extra-semi': 'off',\n 'no-irregular-whitespace': 'off',\n 'no-multiple-empty-lines': 'off',\n 'no-trailing-spaces': 'off',\n 'padded-blocks': 'off',\n quotes: 'off',\n semi: 'off',\n 'space-in-parens': 'off',\n },\n },\n\n // ── HTML template files (*.html) ─────────────────────────────────────\n // a11y rule set is deferred to a separate workstream.\n {\n files: htmlFiles,\n languageOptions: {\n parser: angularTemplateParser,\n },\n plugins: {\n '@angular-eslint/template': angularTemplate,\n tgo: tgoPlugin,\n },\n rules: {\n ...(angularTemplate.configs.recommended.rules as RulesRecord),\n 'tgo/require-data-testid': 'error',\n '@angular-eslint/template/prefer-control-flow': 'error',\n },\n },\n\n // ── Spec files (*.spec.ts, *.integration.spec.ts) — relax type/style rules ──\n {\n files: specFiles,\n rules: {\n '@typescript-eslint/unbound-method': 'off',\n '@typescript-eslint/no-unsafe-call': 'off',\n '@typescript-eslint/no-unsafe-member-access': 'off',\n '@typescript-eslint/no-unsafe-assignment': 'off',\n '@typescript-eslint/no-unsafe-return': 'off',\n '@typescript-eslint/no-unsafe-argument': 'off',\n '@typescript-eslint/no-explicit-any': 'off',\n '@typescript-eslint/naming-convention': 'off',\n 'max-params': 'off',\n 'max-nested-callbacks': 'off',\n },\n },\n\n // ── JS files ─────────────────────────────────────────────────────────\n {\n files: ['**/*.js'],\n languageOptions: {\n ecmaVersion: 2020,\n sourceType: 'module',\n },\n rules: {\n '@typescript-eslint/no-require-imports': 'off',\n },\n },\n )\n}\n"]}
1
+ {"version":3,"file":"recommended.js","sourceRoot":"","sources":["../../../../../packages/tgo-linting/src/configs/recommended.ts"],"names":[],"mappings":";;AA+DA,kCAokBC;;AAnoBD,0FAAoD;AACpD,4GAAqE;AACrE,4EAA4E;AAC5E,+EAA+E;AAC/E,8EAA8E;AAC9E,kFAAkF;AAClF,gFAAgF;AAChF,+FAAyE;AACzE,4FAAoD;AACpD,4FAA6C;AAC7C,sFAAwC;AACxC,wGAAyD;AACzD,wFAAyC;AACzC,4FAA8C;AAC9C,kFAA+D;AAE/D,sCAAsC;AAQtC,MAAM,mBAAmB,GAAG,2BAAQ,CAAC,OAAO,CAAC,WAAW,CAAC,MAAM,CAC7D,CAAC,GAAG,EAAE,GAAG,EAAE,EAAE,WAAC,OAAA,CAAC,EAAE,GAAG,GAAG,EAAE,GAAG,CAAC,MAAA,GAAG,CAAC,KAAK,mCAAI,EAAE,CAAC,EAAE,CAAC,CAAA,EAAA,EAChD,EAAE,CACH,CAAC;AACF,MAAM,8BAA8B,GAAG,2BAAQ,CAAC,OAAO,CAAC,sBAAsB,CAAC,MAAM,CACnF,CAAC,GAAG,EAAE,GAAG,EAAE,EAAE,WAAC,OAAA,CAAC,EAAE,GAAG,GAAG,EAAE,GAAG,CAAC,MAAA,GAAG,CAAC,KAAK,mCAAI,EAAE,CAAC,EAAE,CAAC,CAAA,E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L,kDAAkD,EAAE,KAAK;YACzD,sBAAsB,EAAE,KAAK;YAC7B,uBAAuB,EAAE,KAAK;SAC/B;KACF;IAED,wEAAwE;IACxE;QACE,KAAK,EAAE,CAAC,SAAS,CAAC;QAClB,eAAe,EAAE;YACf,WAAW,EAAE,IAAI;YACjB,UAAU,EAAE,QAAQ;SACrB;QACD,KAAK,EAAE;YACL,uCAAuC,EAAE,KAAK;SAC/C;KACF,CACF,CAAC;AACJ,CAAC","sourcesContent":["import angular from '@angular-eslint/eslint-plugin';\nimport angularTemplate from '@angular-eslint/eslint-plugin-template';\n// `@angular-eslint/template-parser` is a TypeScript-compiled ES module with\n// `__esModule: true` and only named exports — there is no `default`. A default\n// import via `__importDefault` resolves to `undefined`, silently dropping the\n// parser and letting ESLint fall back to espree (parser errors on every `.html`).\n// Namespace import preserves the parse/parseForESLint functions ESLint expects.\nimport * as angularTemplateParser from '@angular-eslint/template-parser';\nimport prettierConfig from 'eslint-config-prettier';\nimport importX from 'eslint-plugin-import-x';\nimport jsdoc from 'eslint-plugin-jsdoc';\nimport noUnsanitized from 'eslint-plugin-no-unsanitized';\nimport rxjsX from 'eslint-plugin-rxjs-x';\nimport security from 'eslint-plugin-security';\nimport tseslint, { type ConfigArray } from 'typescript-eslint';\n\nimport { tgoPlugin } from '../plugin';\n\n// `tseslint.configs.recommended` etc. are arrays of mixed config objects\n// (some carry `name`, some carry `rules`, etc.). Flatten their rule maps via\n// reduce; cast the result to a permissive record so the spread into the\n// strongly-typed `rules` block below doesn't leak unrelated config keys.\ntype RulesRecord = Record<string, unknown>;\n\nconst tseslintRecommended = tseslint.configs.recommended.reduce<RulesRecord>(\n (acc, cfg) => ({ ...acc, ...(cfg.rules ?? {}) }),\n {}\n);\nconst tseslintRecommendedTypeChecked = tseslint.configs.recommendedTypeChecked.reduce<RulesRecord>(\n (acc, cfg) => ({ ...acc, ...(cfg.rules ?? {}) }),\n {}\n);\n\nexport interface RecommendedOptions {\n /** Absolute path to the consumer repo root. Pass `import.meta.dirname`. */\n tsconfigRootDir: string;\n /** tsconfig path (relative to tsconfigRootDir). Default: 'tsconfig.json'. */\n project?: string;\n /** Glob for source TS files. Default: ['src/**\\/*.ts']. */\n tsFiles?: string[];\n /** Glob for HTML templates. Default: ['src/**\\/*.html']. */\n htmlFiles?: string[];\n /** Glob for spec files (relaxations applied). Default: ['src/**\\/*.spec.ts', 'src/**\\/*.integration.spec.ts']. */\n specFiles?: string[];\n}\n\n/**\n * Strict default ESLint flat-config preset for TGO Angular frontends.\n *\n * Type-aware rules (no-unsafe-*, restrict-*, no-floating-promises, etc.) are\n * at `error`. The previously-deferred warn severities were ratcheted to error\n * after the strict tsconfig migration landed in consumer codebases. Two rules\n * remain explicitly relaxed in the preset:\n * - `@typescript-eslint/consistent-type-imports` (off — Angular DI conflict)\n * - `@angular-eslint/use-component-view-encapsulation` (off — separate\n * styling refactor workstream)\n * See the inline comments at each rule for full rationale.\n *\n * The spec/mock files block (default glob: *.spec.ts + *.integration.spec.ts\n * + *.mock.ts + *.mocks.ts) relaxes type-aware family rules and a few others\n * to match the idiomatic test-code shape (bracket access, fire-trigger\n * subscribes, mock literals with `any` typing).\n */\nexport function recommended(opts: RecommendedOptions): ConfigArray {\n const {\n tsconfigRootDir,\n project = 'tsconfig.json',\n tsFiles = ['src/**/*.ts'],\n htmlFiles = ['src/**/*.html'],\n specFiles = [\n 'src/**/*.spec.ts',\n 'src/**/*.integration.spec.ts',\n 'src/**/*.mock.ts',\n 'src/**/*.mocks.ts',\n ],\n } = opts;\n\n return tseslint.config(\n // ── TypeScript files (*.ts) ──────────────────────────────────────────\n {\n files: tsFiles,\n languageOptions: {\n parser: tseslint.parser,\n parserOptions: {\n project,\n tsconfigRootDir,\n sourceType: 'module',\n },\n },\n settings: {\n 'import-x/resolver': {\n typescript: { project },\n node: true,\n },\n },\n plugins: {\n '@typescript-eslint': tseslint.plugin,\n '@angular-eslint': angular,\n 'import-x': importX,\n jsdoc,\n 'no-unsanitized': noUnsanitized,\n security,\n 'rxjs-x': rxjsX,\n },\n rules: {\n // Spread recommended + recommendedTypeChecked, then disable ESLint formatting\n // rules that conflict with Prettier. Prettier runs separately in consumer\n // pipelines (pre-commit / lint-staged / CI), not as an ESLint rule.\n ...tseslintRecommended,\n ...tseslintRecommendedTypeChecked,\n ...prettierConfig.rules,\n\n // ══════════════════════════════════════════════════════════════════\n // Type-aware rules — ERROR (ratcheted from warn after TS strict landed\n // in consumer codebases).\n // ══════════════════════════════════════════════════════════════════\n // `_`-prefix is the conventional opt-out for intentionally-unused\n // identifiers in TypeScript (matches the `noUnusedParameters` compiler\n // option's behavior). Mock/stub methods that need a signature-compatible\n // parameter but ignore the value (e.g. `configure(_config?: …) {}`),\n // destructured rest collectors (`const { _internal: _, ...rest } = obj`),\n // and `catch (_e: unknown)` blocks all benefit. Production code can't\n // accidentally hide real unused names — pick a different prefix.\n '@typescript-eslint/no-unused-vars': [\n 'error',\n {\n argsIgnorePattern: '^_',\n varsIgnorePattern: '^_',\n caughtErrorsIgnorePattern: '^_',\n },\n ],\n '@typescript-eslint/no-unsafe-assignment': 'error',\n '@typescript-eslint/no-unsafe-call': 'error',\n '@typescript-eslint/no-unsafe-member-access': 'error',\n '@typescript-eslint/no-unsafe-return': 'error',\n '@typescript-eslint/no-unsafe-argument': 'error',\n '@typescript-eslint/no-unsafe-enum-comparison': 'error',\n '@typescript-eslint/no-unsafe-unary-minus': 'error',\n '@typescript-eslint/no-floating-promises': 'error',\n '@typescript-eslint/no-misused-promises': 'error',\n '@typescript-eslint/await-thenable': 'error',\n '@typescript-eslint/only-throw-error': 'error',\n '@typescript-eslint/prefer-promise-reject-errors': 'error',\n '@typescript-eslint/require-await': 'error',\n '@typescript-eslint/return-await': ['error', 'in-try-catch'],\n '@typescript-eslint/no-base-to-string': 'error',\n '@typescript-eslint/restrict-template-expressions': 'error',\n '@typescript-eslint/restrict-plus-operands': 'error',\n '@typescript-eslint/no-unnecessary-type-assertion': 'error',\n '@typescript-eslint/no-redundant-type-constituents': 'error',\n '@typescript-eslint/no-deprecated': 'error',\n '@typescript-eslint/no-meaningless-void-operator': 'error',\n '@typescript-eslint/prefer-readonly': 'error',\n '@typescript-eslint/prefer-nullish-coalescing': 'error',\n '@typescript-eslint/prefer-optional-chain': 'error',\n '@typescript-eslint/prefer-includes': 'error',\n '@typescript-eslint/prefer-string-starts-ends-with': 'error',\n '@typescript-eslint/prefer-literal-enum-member': 'error',\n '@typescript-eslint/no-mixed-enums': 'error',\n '@typescript-eslint/switch-exhaustiveness-check': 'error',\n '@typescript-eslint/use-unknown-in-catch-callback-variable': 'error',\n '@typescript-eslint/unbound-method': 'error',\n '@typescript-eslint/no-wrapper-object-types': 'error',\n '@typescript-eslint/no-unsafe-function-type': 'off',\n 'dot-notation': 'off',\n '@typescript-eslint/dot-notation': ['error', { allowIndexSignaturePropertyAccess: true }],\n\n // ══════════════════════════════════════════════════════════════════\n // Type-aware rules at error — purely syntactic, safe without TS strict.\n // ══════════════════════════════════════════════════════════════════\n '@typescript-eslint/no-explicit-any': 'error',\n '@typescript-eslint/no-non-null-assertion': 'error',\n '@typescript-eslint/no-namespace': 'error',\n '@typescript-eslint/no-misused-new': 'error',\n '@typescript-eslint/no-empty-object-type': 'error',\n '@typescript-eslint/triple-slash-reference': [\n 'error',\n { path: 'always', types: 'prefer-import', lib: 'always' },\n ],\n '@typescript-eslint/unified-signatures': 'error',\n '@typescript-eslint/prefer-function-type': 'error',\n '@typescript-eslint/prefer-namespace-keyword': 'error',\n '@typescript-eslint/prefer-for-of': 'error',\n '@typescript-eslint/adjacent-overload-signatures': 'error',\n '@typescript-eslint/consistent-type-assertions': 'error',\n '@typescript-eslint/no-inferrable-types': ['error', { ignoreParameters: true }],\n '@typescript-eslint/no-shadow': ['error', { hoist: 'all' }],\n '@typescript-eslint/no-unused-expressions': 'error',\n '@typescript-eslint/no-this-alias': 'error',\n '@typescript-eslint/no-for-in-array': 'error',\n '@typescript-eslint/ban-ts-comment': 'error',\n // consistent-type-imports — disabled preset-wide. The rule is not\n // Angular-aware: it converts constructor-injected service imports to\n // `import type { X }`, which then fails the Angular AOT compiler with\n // TS-992003 (\"No suitable injection token\") because Angular reads the\n // parameter type as a runtime DI token. The escape is one\n // `eslint-disable-next-line` comment per DI import, which scales with\n // the number of constructor-injected services in the codebase. Off\n // until either (a) consumer codebases migrate from constructor DI to\n // `inject()` everywhere — at which point the rule becomes safe and\n // valuable — or (b) we adopt a typescript-eslint variant that\n // recognises Angular DI sites.\n '@typescript-eslint/consistent-type-imports': 'off',\n '@typescript-eslint/no-import-type-side-effects': 'error',\n\n // High-friction rules — explicitly off (see plan rationale).\n '@typescript-eslint/explicit-function-return-type': 'off',\n '@typescript-eslint/no-empty-function': 'off',\n '@typescript-eslint/no-use-before-define': 'off',\n '@typescript-eslint/no-require-imports': 'off',\n '@typescript-eslint/array-type': 'off',\n '@typescript-eslint/parameter-properties': 'off',\n '@typescript-eslint/explicit-member-accessibility': ['off', { accessibility: 'explicit' }],\n\n // Naming convention — Angular-friendly, lenient. Error severity (ratcheted\n // from warn). Selectors below opt out of naming enforcement for the\n // identifier kinds that legitimately mirror the snake_case shape of\n // TestGorilla's backend API (DTOs, destructured server responses,\n // class fields that proxy API field names, Quill keyboard-shortcut /\n // language object-literal method keys like `Cmd-Z` or `c++`).\n // Last-matching-selector-wins, so the additions go at the tail.\n '@typescript-eslint/naming-convention': [\n 'error',\n {\n selector: 'default',\n format: ['camelCase'],\n leadingUnderscore: 'allow',\n trailingUnderscore: 'allow',\n },\n {\n selector: 'variable',\n format: ['camelCase', 'UPPER_CASE', 'PascalCase'],\n leadingUnderscore: 'allow',\n },\n { selector: 'parameter', format: ['camelCase'], leadingUnderscore: 'allow' },\n {\n selector: 'memberLike',\n modifiers: ['private'],\n format: ['camelCase'],\n leadingUnderscore: 'allow',\n },\n { selector: 'typeLike', format: ['PascalCase'] },\n { selector: 'enumMember', format: ['PascalCase', 'UPPER_CASE'] },\n // API payloads commonly use snake_case — opt out of property naming entirely.\n { selector: 'objectLiteralProperty', format: null },\n { selector: 'import', format: null },\n // Interface / type members modelling API shape.\n { selector: 'typeProperty', format: null },\n // DTO classes + UPPER_CASE static const-like fields + PascalCase class-field\n // re-exports of types/enums to templates.\n { selector: 'classProperty', format: null, leadingUnderscore: 'allow' },\n // `const { foo_bar } = result;` destructured locals/parameters keep API names.\n { selector: 'variable', modifiers: ['destructured'], format: null },\n { selector: 'parameter', modifiers: ['destructured'], format: null },\n // Quill keyboard shortcuts (`Cmd-Z`, `Ctrl-Shift-K`) and language keys (`c++`, `c#`).\n { selector: 'objectLiteralMethod', format: null },\n ],\n\n '@typescript-eslint/no-restricted-types': [\n 'error',\n {\n types: {\n Object: {\n message: 'Avoid using the `Object` type. Did you mean `object`?',\n fixWith: 'object',\n },\n Function: {\n message: 'Avoid using the `Function` type. Prefer a specific function type.',\n fixWith: '() => void',\n },\n Boolean: {\n message: 'Avoid using the `Boolean` type. Did you mean `boolean`?',\n fixWith: 'boolean',\n },\n Number: {\n message: 'Avoid using the `Number` type. Did you mean `number`?',\n fixWith: 'number',\n },\n String: {\n message: 'Avoid using the `String` type. Did you mean `string`?',\n fixWith: 'string',\n },\n Symbol: {\n message: 'Avoid using the `Symbol` type. Did you mean `symbol`?',\n fixWith: 'symbol',\n },\n },\n },\n ],\n\n // ══════════════════════════════════════════════════════════════════\n // Angular structural rules — error.\n // ══════════════════════════════════════════════════════════════════\n '@angular-eslint/component-class-suffix': 'error',\n '@angular-eslint/component-selector': [\n 'error',\n { type: 'element', prefix: 'tgo', style: 'kebab-case' },\n ],\n '@angular-eslint/contextual-lifecycle': 'error',\n '@angular-eslint/directive-class-suffix': 'error',\n '@angular-eslint/directive-selector': [\n 'error',\n { type: 'attribute', prefix: 'tgo', style: 'camelCase' },\n ],\n '@angular-eslint/no-conflicting-lifecycle': 'error',\n '@angular-eslint/no-input-rename': 'error',\n '@angular-eslint/no-inputs-metadata-property': 'error',\n '@angular-eslint/no-output-native': 'error',\n '@angular-eslint/no-output-on-prefix': 'error',\n '@angular-eslint/no-output-rename': 'error',\n '@angular-eslint/no-outputs-metadata-property': 'error',\n '@angular-eslint/use-lifecycle-interface': 'error',\n '@angular-eslint/use-pipe-transform-interface': 'error',\n '@angular-eslint/prefer-standalone': 'error',\n '@angular-eslint/prefer-on-push-component-change-detection': 'error',\n // use-component-view-encapsulation — off in the preset. Re-enabling\n // requires per-component audit of every `ViewEncapsulation.None` site\n // (third-party DOM targets, global content-projection slots, intentional\n // style leaks) and a refactor for the accidental ones. That work belongs\n // in a dedicated styling-focused workstream in each consumer codebase,\n // not in this preset's strict default. Consumers can override to\n // `error` locally if they want to gate on it sooner. TODO: revisit\n // when at least one consumer ships the per-component audit.\n '@angular-eslint/use-component-view-encapsulation': 'off',\n '@angular-eslint/no-queries-metadata-property': 'error',\n '@angular-eslint/no-duplicates-in-metadata-arrays': 'error',\n '@angular-eslint/no-async-lifecycle-method': 'error',\n '@angular-eslint/no-empty-lifecycle-method': 'error',\n\n // ══════════════════════════════════════════════════════════════════\n // Import discipline (eslint-plugin-import-x).\n // ══════════════════════════════════════════════════════════════════\n // PERF NOTE — full-repo lint with this rule enabled costs ~+45s wall and ~+1 GB peak RSS\n // (measured: 92.8s / 3.38 GB OFF vs 138.6s / 4.44 GB ON across 2,337 files). It walks the\n // full import graph and finds zero violations today. Kept active to preserve the rule as\n // part of the canonical rule set; revisit moving it to OXLint's fast path as part of the\n // toolchain decision (Phase 1, Workstream 1) rather than disabling.\n 'import-x/no-self-import': 'error',\n 'import-x/no-duplicates': 'error',\n // PERF NOTE — TIMING profile shows this rule at 64-75% of total rule execution time\n // (~1.1-1.3s per file). It walks every import looking for @deprecated JSDoc tags. Ratcheted\n // to error along with the rest of the type-aware family after TS strict landed. Revisit\n // migrating to OXLint's fast path with Workstream 1 if total lint time becomes a concern.\n 'import-x/no-deprecated': 'error',\n 'import-x/no-relative-packages': 'error',\n 'import-x/no-mutable-exports': 'error',\n 'import-x/no-extraneous-dependencies': 'error',\n // Consumers carve out routing/lazy/config/stories paths.\n 'import-x/no-default-export': 'error',\n 'import-x/order': [\n 'error',\n {\n groups: ['builtin', 'external', 'internal', 'parent', 'sibling', 'index', 'type'],\n 'newlines-between': 'always',\n alphabetize: { order: 'asc', caseInsensitive: true },\n },\n ],\n\n // ══════════════════════════════════════════════════════════════════\n // JSDoc.\n // ══════════════════════════════════════════════════════════════════\n 'jsdoc/check-alignment': 'error',\n\n // ══════════════════════════════════════════════════════════════════\n // Security: XSS guards (no-unsanitized).\n // ══════════════════════════════════════════════════════════════════\n 'no-unsanitized/method': 'error',\n 'no-unsanitized/property': 'error',\n\n // ══════════════════════════════════════════════════════════════════\n // Security: cherry-picked from eslint-plugin-security.\n // Most rules in this plugin are Node-specific and noisy in browser code; only the\n // browser-relevant detectors are enabled. Plugin defaults explicitly turned off below.\n // ══════════════════════════════════════════════════════════════════\n 'security/detect-eval-with-expression': 'error',\n 'security/detect-unsafe-regex': 'error',\n 'security/detect-bidi-characters': 'error', // CVE-2021-42574 trojan-source guard.\n 'security/detect-non-literal-regexp': 'off',\n 'security/detect-pseudoRandomBytes': 'off',\n 'security/detect-non-literal-require': 'off',\n 'security/detect-non-literal-fs-filename': 'off',\n 'security/detect-object-injection': 'off',\n 'security/detect-buffer-noassert': 'off',\n 'security/detect-child-process': 'off',\n 'security/detect-disable-mustache-escape': 'off',\n 'security/detect-new-buffer': 'off',\n 'security/detect-no-csrf-before-method-override': 'off',\n 'security/detect-possible-timing-attacks': 'off',\n\n // ══════════════════════════════════════════════════════════════════\n // RxJS hygiene (eslint-plugin-rxjs-x). Error severity (ratcheted from\n // warn after TS strict landed). All five are real-bug-class rules\n // (async-in-subscribe, untyped catch in pipe, nested subscribes that\n // should be flatMap, completer-not-last, leaking subscriptions).\n // ══════════════════════════════════════════════════════════════════\n 'rxjs-x/no-async-subscribe': 'error',\n 'rxjs-x/no-implicit-any-catch': 'error',\n 'rxjs-x/no-nested-subscribe': 'error',\n 'rxjs-x/no-unsafe-takeuntil': 'error',\n 'rxjs-x/no-ignored-subscription': 'error',\n\n // ══════════════════════════════════════════════════════════════════\n // Core ESLint — error.\n // ══════════════════════════════════════════════════════════════════\n 'arrow-body-style': 'error',\n complexity: ['error', 15],\n 'constructor-super': 'error',\n curly: 'error',\n 'default-case-last': 'error',\n eqeqeq: ['error', 'always'],\n 'guard-for-in': 'error',\n 'id-denylist': [\n 'error',\n 'any',\n 'Number',\n 'number',\n 'String',\n 'string',\n 'Boolean',\n 'boolean',\n 'Undefined',\n 'undefined',\n ],\n 'max-classes-per-file': 'off',\n 'max-depth': ['error', 4],\n 'max-nested-callbacks': ['error', 3],\n 'max-params': ['error', 5],\n 'no-bitwise': 'error',\n 'no-caller': 'error',\n 'no-cond-assign': 'error',\n 'no-console': [\n 'error',\n {\n allow: [\n 'warn',\n 'dir',\n 'timeLog',\n 'assert',\n 'clear',\n 'count',\n 'countReset',\n 'group',\n 'groupEnd',\n 'table',\n 'dirxml',\n 'error',\n 'groupCollapsed',\n 'Console',\n 'profile',\n 'profileEnd',\n 'timeStamp',\n 'context',\n ],\n },\n ],\n 'no-debugger': 'error',\n 'no-empty': 'off',\n 'no-empty-function': 'off',\n 'no-eval': 'error',\n 'no-fallthrough': 'error',\n 'no-implicit-coercion': 'error',\n 'no-invalid-this': 'off',\n 'no-new-wrappers': 'error',\n 'no-param-reassign': 'error',\n 'no-restricted-imports': [\n 'error',\n {\n paths: [\n { name: 'rxjs/Rx', message: 'Use the rxjs barrel (`rxjs`) instead.' },\n {\n name: 'lodash',\n message:\n 'Import per-method from lodash (e.g., `lodash/cloneDeep`) for tree-shaking.',\n },\n { name: 'moment', message: 'Use date-fns (already a project dep).' },\n ],\n },\n ],\n // Block direct DomSanitizer.bypassSecurityTrust* calls — production callers should use\n // sanitization wrapper pipes. Consumers carve out the wrappers themselves.\n 'no-restricted-syntax': [\n 'error',\n {\n selector:\n 'CallExpression[callee.property.name=/^bypassSecurityTrust(Html|Script|Url|ResourceUrl|Style)$/]',\n message:\n 'Use the bypass-sanitization-{html,url}.pipe.ts wrappers in src/@testgorilla/pipes instead of calling DomSanitizer.bypassSecurityTrust* directly. If a TS-side bypass is genuinely required, add an inline eslint-disable-next-line with a SECURITY comment explaining why.',\n },\n ],\n 'no-script-url': 'error',\n 'no-template-curly-in-string': 'error',\n 'no-throw-literal': 'error',\n 'no-undef-init': 'error',\n 'no-underscore-dangle': ['error', { allow: ['_state'], allowAfterThis: true }],\n 'no-unsafe-finally': 'error',\n 'no-unused-labels': 'error',\n 'no-use-before-define': 'off',\n 'no-useless-concat': 'error',\n 'no-useless-return': 'error',\n 'no-var': 'error',\n 'object-shorthand': 'error',\n 'one-var': ['error', 'never'],\n 'prefer-arrow-callback': 'error',\n 'prefer-const': 'error',\n 'prefer-object-spread': 'error',\n 'prefer-template': 'error',\n 'quote-props': ['error', 'as-needed'],\n radix: 'error',\n 'use-isnan': 'error',\n yoda: 'error',\n\n // ── Off — Prettier owns formatting. eslint-config-prettier disables most of these;\n // listing explicitly overrides any preset that re-enables them.\n 'arrow-parens': 'off',\n 'brace-style': 'off',\n 'comma-dangle': 'off',\n 'eol-last': 'off',\n 'linebreak-style': 'off',\n 'max-len': 'off',\n 'new-parens': 'off',\n 'newline-per-chained-call': 'off',\n 'no-extra-semi': 'off',\n 'no-irregular-whitespace': 'off',\n 'no-multiple-empty-lines': 'off',\n 'no-trailing-spaces': 'off',\n 'padded-blocks': 'off',\n quotes: 'off',\n semi: 'off',\n 'space-in-parens': 'off',\n },\n },\n\n // ── HTML template files (*.html) ─────────────────────────────────────\n // a11y rule set is deferred to a separate workstream.\n {\n files: htmlFiles,\n languageOptions: {\n parser: angularTemplateParser,\n },\n plugins: {\n '@angular-eslint/template': angularTemplate,\n tgo: tgoPlugin,\n },\n rules: {\n ...(angularTemplate.configs.recommended.rules as RulesRecord),\n 'tgo/require-data-testid': 'error',\n '@angular-eslint/template/prefer-control-flow': 'error',\n },\n },\n\n // ── Spec / mock files (default glob: *.spec.ts, *.integration.spec.ts,\n // *.mock.ts, *.mocks.ts) — relax type-aware and a few style rules to\n // match the idiomatic test-code shape (bracket access for production\n // internals, fire-trigger subscribes that Jest cleans up via test\n // isolation, mock literals with `any`-shaped fixtures, snake_case API\n // field names re-used in fixture object literals). Also allows `ui-*`\n // selectors for mocks that substitute Canopy UI library components. ──\n {\n files: specFiles,\n rules: {\n '@typescript-eslint/unbound-method': 'off',\n '@typescript-eslint/no-unsafe-call': 'off',\n '@typescript-eslint/no-unsafe-member-access': 'off',\n '@typescript-eslint/no-unsafe-assignment': 'off',\n '@typescript-eslint/no-unsafe-return': 'off',\n '@typescript-eslint/no-unsafe-argument': 'off',\n '@typescript-eslint/no-explicit-any': 'off',\n '@typescript-eslint/naming-convention': 'off',\n 'max-params': 'off',\n 'max-nested-callbacks': 'off',\n // dot-notation: rule's autofix converts `service['privateField']` →\n // `service.privateField`, which trips TS access-modifier checks\n // (TS2341/TS2445) and/or no-underscore-dangle on `_`-prefixed\n // internals. Bracket access is the standard idiom for reaching\n // production internals from tests; the noise is purely cosmetic.\n '@typescript-eslint/dot-notation': 'off',\n // no-ignored-subscription: the canonical pattern in specs is\n // `service.method().subscribe()` used as a fire-trigger for the\n // production code's side effect (typically an HTTP request the spec\n // then asserts via `httpTesting.expectOne`). Jest test isolation\n // makes leaks impossible by construction, so the rule's\n // memory-leak-prevention signal is zero here while the noise is\n // substantial.\n 'rxjs-x/no-ignored-subscription': 'off',\n // component-selector: mocks that substitute Canopy UI library\n // components (`ui-*` selectors owned by `@testgorilla/tgo-ui`)\n // must use the same selectors to slot in correctly under\n // TestBed.overrideComponent.\n '@angular-eslint/component-selector': [\n 'error',\n { type: 'element', prefix: ['tgo', 'ui'], style: 'kebab-case' },\n ],\n // no-non-null-assertion: idiomatic `querySelector('input')!` after\n // an `expect(...).toBeDefined()` or after a static template\n // guarantees the element exists. The spec has already proven\n // non-null upstream; the rule's signal is zero here while the\n // noise is substantial. Same precedent as `dot-notation` /\n // `no-ignored-subscription` — spec-file relaxations match the\n // idiomatic test shape. Production code keeps the rule at error.\n '@typescript-eslint/no-non-null-assertion': 'off',\n // no-underscore-dangle: specs routinely reach into `_`-prefixed\n // internals of services and SignalStore factories to assert\n // against private state (e.g. `(store as unknown as\n // { _resetSubject: ... })._resetSubject()`). The SignalStore\n // factory block already disables this rule for `*.store.ts` /\n // `*.store.feature.ts`, but `*.store.spec.ts` matches the spec\n // block instead — so the disable needs to be here too.\n 'no-underscore-dangle': 'off',\n },\n },\n\n // ── NgRx SignalStore factory files (*.store.ts, *.store.feature.ts) —\n // three rules conflict with the SignalStore authoring pattern:\n // - `explicit-function-return-type`: signalStore() / withFeature()\n // rely on inferred generic return types; naming the type either\n // duplicates inference or narrows below what's intended.\n // - `no-underscore-dangle`: SignalStore convention uses `_`-prefixed\n // internal helpers (e.g. `_state`, `_load`) that don't leak through\n // the public store API.\n // - `prefer-arrow-callback`: factories pass `function` keyword\n // callbacks for proper `this`-binding inside the feature; arrow\n // conversion can change semantics. ──\n {\n files: ['src/**/*.store.ts', 'src/**/*.store.feature.ts'],\n rules: {\n '@typescript-eslint/explicit-function-return-type': 'off',\n 'no-underscore-dangle': 'off',\n 'prefer-arrow-callback': 'off',\n },\n },\n\n // ── JS files ─────────────────────────────────────────────────────────\n {\n files: ['**/*.js'],\n languageOptions: {\n ecmaVersion: 2020,\n sourceType: 'module',\n },\n rules: {\n '@typescript-eslint/no-require-imports': 'off',\n },\n }\n );\n}\n"]}