1
0
Fork 0
mirror of https://github.com/mozilla/pdf.js.git synced 2025-04-26 10:08:06 +02:00

Add // prettier-ignore comments to prevent re-formatting of certain data structures

There's a fair number of (primarily) `Array`s/`TypedArray`s whose formatting we don't want disturb, since in many cases that would lead to the code becoming much more difficult to read and/or break existing inline comments.

*Please note:* It may be a good idea to look through these cases individually, and possibly re-write some of the them (especially the `String` ones) to reduce the need for all of these ignore commands.
This commit is contained in:
Jonas Jenwald 2019-12-25 15:54:34 +01:00
parent c3a1c67950
commit 8ec1dfde49
25 changed files with 130 additions and 3 deletions

View file

@ -14,6 +14,7 @@
*/
/* eslint no-var: error */
// prettier-ignore
const ISOAdobeCharset = [
'.notdef', 'space', 'exclam', 'quotedbl', 'numbersign', 'dollar',
'percent', 'ampersand', 'quoteright', 'parenleft', 'parenright',
@ -51,6 +52,7 @@ const ISOAdobeCharset = [
'ugrave', 'yacute', 'ydieresis', 'zcaron'
];
// prettier-ignore
const ExpertCharset = [
'.notdef', 'space', 'exclamsmall', 'Hungarumlautsmall', 'dollaroldstyle',
'dollarsuperior', 'ampersandsmall', 'Acutesmall', 'parenleftsuperior',
@ -91,6 +93,7 @@ const ExpertCharset = [
'Ydieresissmall'
];
// prettier-ignore
const ExpertSubsetCharset = [
'.notdef', 'space', 'dollaroldstyle', 'dollarsuperior',
'parenleftsuperior', 'parenrightsuperior', 'twodotenleader',