diff --git a/scripts/constants.ts b/scripts/constants.ts index 01095d6..21a6b97 100644 --- a/scripts/constants.ts +++ b/scripts/constants.ts @@ -7,7 +7,7 @@ export const VERSION_PREFIX = 'oxlint_v'; export const SPARSE_CLONE_DIRECTORY = 'crates/oxc_linter/src'; // these are the rules that don't have a direct equivalent in the eslint rules -export const ignoreScope = new Set(['oxc', 'deepscan']); +export const ignoreScope = new Set(['oxc', 'deepscan', 'security']); // these are the mappings from the scope in the rules.rs to the eslint scope // only used for the scopes where the directory structure doesn't reflect the eslint scope diff --git a/src/__snapshots__/rules-by-scope.spec.ts.snap b/src/__snapshots__/rules-by-scope.spec.ts.snap index 8c4020f..942ab81 100644 --- a/src/__snapshots__/rules-by-scope.spec.ts.snap +++ b/src/__snapshots__/rules-by-scope.spec.ts.snap @@ -1334,9 +1334,6 @@ exports[`contains all the oxlint rules 1`] = ` "rest-spread-spacing": [ 0, ], - "security/api-keys": [ - 0, - ], "semi": [ 0, ], diff --git a/src/rules-by-category.ts b/src/rules-by-category.ts index 33d7f58..aa1b203 100644 --- a/src/rules-by-category.ts +++ b/src/rules-by-category.ts @@ -338,7 +338,6 @@ const correctnessRules = { 'react/no-render-return-value': 'off', 'react/no-string-refs': 'off', 'react/void-dom-elements-no-children': 'off', - 'security/api-keys': 'off', '@typescript-eslint/no-duplicate-enum-values': 'off', '@typescript-eslint/no-extra-non-null-assertion': 'off', '@typescript-eslint/no-misused-new': 'off', diff --git a/src/rules-by-scope.ts b/src/rules-by-scope.ts index 77fb8db..4111170 100644 --- a/src/rules-by-scope.ts +++ b/src/rules-by-scope.ts @@ -363,10 +363,6 @@ const reactPerfRules = { 'react-perf/jsx-no-new-object-as-prop': 'off', } as const; -const securityRules = { - 'security/api-keys': 'off', -} as const; - const treeShakingRules = { 'tree-shaking/no-side-effects-in-initialization': 'off', } as const; @@ -482,7 +478,6 @@ export { promiseRules, reactRules, reactPerfRules, - securityRules, treeShakingRules, unicornRules, vitestRules,