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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/tool/checkjs.js +3 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "crabatool",
3
- "version": "1.0.101",
3
+ "version": "1.0.102",
4
4
  "description": "crabatool",
5
5
  "main": "index.js",
6
6
  "scripts": {
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 });