From d7feadedb4f5daf9c41d46fca47e8e00313dfd91 Mon Sep 17 00:00:00 2001 From: Boshen Date: Fri, 2 Feb 2024 17:16:05 +0800 Subject: [PATCH] chore(lint_rules): deprecated eslint no-dupe-args / no-octal / no-with These are strict mode errors. Closes #2257 --- tasks/lint_rules/.gitignore | 1 + tasks/lint_rules/src/oxlint-rules.cjs | 6 +++++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/tasks/lint_rules/.gitignore b/tasks/lint_rules/.gitignore index d5f19d89b..d01fca52a 100644 --- a/tasks/lint_rules/.gitignore +++ b/tasks/lint_rules/.gitignore @@ -1,2 +1,3 @@ node_modules package-lock.json +pnpm-lock.yaml diff --git a/tasks/lint_rules/src/oxlint-rules.cjs b/tasks/lint_rules/src/oxlint-rules.cjs index dcc2eca81..b56270a1d 100644 --- a/tasks/lint_rules/src/oxlint-rules.cjs +++ b/tasks/lint_rules/src/oxlint-rules.cjs @@ -42,7 +42,11 @@ const readAllImplementedRuleNames = async () => { throw new Error("Failed to find the end of the rules list"); }; -const NOT_SUPPORTED_RULE_NAMES = new Set([]); +const NOT_SUPPORTED_RULE_NAMES = new Set([ + "eslint/no-dupe-args", // superseded by strict mode + "eslint/no-octal", // superseded by strict mode + "eslint/no-with" // superseded by strict mode +]); /** * @typedef {{