crabatool 1.0.101 → 1.0.102
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 +3 -0
package/package.json
CHANGED
package/tool/checkjs.js
CHANGED
|
@@ -103,6 +103,9 @@ module.exports.start = async function() {
|
|
|
103
103
|
} else if (item.ruleId.indexOf('native-ie') > -1 || item.ruleId.indexOf('no-dupe-keys') > -1) {
|
|
104
104
|
list = ieList;
|
|
105
105
|
} else if (item.ruleId.indexOf('no-unused-vars') > -1) {
|
|
106
|
+
if (item.message && (item.message.indexOf("'sender'") > -1 || item.message.indexOf("'eventArgs'") > -1)) {
|
|
107
|
+
return;
|
|
108
|
+
}
|
|
106
109
|
list = infoList;
|
|
107
110
|
}
|
|
108
111
|
list.push({ char: item.ruleId + ',' + item.messageId, line: item.line, endLine: item.endLine, column: item.column, msg: item.message });
|