📁
SKYSHELL MANAGER
PHP v8.3.6
Create
Create
Path:
root
/
var
/
www
/
cstage
/
wp-includes
/
js
/
tinymce
/
themes
/
Name
Size
Perm
Actions
📁
inlite
-
0755
🗑️
🏷️
🔒
📁
modern
-
0755
🗑️
🏷️
🔒
📄
ms-files.php
6.83 KB
0444
🗑️
🏷️
⬇️
✏️
🔒
📄
wp-activate.php
6.83 KB
0444
🗑️
🏷️
⬇️
✏️
🔒
Edit: no-undefined-identifier.cjs
const getReferenceOrigin = require("../utils/get-reference-origin.cjs"); const isFromBabelTypes = require("../utils/is-from-babel-types.cjs"); function firstArgumentIsUndefinedString(argumentsArray) { return argumentsArray.length > 0 && argumentsArray[0].type === "Literal" && argumentsArray[0].value === "undefined"; } module.exports = { meta: { schema: [] }, create(context) { return { CallExpression(node) { const { callee } = node; const scope = context.getScope(); const origin = getReferenceOrigin(callee, scope); if (!origin) return; const { name } = origin; if ((name === "identifier" || name === "Identifier") && firstArgumentIsUndefinedString(node.arguments) && isFromBabelTypes(origin, scope)) { context.report(node, "Use path.scope.buildUndefinedNode() to create an undefined identifier directly."); } } }; } }; //# sourceMappingURL=no-undefined-identifier.cjs.map
Save