you-dont-need/You-Dont-Need-Momentjs
51.0
Adequate · 15 November 2026
133
lines of production code
JavaScript
primary language
5
measurements over time
What this system is
This system is an ESLint plugin designed to detect and discourage the use of the Moment.js library in JavaScript codebases. It provides specific rules that flag various import styles, constructor calls, and method usage to encourage migration toward native Date methods or alternatives like date-fns. The tool includes a recommended configuration and comprehensive test coverage to ensure accurate detection of deprecated patterns.
Features
Initial release of eslint-plugin-you-dont-need-momentjs
The library now exports an ESLint plugin that provides rules to discourage the use of Moment.js, including checks for dynamic imports, standard imports, constructor usage, and require statements. A recommended configuration is included that enables all these rules at the error level, helping users identify and replace Moment.js dependencies in their codebases.
lib · high confidence
New ESLint rules to discourage moment.js usage
Added a suite of ESLint rules that flag the use of moment.js in favor of native Date methods or date-fns. The new rules include no-import-moment and no-require-moment to catch static imports and CommonJS requires, no-dynamic-import-moment to catch dynamic imports, no-moment-constructor to flag moment() calls, and no-moment-methods to flag specific moment API methods (such as add, format, diff, and isBefore) by referencing a new methods.json configuration file.
lib/rules · high confidence
Test coverage
Added unit and performance tests for date library comparisons; Added unit tests for ESLint rules preventing moment.js usage.
Written by cca.canine.dev from the codebase's own history, inside the signed delivery this page is composed from.
How this codebase got here
Score
- CAI 52 → 51 (-1.0)
- Rubric changed (rubric-2026.10.5 → rubric-2026.11.4) — scores are not directly comparable.
Lenses
- Code Health 71 → 58 (-12.9)
- Architecture 69 → 69 (+0.0)
- Maturity 59 → 59 (+0.0)
- Readiness 37 → 37 (-0.0)
- Security 80 → 100 (+20.0)
Findings
- No change — the same findings as the prior survey.
Written by cca.canine.dev from the codebase's own history, inside the signed delivery this page is composed from.
Survey your own repository
you-dont-need/You-Dont-Need-Momentjs was measured the same way every project in this corpus was: the same rubric, at a pinned commit, with the result published in full. Point a surveyor at a repository you know and see whether you agree with it.
About this page
- The score is its most recent published measurement, taken on 15 November 2026 at a pinned commit. It is not a live figure and does not change until the project is measured again.
- Measured at commit 43977cf990a4af509a758a4e9a6af40f4485d34d — the exact code this score is about.
- Scored under rubric-2026.11.4 — the same rubric and the same method as every other entry in this index.
- Measured by Canine Code Analyzer (cca.canine.dev) using cca measure-2026.11.65+preprod-3c33c1882dc1.