Socket
Socket
Sign inDemoInstall

eslint-plugin-html

Package Overview
Dependencies
Maintainers
1
Versions
58
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eslint-plugin-html - npm Package Compare versions

Comparing version 1.0.2 to 1.0.3

2

package.json
{
"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()
};
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc