refactor: store error codes in OxcDiagnostic
#4333
Labels
C-cleanup
Category - technical debt or refactoring. Solution not expected to change behavior
OxcDiagnostic
#4333
Instead of inlining error codes into messages (e.g.
eslint(eqeqeq): use '===' instead of '=='
), they should be stored separately.This will let us
Tasks
First, change
OxcDiagnosticInner
fromTo:
Next, update
LintContext
to setcode_scope
andcode_num
before running a rule.Finally, update all lint rule diagnostics to remove their inlined error codes.
The text was updated successfully, but these errors were encountered: