Skip to content

Commit 46a9c8a

Browse files
authored
chore(eslint): add require export consistency rule (#7543)
* chore(eslint): add require export consistency rule Add a custom `eslint` rule that validates destructured CommonJS `require()` access against statically discoverable first-party exports. Support common CJS export patterns and JSON top-level keys, and skip dynamic/unknown export shapes to keep the rule conservative and avoid false positives. Wire the rule into `eslint.config.mjs` and add fixture-based `RuleTester` coverage for valid, invalid, and skip scenarios. * chore(eslint): enable require-export-exists in defaults Move the eslint-rules plugin and eslint-require-export-exists from dd-trace/src/all into dd-trace/defaults so the rule runs project-wide instead of only under packages/dd-trace/src.
1 parent 5ef4454 commit 46a9c8a

7 files changed

Lines changed: 561 additions & 9 deletions

File tree

0 commit comments

Comments
 (0)