@noctcore/eslint-plugin-code-quality 0.1.0 → 0.2.1

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/README.md CHANGED
@@ -54,5 +54,15 @@ documented but off by default (opinionated / niche) — enable them explicitly.
54
54
  | [`no-pr-reference-comments`](./docs/rules/no-pr-reference-comments.md) | Ban PR/issue references in comments. | ✅ | |
55
55
  | [`no-focused-tests`](./docs/rules/no-focused-tests.md) | Ban focused tests (`.only` / `fdescribe` / `fit`). | ✅ | |
56
56
  | [`skipped-tests-need-tracking`](./docs/rules/skipped-tests-need-tracking.md) | Skipped tests must carry a tracking marker (issue URL or `TODO(@owner)`). | ✅ | `markers`, `lookback` |
57
+ | [`no-vacuous-expect`](./docs/rules/no-vacuous-expect.md) | Ban `typeof` expects, literal tautologies and a sole `toBeDefined`/`toBeTruthy`. | ✅ | `weakMatchers`, `assertionCallees` |
58
+ | [`no-conditional-expect`](./docs/rules/no-conditional-expect.md) | Ban `expect()` inside a branch or `catch` that may not run. | ✅ | `checkLoops` |
59
+ | [`fake-timers-must-be-restored`](./docs/rules/fake-timers-must-be-restored.md) | `useFakeTimers()` needs a `useRealTimers()`, here or in the shared suite the file runs. | ✅ | `fakeTimerMethods`, `restoreTimerMethods`, `followImportedSuites`, `sharedSuiteModules` |
60
+ | [`no-real-network-in-unit-tests`](./docs/rules/no-real-network-in-unit-tests.md) | Ban real `fetch` / `axios` calls in unit test files. | ✅ | `testFileSuffixes`, `integrationMarkers`, `networkCallees`, `httpClients` |
57
61
  | [`interface-prefix-i`](./docs/rules/interface-prefix-i.md) | Interface names must be `I` + uppercase. Opinionated house style. | | |
58
62
  | [`no-template-trim-empty-ternary`](./docs/rules/no-template-trim-empty-ternary.md) | Extract inline `` `…`.trim() === '' ? … `` to a named util. Niche. | | |
63
+
64
+ ## Attribution
65
+
66
+ `no-vacuous-expect`, `no-conditional-expect`, `fake-timers-must-be-restored` and
67
+ `no-real-network-in-unit-tests` are ported from [tsforge](https://github.com/boringstack-xyz/tsforge)
68
+ (MIT). See [THIRD_PARTY_NOTICES.md](./THIRD_PARTY_NOTICES.md).
@@ -0,0 +1,38 @@
1
+ # Third-party notices
2
+
3
+ ## tsforge
4
+
5
+ The following rules are ported from [tsforge](https://github.com/boringstack-xyz/tsforge),
6
+ `packages/core/src/rule-packs/test-conventions/rules/`, at commit
7
+ `75100ffd54fafc4874375e28f6865198dcb91839`, and modified for this package:
8
+
9
+ - `src/rules/no-vacuous-expect.ts`
10
+ - `src/rules/no-conditional-expect.ts`
11
+ - `src/rules/fake-timers-must-be-restored.ts`
12
+ - `src/rules/no-real-network-in-unit-tests.ts`
13
+
14
+ tsforge is distributed under the MIT License:
15
+
16
+ ```
17
+ MIT License
18
+
19
+ Copyright (c) 2026 Aleksandar Grbic
20
+
21
+ Permission is hereby granted, free of charge, to any person obtaining a copy
22
+ of this software and associated documentation files (the "Software"), to deal
23
+ in the Software without restriction, including without limitation the rights
24
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
25
+ copies of the Software, and to permit persons to whom the Software is
26
+ furnished to do so, subject to the following conditions:
27
+
28
+ The above copyright notice and this permission notice shall be included in all
29
+ copies or substantial portions of the Software.
30
+
31
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
32
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
33
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
34
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
35
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
36
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
37
+ SOFTWARE.
38
+ ```