[2.4.0 stack 11/18] Strictness: pedantic oxlint with every plugin, stricter tsconfig - #519
[2.4.0 stack 11/18] Strictness: pedantic oxlint with every plugin, stricter tsconfig#519hyanmandian wants to merge 2 commits into
Conversation
|
Important Review skippedToo many files! This PR contains 189 files, which is 39 over the limit of 150. To get a review, reduce the PR to 150 files or fewer by splitting it into smaller PRs or changing its base branch. Upgrade to a paid plan to raise the limit. This review couldn't start because sufficient usage credits or metered capacity aren't available. Add credits or update usage-based reviews in the billing tab, then retry. ⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Advanced Run ID: 📒 Files selected for processing (189)
You can disable this status message by setting the Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Tree-shaking reportFails when a pre-existing export grows more than 20% and more than 256 B, or when importing every export that already existed on the base grows more than 5%. New exports never count as a regression. Pre-existing exports: 625733 B to 626286 B (+0.1%, gzip 161960 B). Full import on head: 626286 B (gzip 161960 B).
Unchanged exports (25)
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## stack/09-tooling #519 +/- ##
==================================================
Coverage 100.00% 100.00%
==================================================
Files 154 154
Lines 1961 1983 +22
Branches 584 584
==================================================
+ Hits 1961 1983 +22
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
247866d to
abcf511
Compare
abcf511 to
46e6373
Compare
|
You are seeing this message because GitHub Code Scanning has recently been set up for this repository, or this pull request contains the workflow file for the Code Scanning tool. What Enabling Code Scanning Means:
For more information about GitHub Code Scanning, check out the documentation. |
46e6373 to
42bb650
Compare
58e0023 to
d783f0b
Compare
d783f0b to
bfe7dfc
Compare
|
@coderabbitai full review |
|
bfe7dfc to
19738bf
Compare
Explicit return types and member accessibility everywhere, JSDoc param and return types on every exported function, no forEach, no parameter reassignment, no non-null assertions, no unsafe any, no default exports outside the config files, cyclomatic complexity under 20 and functions under 120 lines. The scripts parse the upstream payloads as unknown and validate their shape before writing a dataset. No public signature or output changes.
oxlint now runs the correctness, suspicious, perf and pedantic categories as errors with the import, jsdoc, promise, unicorn, typescript and vitest plugins, plus a curated set of restriction and style rules; test files relax what only makes sense for production code. tsconfig adds noImplicitOverride, noUnusedLocals, noUnusedParameters and noPropertyAccessFromIndexSignature. noUncheckedIndexedAccess and exactOptionalPropertyTypes stay off: the lookup tables are indexed by already-validated digits, so those flags only add unreachable fallbacks that show up as missing coverage and equivalent mutants. CONTRIBUTING documents the rule set.
19738bf to
d11b8e8
Compare
|
@coderabbitai full review |
|
What does this PR do?
Part 11 of 18 of the 2.4.0 release stack (main <- stack/01-tooling <- ... <- stack/11-testing). oxlint through Vite+ now runs the correctness, suspicious, perf and pedantic categories as errors with the import, jsdoc, promise, unicorn, typescript and vitest plugins plus a curated set of restriction and style rules (explicit return types and member accessibility, JSDoc param and return types, no forEach, no parameter reassignment, no non-null assertions, no unsafe
any, cyclomatic complexity under 20, functions under 120 lines); tsconfig addsnoImplicitOverride,noUnusedLocals,noUnusedParametersandnoPropertyAccessFromIndexSignature(noUncheckedIndexedAccessandexactOptionalPropertyTypeswere tried and left off: the lookup tables are indexed by already-validated digits, so they only add unreachable fallbacks that show up as missing coverage and equivalent mutants). The refactor commit that satisfies the rules changes no public signature or output; the dataset scripts now parse the upstream payloads asunknownand validate their shape.Commits in this part (2)
How to review and merge
mainand merge it with a merge commit: the reviewed commits land unchanged and GitHub marks the seventeen parts below as merged.CHANGELOG.md(part 7); the build of every later part is compared export by export against the part below it.Stack