diff --git a/.prettierignore b/.prettierignore index bc427b934ddb8e84c6e1679e6cf7b47d7bb3c266..21059c8bbdbbd3607be3437511675db011dd26b5 100644 --- a/.prettierignore +++ b/.prettierignore @@ -41,9 +41,6 @@ dom/security/test/sri/script* dom/base/test/file_bug687859-charset.js dom/base/test/file_bug687859-inherit.js -# Ignore preprocessed files. -js/src/builtin/**/*.js - # Ignore devtools debugger files # Keep in sync with devtools/client/debugger/.prettierignore devtools/client/debugger/src/workers/parser/tests/fixtures/functionNames.js diff --git a/tools/lint/eslint/eslint-plugin-spidermonkey-js/lib/processors/self-hosted.js b/tools/lint/eslint/eslint-plugin-spidermonkey-js/lib/processors/self-hosted.js index 17f4bb6aecc74632196deb5a08d8a6cabf460c21..cf12e29f510da2217d3491cc360ad80951298e54 100644 --- a/tools/lint/eslint/eslint-plugin-spidermonkey-js/lib/processors/self-hosted.js +++ b/tools/lint/eslint/eslint-plugin-spidermonkey-js/lib/processors/self-hosted.js @@ -30,7 +30,9 @@ module.exports = { } for (; i < lines.length; i++) { - lines[i] = "// " + lines[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]; // If the line ends with a backslash (\), the next line // is also part of part of the macro.