Bug 1362947 - Upgrade eslint-plugin-html to 2.0.3 to pick up --fix support. r=jaws

MozReview-Commit-ID: 5fVG7akPnGM

--HG--
extra : rebase_source : f1b9eeb1b2048b551ee8c0a596e6395d0031cc4d
This commit is contained in:
Mark Banner 2017-05-08 10:29:47 +01:00
parent 2a458fb433
commit 256aeb441c
72 changed files with 110 additions and 102 deletions

View File

@ -55,6 +55,8 @@ b2g/locales/en-US/b2g-l10n.js
browser/app/**
browser/branding/**/firefox-branding.js
browser/base/content/test/general/file_csp_block_all_mixedcontent.html
# Gzipped test file.
browser/base/content/test/general/gZipOfflineChild.html
browser/base/content/test/urlbar/file_blank_but_not_blank.html
browser/base/content/newtab/**
# Test files that are really json not js, and don't need to be linted.

View File

@ -21,6 +21,12 @@ module.exports = {
"no-implied-eval": "error",
"no-eval": "error",
},
// The html plugin is enabled via a command line option on eslint. To avoid
// bad interactions with the xml preprocessor in eslint-plugin-mozilla, we
// turn off processing of the html plugin for .xml files.
"settings": {
"html/xml-extensions": [ ".xhtml" ]
},
"env": {
"es6": true
},

View File

@ -10,4 +10,4 @@
Download
</a>
</body>
</html>
</html>

View File

@ -15,4 +15,4 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=575561
<a href="data:text/html,<!DOCTYPE html><html><body>Another Page</body></html>">data: URI</a>
<iframe src="app_subframe_bug575561.html"></iframe>
</body>
</html>
</html>

View File

@ -9,4 +9,4 @@
<body>
bug 678392 test page 1
</body>
</html>
</html>

View File

@ -9,4 +9,4 @@
<body>
bug 678392 test page 2
</body>
</html>
</html>

View File

@ -1,3 +1,3 @@
<body>
<a href="#" onclick="window.open('close_beforeunload.html', '_blank')">Open second tab</a>
</body>
</body>

View File

@ -26,4 +26,4 @@
<input id="input_datetime-local" type="datetime-local">
<input id="input_readonly" readonly="true">
</body>
</html>
</html>

View File

@ -8,4 +8,4 @@
<body>
This is a test page
</body>
</html>
</html>

View File

@ -8,4 +8,4 @@
<body>
Favicon!!
</body>
</html>
</html>

View File

@ -8,4 +8,4 @@
<body>
Third Party Favicon!!
</body>
</html>
</html>

View File

@ -8,4 +8,4 @@
<body>
Third Party Favicon!!
</body>
</html>
</html>

View File

@ -1,2 +1,2 @@
<h1>I'm just a support file</h1>
<p>I get loaded to do permission testing.</p>
<p>I get loaded to do permission testing.</p>

View File

@ -1 +1 @@
<html><body></body></html>
<html><body></body></html>

View File

@ -8,4 +8,4 @@
<body>
Favicon!!
</body>
</html>
</html>

View File

@ -1 +1 @@
<html><body></body></html>
<html><body></body></html>

View File

@ -12,4 +12,4 @@
<option value="val5">Five</option>
<option value="val6">Six</option>
<option value="val7">Seven</option>
</select>
</select>

View File

@ -4,4 +4,4 @@
<!-- input events -->
<h3>Input fields</h3>
<input type="text" id="input1">
<input type="text" name="input2">
<input type="text" name="input2">

View File

@ -7,4 +7,4 @@ var newLocation = window.location.toString().replace("restore_redirect_js.html",
window.location.replace(newLocation);
</script>
</head>
</html>
</html>

View File

@ -21,4 +21,4 @@
<button id="edit" disabled="disabled">Edit</button>
</div>
</body>
</html>
</html>

View File

@ -2,4 +2,4 @@
<meta charset="utf-8">
<style>
body {background: rgb(0, 128, 0);}
</style>
</style>

View File

@ -45,4 +45,4 @@ window.addEventListener("message", function(event) {
getBlobAsDataURL(event.data).then(setPreviewBG).then(sendReceivedEvent);
});
</script>
</script>

View File

@ -54,4 +54,4 @@
<body>
<div></div>
</body>
</html>
</html>

View File

@ -58,4 +58,4 @@
</head>
<body>
</body>
</html>
</html>

View File

@ -31,4 +31,4 @@
}
</script>
</body>
</html>
</html>

View File

@ -12,4 +12,4 @@
</ul>
</div>
</body>
</html>
</html>

View File

@ -8,4 +8,4 @@
</li>
</ul>
</body>
</html>
</html>

View File

@ -22,4 +22,4 @@
<img src="chrome://branding/content/about-logo.png" />
</div>
</body>
</html>
</html>

View File

@ -8,4 +8,4 @@
<body>
<div>invalid source map</div>
</body>
</html>
</html>

View File

@ -19,4 +19,4 @@
</div>
<iframe src="data:text/html;charset=utf-8,Test iframe content"></iframe>
</body>
</html>
</html>

View File

@ -7,4 +7,4 @@
<body>
This HTTP response has CSP headers.
</body>
</html>
</html>

View File

@ -3,4 +3,4 @@
<embed src="doc_inspector_menu.html" type="application/html"
width="422" height="258"></embed>
</object>
</body></html>
</body></html>

View File

@ -117,4 +117,4 @@
</div>
</div>
</body></html>
</body></html>

View File

@ -17,4 +17,4 @@
</div>
</body>
</html>
</html>

View File

@ -13,4 +13,4 @@
<circle cx="0" cy="0" r="50" class="class2" />
</svg>
</body>
</html>
</html>

View File

@ -18,4 +18,4 @@
</ul>
</div>
</body>
</html>
</html>

View File

@ -7,4 +7,4 @@
<body>
<div id="id5"></div>
</body>
</html>
</html>

View File

@ -10,4 +10,4 @@
navigator.geolocation.getCurrentPosition(function (pos) {});
</script>
</body>
</html>
</html>

View File

@ -62,4 +62,4 @@
</div>
<span id="inline">Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vivamus porttitor luctus sem id scelerisque. Cras quis velit sed risus euismod lacinia. Donec viverra enim eu ligula efficitur, quis vulputate metus cursus. Duis sed interdum risus. Ut blandit velit vitae faucibus efficitur. Lorem ipsum dolor sit amet, consectetur adipiscing elit.<br/ >
Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Sed vitae dolor metus. Aliquam sed velit sit amet libero vestibulum aliquam vel a lorem. Integer eget ex eget justo auctor ullamcorper.<br/ >
Praesent tristique maximus lacus, nec ultricies neque ultrices non. Phasellus vel lobortis justo. </span>
Praesent tristique maximus lacus, nec ultricies neque ultrices non. Phasellus vel lobortis justo. </span>

View File

@ -18,4 +18,4 @@ this: is-the-part-we-want;</pre>
</body>
</html>
</html>

View File

@ -9,4 +9,4 @@
<p>This is not the summary or the syntax.</p>
</body>
</html>
</html>

View File

@ -18,4 +18,4 @@ this: is-the-part-we-want;</pre>
</body>
</html>
</html>

View File

@ -20,4 +20,4 @@ this: is-the-part-we-want;</pre>
</body>
</html>
</html>

View File

@ -9,4 +9,4 @@
Testing style editor media sidebar with source maps
</div>
</body>
</html>
</html>

View File

@ -10,4 +10,4 @@
Testing style editor media sidebar
</div>
</body>
</html>
</html>

View File

@ -2,4 +2,4 @@
<div>
Page with no stylesheets
</div>
</html>
</html>

View File

@ -65,4 +65,4 @@ async function testInTreeTextNode(consoleClient) {
<pre id="test">
</pre>
</body>
</html>
</html>

54
npm-shrinkwrap.json generated
View File

@ -19,9 +19,9 @@
}
},
"ajv": {
"version": "4.11.6",
"version": "4.11.8",
"from": "ajv@>=4.7.0 <5.0.0",
"resolved": "https://registry.npmjs.org/ajv/-/ajv-4.11.6.tgz"
"resolved": "https://registry.npmjs.org/ajv/-/ajv-4.11.8.tgz"
},
"ajv-keywords": {
"version": "1.5.1",
@ -80,7 +80,7 @@
},
"brace-expansion": {
"version": "1.1.7",
"from": "brace-expansion@>=1.0.0 <2.0.0",
"from": "brace-expansion@>=1.1.7 <2.0.0",
"resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.7.tgz"
},
"buffer-shims": {
@ -149,9 +149,9 @@
"resolved": "https://registry.npmjs.org/d/-/d-1.0.0.tgz"
},
"debug": {
"version": "2.6.3",
"version": "2.6.6",
"from": "debug@>=2.1.1 <3.0.0",
"resolved": "https://registry.npmjs.org/debug/-/debug-2.6.3.tgz"
"resolved": "https://registry.npmjs.org/debug/-/debug-2.6.6.tgz"
},
"deep-is": {
"version": "0.1.3",
@ -191,14 +191,14 @@
"resolved": "https://registry.npmjs.org/domelementtype/-/domelementtype-1.3.0.tgz"
},
"domhandler": {
"version": "2.3.0",
"version": "2.4.1",
"from": "domhandler@>=2.3.0 <3.0.0",
"resolved": "https://registry.npmjs.org/domhandler/-/domhandler-2.3.0.tgz"
"resolved": "https://registry.npmjs.org/domhandler/-/domhandler-2.4.1.tgz"
},
"domutils": {
"version": "1.5.1",
"version": "1.6.2",
"from": "domutils@>=1.5.1 <2.0.0",
"resolved": "https://registry.npmjs.org/domutils/-/domutils-1.5.1.tgz"
"resolved": "https://registry.npmjs.org/domutils/-/domutils-1.6.2.tgz"
},
"entities": {
"version": "1.1.1",
@ -261,9 +261,9 @@
"resolved": "https://registry.npmjs.org/eslint/-/eslint-3.19.0.tgz"
},
"eslint-plugin-html": {
"version": "1.5.2",
"from": "eslint-plugin-html@1.5.2",
"resolved": "https://registry.npmjs.org/eslint-plugin-html/-/eslint-plugin-html-1.5.2.tgz"
"version": "2.0.3",
"from": "eslint-plugin-html@2.0.3",
"resolved": "https://registry.npmjs.org/eslint-plugin-html/-/eslint-plugin-html-2.0.3.tgz"
},
"eslint-plugin-react": {
"version": "6.10.3",
@ -278,9 +278,9 @@
}
},
"espree": {
"version": "3.4.1",
"version": "3.4.3",
"from": "espree@>=3.4.0 <4.0.0",
"resolved": "https://registry.npmjs.org/espree/-/espree-3.4.1.tgz"
"resolved": "https://registry.npmjs.org/espree/-/espree-3.4.3.tgz"
},
"esprima": {
"version": "3.1.3",
@ -405,9 +405,9 @@
"resolved": "https://registry.npmjs.org/htmlparser2/-/htmlparser2-3.9.2.tgz"
},
"ignore": {
"version": "3.2.7",
"version": "3.3.0",
"from": "ignore@>=3.2.0 <4.0.0",
"resolved": "https://registry.npmjs.org/ignore/-/ignore-3.2.7.tgz"
"resolved": "https://registry.npmjs.org/ignore/-/ignore-3.3.0.tgz"
},
"imurmurhash": {
"version": "0.1.4",
@ -435,9 +435,9 @@
"resolved": "https://registry.npmjs.org/inquirer/-/inquirer-0.12.0.tgz"
},
"interpret": {
"version": "1.0.2",
"version": "1.0.3",
"from": "interpret@>=1.0.0 <2.0.0",
"resolved": "https://registry.npmjs.org/interpret/-/interpret-1.0.2.tgz"
"resolved": "https://registry.npmjs.org/interpret/-/interpret-1.0.3.tgz"
},
"is-callable": {
"version": "1.1.3",
@ -525,9 +525,9 @@
"resolved": "https://registry.npmjs.org/jsonpointer/-/jsonpointer-4.0.1.tgz"
},
"jsx-ast-utils": {
"version": "1.4.0",
"version": "1.4.1",
"from": "jsx-ast-utils@>=1.3.4 <2.0.0",
"resolved": "https://registry.npmjs.org/jsx-ast-utils/-/jsx-ast-utils-1.4.0.tgz"
"resolved": "https://registry.npmjs.org/jsx-ast-utils/-/jsx-ast-utils-1.4.1.tgz"
},
"levn": {
"version": "0.3.0",
@ -540,9 +540,9 @@
"resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.4.tgz"
},
"minimatch": {
"version": "3.0.3",
"version": "3.0.4",
"from": "minimatch@>=3.0.2 <4.0.0",
"resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.0.3.tgz"
"resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.0.4.tgz"
},
"minimist": {
"version": "0.0.8",
@ -555,9 +555,9 @@
"resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-0.5.1.tgz"
},
"ms": {
"version": "0.7.2",
"from": "ms@0.7.2",
"resolved": "https://registry.npmjs.org/ms/-/ms-0.7.2.tgz"
"version": "0.7.3",
"from": "ms@0.7.3",
"resolved": "https://registry.npmjs.org/ms/-/ms-0.7.3.tgz"
},
"mute-stream": {
"version": "0.0.5",
@ -680,9 +680,9 @@
"resolved": "https://registry.npmjs.org/require-uncached/-/require-uncached-1.0.3.tgz"
},
"resolve": {
"version": "1.3.2",
"version": "1.3.3",
"from": "resolve@>=1.1.6 <2.0.0",
"resolved": "https://registry.npmjs.org/resolve/-/resolve-1.3.2.tgz"
"resolved": "https://registry.npmjs.org/resolve/-/resolve-1.3.3.tgz"
},
"resolve-from": {
"version": "1.0.1",

View File

@ -5,7 +5,7 @@
"license": "MPL-2.0",
"dependencies": {
"eslint": "3.19.0",
"eslint-plugin-html": "1.5.2",
"eslint-plugin-html": "2.0.3",
"eslint-plugin-react": "6.10.3",
"escope": "^3.6.0",
"espree": "^3.4.0",

View File

@ -5,4 +5,4 @@
<body>
Redirecting by meta tag...
</body>
</html>
</html>

View File

@ -21,7 +21,7 @@
window.location = "https://example.com/tests/security/manager/ssl/tests/mochitest/mixedcontent/nocontent.sjs";
window.setTimeout(function() {
isSecurityState("insecure", "location.href doesn't effect the security state");
is(document.body.innerHTML, "This is an unsecure page!", "Document has not changed content");
is(document.body.innerHTML, "This is an unsecure page!\n", "Document has not changed content");
finish();
}, 1000);
}
@ -29,11 +29,11 @@
function afterNavigationTest()
{
isSecurityState("insecure", "still not secure after navigation");
is(document.body.innerHTML, "This is an unsecure page!", "Document has not changed content");
is(document.body.innerHTML, "This is an unsecure page!\n", "Document has not changed content");
finish();
}
</script>
</head>
<body>This is an unsecure page!</body></html>
<body>This is an unsecure page!</body></html>

View File

@ -31,7 +31,7 @@
function afterNavigationTest()
{
is(document.getElementById("buddy").innerHTML, "", "innerHTML back to previous");
is(document.getElementById("buddy").innerHTML, "\n", "innerHTML back to previous");
isSecurityState("secure");
finish();
}
@ -39,4 +39,4 @@
</script>
</head>
<body id="buddy"></body></html>
<body id="buddy"></body></html>

View File

@ -29,7 +29,7 @@
function afterNavigationTest()
{
is(document.getElementById("buddy").innerHTML, "", "innerHTML back to previous");
is(document.getElementById("buddy").innerHTML, "\n", "innerHTML back to previous");
isSecurityState("secure");
finish();
}
@ -37,4 +37,4 @@
</script>
</head>
<body id="buddy"></body></html>
<body id="buddy"></body></html>

View File

@ -35,4 +35,4 @@
<iframe src="https://example.com/tests/security/manager/ssl/tests/mochitest/mixedcontent/iframeMetaRedirect.html"></iframe>
</body>
</html>

View File

@ -2,5 +2,5 @@
<html lang=en>
<head><meta charset=utf-8><title>Simple App</title></head>
<body><p>This is a Simple App.</body>
</html>
</html>

View File

@ -17,4 +17,4 @@
window.parent.postMessage(response, "*");
</script>
</head>
</html>
</html>

View File

@ -10,4 +10,4 @@
<body>
<p><a href="461710_visited_page.html" id="link">Link to the second visited page</a></p>
</body>
</html>
</html>

View File

@ -10,4 +10,4 @@
<body>
<p><a href="461710_visited_page.html" id="link">Link to the third visited page</a></p>
</body>
</html>
</html>

View File

@ -10,4 +10,4 @@
<body>
<p><a href="461710_visited_page.html" id="link">Link to the visited page</a></p>
</body>
</html>
</html>

View File

@ -6,4 +6,4 @@
<body>
<p>This page is marked as visited</p>
</body>
</html>
</html>

View File

@ -13,4 +13,4 @@
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec a diam lectus. Sed sit amet ipsum mauris. Maecenas congue ligula ac quam viverra nec consectetur ante hendrerit. Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aenean ut gravida lorem. Ut turpis felis, pulvinar a semper sed, adipiscing id dolor. Pellentesque auctor nisi id magna consequat sagittis. Curabitur dapibus enim sit amet elit pharetra tincidunt feugiat nisl imperdiet. Ut convallis libero in urna ultrices accumsan. Donec sed odio eros. Donec viverra mi quis quam pulvinar at malesuada arcu rhoncus. Cum sociis natoque penatibus et magnis dis parturient montes, nascetu</p>
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec a diam lectus. Sed sit amet ipsum mauris. Maecenas congue ligula ac quam viverra nec consectetur ante hendrerit. Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aenean ut gravida lorem. Ut turpis felis, pulvinar a semper sed, adipiscing id dolor. Pellentesque auctor nisi id magna consequat sagittis. Curabitur dapibus enim sit amet elit pharetra tincidunt feugiat nisl imperdiet. Ut convallis libero in urna ultrices accumsan. Donec sed odio eros. Donec viverra mi quis quam pulvinar at malesuada arcu rhoncus. Cum sociis natoque penatibus et magnis dis parturient montes, nascetu</p>
</body>
</html>
</html>

View File

@ -1 +1 @@
<a href="file_bug464222.html">I'm a link</a>
<a href="file_bug464222.html">I'm a link</a>

View File

@ -10,4 +10,4 @@ by way of postMessage.
<script>
window.postMessage(window.sessionStorage.getItem("test-item"), "*");
</script>
</html>
</html>

View File

@ -11,4 +11,4 @@ passed.
<script>
window.opener.done(window.arguments[0]);
</script>
</html>
</html>

View File

@ -42,4 +42,4 @@ name result in new windows being opened.
});
</script>
</body>
</html>
</html>

View File

@ -35,4 +35,4 @@ Test that arguments can be passed to dialogs.
<pre id="test">
</pre>
</body>
</html>
</html>

View File

@ -53,4 +53,4 @@ that is opened reports itself as being modal.
<pre id="test">
</pre>
</body>
</html>
</html>

View File

@ -88,4 +88,4 @@ window.
});
</script>
</body>
</html>
</html>

View File

@ -41,4 +41,4 @@ same domain as the opener.
});
</script>
</body>
</html>
</html>

View File

@ -4,4 +4,4 @@
<meta content="utf-8" http-equiv="encoding">
</head>
<body>
<audio id="testAudio" src="audio.ogg" loop></audio>
<audio id="testAudio" src="audio.ogg" loop></audio>

View File

@ -21,4 +21,4 @@
<body>
<button id="start" onclick="start_webaudio()">Start</button>
<button id="stop" onclick="stop_webaudio()">Stop</button>
</body>
</body>

View File

@ -1,8 +1,8 @@
[
{
"size": 3009784,
"size": 3020742,
"visibility": "public",
"digest": "4819d3b7faf0f6bbbbf213246e7a5158f27fcaae9bd352f18d3476775931b1daca1bc4e20c589b3e8559d01e5022a4fd3708a96f2e480e354a4f9b247eab1ba6",
"digest": "ff65beda308192c9831a9c290182a5a314da3f4783f0e473ad4aa23f073773fee0b4b51ff39dbd6c3d4d88cd3aac5c0c6ee5ad91d0cf8c6facbf12a6505b8746",
"algorithm": "sha512",
"filename": "eslint.tar.gz"
}