mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-27 06:43:32 +00:00
Bug 1826768
- Replace and remove more instances of eslint-disable with prettier versions. r=arai
The js/src/builtin/ directory is being added to .prettierignore in bug 1826548. Differential Revision: https://phabricator.services.mozilla.com/D174891
This commit is contained in:
parent
c5a581ae79
commit
b34a72b4d4
@ -21,8 +21,8 @@ async function test_math(rfp_pref, fdlibm_pref) {
|
||||
);
|
||||
|
||||
await SpecialPowers.spawn(tab.linkedBrowser, [], async function() {
|
||||
// prettier-ignore
|
||||
function test() {
|
||||
/* eslint-disable */
|
||||
//
|
||||
// Tests adapted from https://github.com/arkenfox/TZP/blob/5e3f5ff2c64b4edc7beecd8308aa4f7a3efb49e3/tests/math.html#L158-L319
|
||||
//
|
||||
@ -98,7 +98,6 @@ async function test_math(rfp_pref, fdlibm_pref) {
|
||||
is(Math.exp(1), 2.718281828459045, "Math.exp(1)");
|
||||
is(Math.expm1(1), 1.718281828459045, "Math.expm1(1)");
|
||||
is(Math.log1p(10), 2.3978952727983707, "Math.log1p(10)");
|
||||
/* eslint-enable */
|
||||
}
|
||||
|
||||
// Run test in the context of the page.
|
||||
|
@ -50,7 +50,7 @@ function Promise_finally(onFinally) {
|
||||
};
|
||||
|
||||
// CatchFinally Function.
|
||||
// eslint-disable-next-line prettier/prettier
|
||||
// prettier-ignore
|
||||
(catchFinally) = function(reason) {
|
||||
// Steps 1-2 (implicit).
|
||||
|
||||
|
@ -80,7 +80,7 @@ module.exports = {
|
||||
for (; i < lines.length; i++) {
|
||||
// The macro isn't correctly indented, so we need to instruct
|
||||
// prettier to ignore them.
|
||||
lines[i] = "// eslint-disable-line prettier/prettier -- " + lines[i];
|
||||
lines[i] = "// prettier-ignore -- " + lines[i];
|
||||
|
||||
// If the line ends with a backslash (\), the next line
|
||||
// is also part of part of the macro.
|
||||
|
Loading…
Reference in New Issue
Block a user