eslint-plugin-ideal
Advanced tools
Comparing version 0.0.2 to 0.0.3
@@ -12,8 +12,13 @@ /** | ||
var regex = /\t/; | ||
var lines = context.getSourceLines(); | ||
if(regex.test(context.getSource())){ | ||
context.report(node, "File contains tabs."); | ||
} | ||
lines.forEach(function(line, index){ | ||
var match = regex.exec(line); | ||
if(match){ | ||
context.report(node, {line: index + 1, column: match.index + 1}, "Line has tabs."); | ||
} | ||
}); | ||
} | ||
}; | ||
}; |
{ | ||
"name": "eslint-plugin-ideal", | ||
"version": "0.0.2", | ||
"version": "0.0.3", | ||
"description": "ESLint rules", | ||
@@ -35,3 +35,4 @@ "license": "MIT", | ||
"files": [ | ||
"lib" | ||
"lib", | ||
"index.js" | ||
], | ||
@@ -38,0 +39,0 @@ "keywords": [ |
3190
5
32