Skip to content

Commit a91b15f

Browse files
committed
eslint: do not warn about "object injection"
We are using that pattern all over the place, and unless an attacker gets write access to the `gitgitgadget/git` repository (in which case there are much easier ways to wreak havoc than to go through GitGitGadget), there is no way to inject anything. Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
1 parent 4580e1e commit a91b15f

File tree

2 files changed

+1
-1
lines changed

2 files changed

+1
-1
lines changed

eslint.config.mjs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,7 @@ export default tseslint.config(
124124
"prettier/prettier": "warn",
125125
radix: "error",
126126
"use-isnan": "error",
127+
"security/detect-object-injection": "off",
127128
},
128129
},
129130
{

lib/git-notes.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
/* eslint-disable security/detect-object-injection */
21
import { emptyBlobName, git, revParse } from "./git.js";
32
import { fromJSON, toJSON } from "./json-util.js";
43
import { sleep } from "./sleep.js";

0 commit comments

Comments
 (0)