Skip to content

Commit 6b32cc8

Browse files
committed
refactor(linter/plugins): correct outdated comments (oxc-project#18948)
Just update 1 outdated TODO comment, and delete another.
1 parent 9cce17e commit 6b32cc8

2 files changed

Lines changed: 1 addition & 2 deletions

File tree

apps/oxlint/src-js/plugins/context.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -320,7 +320,7 @@ export type LanguageOptions = Readonly<typeof LANGUAGE_OPTIONS>;
320320
// However, we still want to discourage using these deprecated methods/getters in rules, because such rules
321321
// will not work in ESLint 10 in compatibility mode.
322322
//
323-
// TODO: When we write a rule tester, throw an error in the tester if the rule uses deprecated methods/getters.
323+
// TODO: Throw an error in `RuleTester` if the rule uses deprecated methods/getters.
324324
// We'll need to offer an option to opt out of these errors, for rules which delegate to another rule whose code
325325
// the author doesn't control.
326326
const FILE_CONTEXT = Object.freeze({

apps/oxlint/src-js/plugins/rule_meta.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,6 @@ export interface RuleMeta {
4545
* Default options for the rule.
4646
* If present, any user-provided options in their config will be merged on top of them recursively.
4747
*/
48-
// TODO: Use this to alter options passed to rules.
4948
defaultOptions?: Options;
5049
/**
5150
* Indicates whether the rule has been deprecated, and info about the deprecation and possible replacements.

0 commit comments

Comments
 (0)