Skip to content

Commit 13cc44f

Browse files
authored
bugfix: ignore "security" scope (#183)
1 parent c6cbf39 commit 13cc44f

File tree

4 files changed

+1
-10
lines changed

4 files changed

+1
-10
lines changed

scripts/constants.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ export const VERSION_PREFIX = 'oxlint_v';
77
export const SPARSE_CLONE_DIRECTORY = 'crates/oxc_linter/src';
88

99
// these are the rules that don't have a direct equivalent in the eslint rules
10-
export const ignoreScope = new Set(['oxc', 'deepscan']);
10+
export const ignoreScope = new Set(['oxc', 'deepscan', 'security']);
1111

1212
// these are the mappings from the scope in the rules.rs to the eslint scope
1313
// only used for the scopes where the directory structure doesn't reflect the eslint scope

src/__snapshots__/rules-by-scope.spec.ts.snap

-3
Original file line numberDiff line numberDiff line change
@@ -1334,9 +1334,6 @@ exports[`contains all the oxlint rules 1`] = `
13341334
"rest-spread-spacing": [
13351335
0,
13361336
],
1337-
"security/api-keys": [
1338-
0,
1339-
],
13401337
"semi": [
13411338
0,
13421339
],

src/rules-by-category.ts

-1
Original file line numberDiff line numberDiff line change
@@ -338,7 +338,6 @@ const correctnessRules = {
338338
'react/no-render-return-value': 'off',
339339
'react/no-string-refs': 'off',
340340
'react/void-dom-elements-no-children': 'off',
341-
'security/api-keys': 'off',
342341
'@typescript-eslint/no-duplicate-enum-values': 'off',
343342
'@typescript-eslint/no-extra-non-null-assertion': 'off',
344343
'@typescript-eslint/no-misused-new': 'off',

src/rules-by-scope.ts

-5
Original file line numberDiff line numberDiff line change
@@ -363,10 +363,6 @@ const reactPerfRules = {
363363
'react-perf/jsx-no-new-object-as-prop': 'off',
364364
} as const;
365365

366-
const securityRules = {
367-
'security/api-keys': 'off',
368-
} as const;
369-
370366
const treeShakingRules = {
371367
'tree-shaking/no-side-effects-in-initialization': 'off',
372368
} as const;
@@ -482,7 +478,6 @@ export {
482478
promiseRules,
483479
reactRules,
484480
reactPerfRules,
485-
securityRules,
486481
treeShakingRules,
487482
unicornRules,
488483
vitestRules,

0 commit comments

Comments
 (0)