Skip to content

Commit

Permalink
Disable security/detect-object-injection rule (#928)
Browse files Browse the repository at this point in the history
  • Loading branch information
connor-baer authored Jan 24, 2024
1 parent 7a39c58 commit eb43166
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 0 deletions.
28 changes: 28 additions & 0 deletions src/configs/eslint/__snapshots__/config.spec.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -2908,6 +2908,7 @@ exports[`eslint > with options > should return a config for { language: 'JavaScr
"object-curly-newline": "off",
"operator-linebreak": "off",
"quote-props": "off",
"security/detect-object-injection": "off",
},
"settings": {
"import/resolver": {
Expand Down Expand Up @@ -3124,6 +3125,7 @@ exports[`eslint > with options > should return a config for { language: 'JavaScr
],
},
],
"security/detect-object-injection": "off",
},
"settings": {
"import/resolver": {
Expand Down Expand Up @@ -3346,6 +3348,7 @@ exports[`eslint > with options > should return a config for { language: 'JavaScr
"object-curly-newline": "off",
"operator-linebreak": "off",
"quote-props": "off",
"security/detect-object-injection": "off",
},
"settings": {
"import/resolver": {
Expand Down Expand Up @@ -3549,6 +3552,7 @@ exports[`eslint > with options > should return a config for { language: 'JavaScr
"object-curly-newline": "off",
"operator-linebreak": "off",
"quote-props": "off",
"security/detect-object-injection": "off",
},
"settings": {
"import/resolver": {
Expand Down Expand Up @@ -3761,6 +3765,7 @@ exports[`eslint > with options > should return a config for { language: 'JavaScr
"object-curly-newline": "off",
"operator-linebreak": "off",
"quote-props": "off",
"security/detect-object-injection": "off",
},
"settings": {
"import/resolver": {
Expand Down Expand Up @@ -3964,6 +3969,7 @@ exports[`eslint > with options > should return a config for { language: 'JavaScr
"object-curly-newline": "off",
"operator-linebreak": "off",
"quote-props": "off",
"security/detect-object-injection": "off",
},
"settings": {
"import/resolver": {
Expand Down Expand Up @@ -4183,6 +4189,7 @@ exports[`eslint > with options > should return a config for { language: 'JavaScr
"object-curly-newline": "off",
"operator-linebreak": "off",
"quote-props": "off",
"security/detect-object-injection": "off",
},
"settings": {
"import/resolver": {
Expand Down Expand Up @@ -4410,6 +4417,7 @@ exports[`eslint > with options > should return a config for { language: 'JavaScr
"quote-props": "off",
"react/display-name": "off",
"react/react-in-jsx-scope": "off",
"security/detect-object-injection": "off",
},
"settings": {
"import/resolver": {
Expand Down Expand Up @@ -4589,6 +4597,7 @@ exports[`eslint > with options > should return a config for { language: 'JavaScr
},
],
"react/react-in-jsx-scope": "off",
"security/detect-object-injection": "off",
},
"settings": {
"import/resolver": {
Expand Down Expand Up @@ -4774,6 +4783,7 @@ exports[`eslint > with options > should return a config for { language: 'JavaScr
"quote-props": "off",
"react/display-name": "off",
"react/react-in-jsx-scope": "off",
"security/detect-object-injection": "off",
},
"settings": {
"import/resolver": {
Expand Down Expand Up @@ -4940,6 +4950,7 @@ exports[`eslint > with options > should return a config for { language: 'JavaScr
"quote-props": "off",
"react/display-name": "off",
"react/react-in-jsx-scope": "off",
"security/detect-object-injection": "off",
},
"settings": {
"import/resolver": {
Expand Down Expand Up @@ -5115,6 +5126,7 @@ exports[`eslint > with options > should return a config for { language: 'JavaScr
"quote-props": "off",
"react/display-name": "off",
"react/react-in-jsx-scope": "off",
"security/detect-object-injection": "off",
},
"settings": {
"import/resolver": {
Expand Down Expand Up @@ -5281,6 +5293,7 @@ exports[`eslint > with options > should return a config for { language: 'JavaScr
"quote-props": "off",
"react/display-name": "off",
"react/react-in-jsx-scope": "off",
"security/detect-object-injection": "off",
},
"settings": {
"import/resolver": {
Expand Down Expand Up @@ -5463,6 +5476,7 @@ exports[`eslint > with options > should return a config for { language: 'JavaScr
"quote-props": "off",
"react/display-name": "off",
"react/react-in-jsx-scope": "off",
"security/detect-object-injection": "off",
},
"settings": {
"import/resolver": {
Expand Down Expand Up @@ -10355,6 +10369,7 @@ exports[`eslint > with options > should return a config for { language: 'TypeScr
"object-curly-newline": "off",
"operator-linebreak": "off",
"quote-props": "off",
"security/detect-object-injection": "off",
},
"settings": {
"import/resolver": {
Expand Down Expand Up @@ -10702,6 +10717,7 @@ exports[`eslint > with options > should return a config for { language: 'TypeScr
],
},
],
"security/detect-object-injection": "off",
},
"settings": {
"import/resolver": {
Expand Down Expand Up @@ -11055,6 +11071,7 @@ exports[`eslint > with options > should return a config for { language: 'TypeScr
"object-curly-newline": "off",
"operator-linebreak": "off",
"quote-props": "off",
"security/detect-object-injection": "off",
},
"settings": {
"import/resolver": {
Expand Down Expand Up @@ -11389,6 +11406,7 @@ exports[`eslint > with options > should return a config for { language: 'TypeScr
"object-curly-newline": "off",
"operator-linebreak": "off",
"quote-props": "off",
"security/detect-object-injection": "off",
},
"settings": {
"import/resolver": {
Expand Down Expand Up @@ -11732,6 +11750,7 @@ exports[`eslint > with options > should return a config for { language: 'TypeScr
"object-curly-newline": "off",
"operator-linebreak": "off",
"quote-props": "off",
"security/detect-object-injection": "off",
},
"settings": {
"import/resolver": {
Expand Down Expand Up @@ -12066,6 +12085,7 @@ exports[`eslint > with options > should return a config for { language: 'TypeScr
"object-curly-newline": "off",
"operator-linebreak": "off",
"quote-props": "off",
"security/detect-object-injection": "off",
},
"settings": {
"import/resolver": {
Expand Down Expand Up @@ -12416,6 +12436,7 @@ exports[`eslint > with options > should return a config for { language: 'TypeScr
"object-curly-newline": "off",
"operator-linebreak": "off",
"quote-props": "off",
"security/detect-object-injection": "off",
},
"settings": {
"import/resolver": {
Expand Down Expand Up @@ -12774,6 +12795,7 @@ exports[`eslint > with options > should return a config for { language: 'TypeScr
"quote-props": "off",
"react/display-name": "off",
"react/react-in-jsx-scope": "off",
"security/detect-object-injection": "off",
},
"settings": {
"import/resolver": {
Expand Down Expand Up @@ -13084,6 +13106,7 @@ exports[`eslint > with options > should return a config for { language: 'TypeScr
},
],
"react/react-in-jsx-scope": "off",
"security/detect-object-injection": "off",
},
"settings": {
"import/resolver": {
Expand Down Expand Up @@ -13400,6 +13423,7 @@ exports[`eslint > with options > should return a config for { language: 'TypeScr
"quote-props": "off",
"react/display-name": "off",
"react/react-in-jsx-scope": "off",
"security/detect-object-injection": "off",
},
"settings": {
"import/resolver": {
Expand Down Expand Up @@ -13697,6 +13721,7 @@ exports[`eslint > with options > should return a config for { language: 'TypeScr
"quote-props": "off",
"react/display-name": "off",
"react/react-in-jsx-scope": "off",
"security/detect-object-injection": "off",
},
"settings": {
"import/resolver": {
Expand Down Expand Up @@ -14003,6 +14028,7 @@ exports[`eslint > with options > should return a config for { language: 'TypeScr
"quote-props": "off",
"react/display-name": "off",
"react/react-in-jsx-scope": "off",
"security/detect-object-injection": "off",
},
"settings": {
"import/resolver": {
Expand Down Expand Up @@ -14300,6 +14326,7 @@ exports[`eslint > with options > should return a config for { language: 'TypeScr
"quote-props": "off",
"react/display-name": "off",
"react/react-in-jsx-scope": "off",
"security/detect-object-injection": "off",
},
"settings": {
"import/resolver": {
Expand Down Expand Up @@ -14613,6 +14640,7 @@ exports[`eslint > with options > should return a config for { language: 'TypeScr
"quote-props": "off",
"react/display-name": "off",
"react/react-in-jsx-scope": "off",
"security/detect-object-injection": "off",
},
"settings": {
"import/resolver": {
Expand Down
2 changes: 2 additions & 0 deletions src/configs/eslint/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -265,6 +265,8 @@ function customizeEnvironments(environments?: Environment[]) {
'node/no-missing-import': 'off',
// This rule is already covered by similar ESLint rules.
'node/no-extraneous-import': 'off',
// This rule produces too many false positives.
'security/detect-object-injection': 'off',
},
overrides: [
{
Expand Down

0 comments on commit eb43166

Please sign in to comment.