Skip to content
Snippets Groups Projects
Commit 511c96f0 authored by André Bargull's avatar André Bargull
Browse files

Bug 1782273 - Part 30: Enable prettier for selfhosted code. r=tcampbell,Standard8

parent 539c3a8f
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
......@@ -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.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment