forked from mirrors/gecko-dev
Bug 1782273 - Part 30: Enable prettier for selfhosted code. r=tcampbell,Standard8
Differential Revision: https://phabricator.services.mozilla.com/D153263
This commit is contained in:
parent
539c3a8fca
commit
511c96f0dc
2 changed files with 3 additions and 4 deletions
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Reference in a new issue