eslint-plugin-html
Advanced tools
Comparing version 2.0.0 to 2.0.1
{ | ||
"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 || {}) |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
46529
1257
133