eslint-plugin-html
Advanced tools
Comparing version 1.0.2 to 1.0.3
{ | ||
"name": "eslint-plugin-html", | ||
"version": "1.0.2", | ||
"version": "1.0.3", | ||
"description": "An ESLint plugin to extract and lint scripts from HTML files.", | ||
@@ -5,0 +5,0 @@ "repository": { |
@@ -6,3 +6,3 @@ eslint-plugin-html | ||
Supported HTML extensions: `.html`, `.xhtml`, `.htm` | ||
Supported HTML extensions: `.html`, `.xhtml`, `.htm`, `.vue`, `.hbs` | ||
@@ -9,0 +9,0 @@ Only script tags with no type attribute or with a type containing `text/javascript` will be linted. |
@@ -6,2 +6,3 @@ "use strict"; | ||
var currentInfos; | ||
var allowedExtensions = ["htm", "html", "xhtml", "vue", "hbs"]; | ||
@@ -28,9 +29,14 @@ var htmlProcessor = { | ||
var getProcessors = function() { | ||
var processors = {}; | ||
allowedExtensions.forEach(function(ext) { | ||
processors["." + ext] = htmlProcessor; | ||
}); | ||
return processors; | ||
}; | ||
module.exports = { | ||
processors: { | ||
".html": htmlProcessor, | ||
".xhtml": htmlProcessor, | ||
".htm": htmlProcessor, | ||
".vue": htmlProcessor | ||
} | ||
processors: getProcessors() | ||
}; |
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
238
0
6800
7