@hao360/eslint-plugin-cube
Advanced tools
+12
-0
@@ -6,4 +6,16 @@ "use strict"; | ||
| module.exports.rules = requireIndex(__dirname + "/rules"); | ||
| module.exports.processors = { | ||
| // Fix no parsing of HTML tags. | ||
| ".tpl": { | ||
| preprocess: function(text, filename) { | ||
| const tpl = `<div>${text}</div>`; | ||
| return [tpl]; | ||
| }, | ||
| postprocess: function(messages, filename) { | ||
| return [].concat(...messages); | ||
| } | ||
| } | ||
| }; | ||
+1
-1
| { | ||
| "name": "@hao360/eslint-plugin-cube", | ||
| "version": "0.1.2", | ||
| "version": "0.1.3", | ||
| "description": "cube rule validation plugin", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
32984
0.87%712
1.71%