mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-08 19:04:45 +00:00
Bug 1825715 - Replace disabling of ESLint rule prettier/prettier with prettier-specific disabling (other). r=Gijs,necko-reviewers,credential-management-reviewers,devtools-reviewers,dimi
Differential Revision: https://phabricator.services.mozilla.com/D174217
This commit is contained in:
parent
ca074e93bc
commit
44fdf3c6b0
@ -1155,8 +1155,7 @@ export class ASRouterAdminInner extends React.PureComponent {
|
||||
>
|
||||
Unblock All Snippets
|
||||
</button>
|
||||
{/* eslint-disable-next-line prettier/prettier */}
|
||||
Show messages from {/* eslint-disable-next-line jsx-a11y/no-onchange */}
|
||||
Show messages from{" "}
|
||||
<select
|
||||
value={this.state.messageFilter}
|
||||
onChange={this.onChangeMessageFilter}
|
||||
|
@ -1711,7 +1711,7 @@ class ASRouterAdminInner extends (external_React_default()).PureComponent {
|
||||
return /*#__PURE__*/external_React_default().createElement("p", null, /*#__PURE__*/external_React_default().createElement("button", {
|
||||
className: "unblock-all ASRouterButton test-only",
|
||||
onClick: this.unblockAll
|
||||
}, "Unblock All Snippets"), "Show messages from ", /*#__PURE__*/external_React_default().createElement("select", {
|
||||
}, "Unblock All Snippets"), "Show messages from", " ", /*#__PURE__*/external_React_default().createElement("select", {
|
||||
value: this.state.messageFilter,
|
||||
onChange: this.onChangeMessageFilter
|
||||
}, /*#__PURE__*/external_React_default().createElement("option", {
|
||||
|
@ -41,7 +41,6 @@ export class Dropdown extends Component {
|
||||
|
||||
renderButton() {
|
||||
return (
|
||||
// eslint-disable-next-line prettier/prettier
|
||||
<button className="dropdown-button" onClick={this.toggleDropdown}>
|
||||
{this.props.icon}
|
||||
</button>
|
||||
|
@ -2,14 +2,12 @@
|
||||
|
||||
function handleRequest(request, response) {
|
||||
// The string "hello" repeated 10 times followed by newline. Compressed using gzip.
|
||||
/* eslint-disable prettier/prettier */
|
||||
// prettier-ignore
|
||||
let bytes = [0x1f, 0x8b, 0x08, 0x08, 0x4d, 0xe2, 0xf9, 0x54, 0x00, 0x03, 0x68,
|
||||
0x65, 0x6c, 0x6c, 0x6f, 0x00, 0xcb, 0x48, 0xcd, 0xc9, 0xc9, 0xcf,
|
||||
0x20, 0x85, 0xe0, 0x02, 0x00, 0xf5, 0x4b, 0x38, 0xcf, 0x33, 0x00,
|
||||
0x00, 0x00];
|
||||
|
||||
/* eslint-enable prettier/prettier */
|
||||
|
||||
response.setHeader("Content-Encoding", "gzip", false);
|
||||
response.setHeader("Content-Length", "" + bytes.length, false);
|
||||
response.setHeader("Content-Type", "text/plain", false);
|
||||
|
@ -7,7 +7,7 @@ const BinaryOutputStream = Components.Constructor(
|
||||
);
|
||||
|
||||
// this is simply a hex dump of a red square .PNG image
|
||||
/* eslint-disable prettier/prettier */
|
||||
// prettier-ignore
|
||||
const RED_SQUARE =
|
||||
[
|
||||
0x89, 0x50, 0x4E, 0x47, 0x0D, 0x0A, 0x1A, 0x0A, 0x00, 0x00,
|
||||
@ -22,7 +22,7 @@ const RED_SQUARE =
|
||||
0xA3, 0xC4, 0x01, 0x3F, 0x58, 0x1D, 0xEF, 0x27, 0x00, 0x00,
|
||||
0x00, 0x00, 0x49, 0x45, 0x4E, 0x44, 0xAE, 0x42, 0x60, 0x82
|
||||
];
|
||||
/* eslint-enable prettier/prettier */
|
||||
|
||||
function handleRequest(request, response) {
|
||||
let query = {};
|
||||
request.queryString.split("&").forEach(function(val) {
|
||||
|
@ -16,7 +16,7 @@ const kSafe = 1;
|
||||
const kUnsafe = 2;
|
||||
const kInvalid = 3;
|
||||
|
||||
/* eslint-disable prettier/prettier */
|
||||
// prettier-ignore
|
||||
let testCases = [
|
||||
// No IDN
|
||||
["www.google.com", "www.google.com", kSafe],
|
||||
@ -1012,7 +1012,6 @@ let testCases = [
|
||||
// Chromium's IDN encoder/decoder to generate test files loses an
|
||||
// advantage of having Python's IDN encode/decode the tests.
|
||||
];
|
||||
/* eslint-enable prettier/prettier */
|
||||
|
||||
function checkEquals(a, b, message, expectedFail) {
|
||||
if (!expectedFail) {
|
||||
|
@ -16,7 +16,6 @@
|
||||
* report the correct diagnostics in the caller scope.
|
||||
*/
|
||||
|
||||
/* eslint-disable prettier/prettier */
|
||||
/* globals SpecialPowers, Assert */
|
||||
|
||||
async function interceptDiagnostics(func) {
|
||||
|
@ -12,7 +12,6 @@
|
||||
<span id="hello">World.</span>
|
||||
|
||||
<script>
|
||||
/* eslint-disable prettier/prettier */
|
||||
/* globals SpecialPowers, content */
|
||||
|
||||
add_task(async function() {
|
||||
@ -55,7 +54,7 @@
|
||||
|
||||
is(result, "Hello there.", "Got correct element text from browsing context");
|
||||
|
||||
let line = 59; // Keep this in sync with the line number where the callback function starts.
|
||||
let line = 58; // Keep this in sync with the line number where the callback function starts.
|
||||
let callback = () => {
|
||||
let e = new Error("Hello.");
|
||||
return { filename: e.fileName, lineNumber: e.lineNumber };
|
||||
|
@ -8,8 +8,6 @@
|
||||
<body>
|
||||
|
||||
<script>
|
||||
/* eslint-disable prettier/prettier */
|
||||
|
||||
add_task(async function() {
|
||||
let { browsingContextId, innerWindowId } = await SpecialPowers.spawnChrome([12, { b: 42 }], (a, b) => {
|
||||
Assert.equal(a, 12, "Arg 1");
|
||||
|
@ -1,5 +1,3 @@
|
||||
/* eslint-disable prettier/prettier */
|
||||
|
||||
function runTest(obj) {
|
||||
add_task(async _ => {
|
||||
info("Test: " + obj.testName);
|
||||
|
@ -279,10 +279,8 @@ function makeRuleset(coeffs, biases) {
|
||||
);
|
||||
|
||||
// Use the selector to grab the descendants:
|
||||
return setDefault(
|
||||
selectorToDescendants, // eslint-disable-line prettier/prettier
|
||||
selector,
|
||||
() => Array.from(element.querySelectorAll(selector))
|
||||
return setDefault(selectorToDescendants, selector, () =>
|
||||
Array.from(element.querySelectorAll(selector))
|
||||
);
|
||||
}
|
||||
|
||||
|
@ -381,10 +381,8 @@ function createRuleset(coeffs, biases) {
|
||||
() => new Map()
|
||||
);
|
||||
|
||||
return setDefault(
|
||||
selectorToDescendants, // eslint-disable-line prettier/prettier
|
||||
selector,
|
||||
() => Array.from(element.querySelectorAll(selector))
|
||||
return setDefault(selectorToDescendants, selector, () =>
|
||||
Array.from(element.querySelectorAll(selector))
|
||||
);
|
||||
}
|
||||
function clearCache() {
|
||||
|
@ -6,7 +6,6 @@ import { AppConstants } from "resource://gre/modules/AppConstants.sys.mjs";
|
||||
|
||||
const lazy = {};
|
||||
|
||||
/* eslint-disable prettier/prettier */
|
||||
ChromeUtils.defineModuleGetter(
|
||||
lazy,
|
||||
"ShellService",
|
||||
@ -22,7 +21,7 @@ ChromeUtils.defineModuleGetter(
|
||||
"NormandyUtils",
|
||||
"resource://normandy/lib/NormandyUtils.jsm"
|
||||
);
|
||||
/* eslint-enable prettier/prettier */
|
||||
|
||||
ChromeUtils.defineESModuleGetters(lazy, {
|
||||
TelemetryArchive: "resource://gre/modules/TelemetryArchive.sys.mjs",
|
||||
TelemetryController: "resource://gre/modules/TelemetryController.sys.mjs",
|
||||
|
Loading…
Reference in New Issue
Block a user