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 2.0.0 to 2.0.1

2

package.json
{
"name": "eslint-plugin-html",
"version": "2.0.0",
"version": "2.0.1",
"description": "An ESLint plugin to extract and lint scripts from HTML files.",

@@ -5,0 +5,0 @@ "license": "ISC",

@@ -30,2 +30,7 @@ eslint-plugin-html

Note: by default, when executing the `eslint` command on a directory, only `.js` files will be
linted. You will have to specify extra extensions with the `--ext` option. Example: `eslint --ext
.html,.js src` will lint both `.html` and `.js` files in the `src` directory. See [ESLint
documentation](http://eslint.org/docs/user-guide/command-line-interface#ext).
XML support

@@ -32,0 +37,0 @@ -----------

@@ -390,1 +390,8 @@ /*eslint-env es6*/

})
it("handles empty input", () => {
test({
input: "",
output: "",
})
})

@@ -7,2 +7,4 @@ "use strict"

function iterateScripts(code, options, onChunk) {
if (!code) return
const xmlMode = options.xmlMode

@@ -9,0 +11,0 @@ const isJavaScriptMIMEType = options.isJavaScriptMIMEType || (() => true)

@@ -150,3 +150,3 @@ "use strict"

filenameOrOptions
const extension = path.extname(filename)
const extension = path.extname(filename || "")

@@ -153,0 +153,0 @@ const pluginSettings = getPluginSettings(config.settings || {})

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