Skip to content

Commit

Permalink
fix lint violations
Browse files Browse the repository at this point in the history
  • Loading branch information
alxndrsn committed Jul 26, 2023
1 parent 0138b11 commit 7741e4b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions bin/util/transifex.js
Original file line number Diff line number Diff line change
Expand Up @@ -83,9 +83,9 @@ class PluralForms {
const badWhitespace = form.match(/^\s+|\s+$|\s\s+/);
if (badWhitespace) {
const badLength = badWhitespace[0].length;
console.error(`unexpected white space in translation string '${path}':`);
console.error(` [${message}]`);
console.error(` [${''.padStart(badLength, '^').padStart(badWhitespace.index+badLength, ' ').padEnd(message.length, ' ')}]`);
console.error(`unexpected white space in translation string '${path}':`); // eslint-disable-line no-console
console.error(` [${message}]`); // eslint-disable-line no-console
console.error(` [${''.padStart(badLength, '^').padStart(badWhitespace.index + badLength, ' ').padEnd(message.length, ' ')}]`); // eslint-disable-line no-console
throw new Error(`unexpected whitespace in message '${path}' at index ${badWhitespace.index} ("${message}")`);
}
}
Expand Down

0 comments on commit 7741e4b

Please sign in to comment.