set no-eval
This commit is contained in:
@@ -38,7 +38,13 @@
|
|||||||
],
|
],
|
||||||
"globals": {
|
"globals": {
|
||||||
"GM": true
|
"GM": true
|
||||||
|
},
|
||||||
|
"no-eval": [
|
||||||
|
"error",
|
||||||
|
{
|
||||||
|
"allowIndirect": true
|
||||||
}
|
}
|
||||||
|
]
|
||||||
},
|
},
|
||||||
"browserslist": {
|
"browserslist": {
|
||||||
"production": [
|
"production": [
|
||||||
|
|||||||
@@ -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";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 入口函数
|
* 入口函数
|
||||||
|
|||||||
Reference in New Issue
Block a user