set no-eval

This commit is contained in:
Gabe Yuan
2023-08-29 00:42:11 +08:00
parent e80ede14fb
commit 64cd55fe58
2 changed files with 8 additions and 2 deletions

View File

@@ -38,7 +38,13 @@
], ],
"globals": { "globals": {
"GM": true "GM": true
} },
"no-eval": [
"error",
{
"allowIndirect": true
}
]
}, },
"browserslist": { "browserslist": {
"production": [ "production": [

View File

@@ -9,7 +9,7 @@ import { trySyncAllSubRules } from "./libs/rules";
import { isGm } from "./libs/browser"; import { isGm } from "./libs/browser";
import { MSG_TRANS_TOGGLE, MSG_TRANS_PUTRULE } from "./config"; import { MSG_TRANS_TOGGLE, MSG_TRANS_PUTRULE } from "./config";
import { isIframe } from "./libs/iframe"; import { isIframe } from "./libs/iframe";
import { genEventName, handlePing, injectScript } from "./libs/gm"; import { handlePing, injectScript } from "./libs/gm";
/** /**
* 入口函数 * 入口函数