crabatool 1.0.429 → 1.0.430
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/tool/checkjs.js +5 -0
package/package.json
CHANGED
package/tool/checkjs.js
CHANGED
|
@@ -545,6 +545,11 @@ async function eslintCheck(content) {
|
|
|
545
545
|
options.overrideConfig.globals[namespace] = 'readonly';
|
|
546
546
|
});
|
|
547
547
|
}
|
|
548
|
+
// 混淆后的变量通配符
|
|
549
|
+
for (var i = 0; i < 300; i++) {
|
|
550
|
+
var key = '_Z_' + i;
|
|
551
|
+
options.overrideConfig.globals[key] = 'writable';
|
|
552
|
+
}
|
|
548
553
|
|
|
549
554
|
var lint = new eslint.ESLint(options);
|
|
550
555
|
var res = await lint.lintText(content);
|