claude-flow-novice 2.2.0 → 2.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (599) hide show
  1. package/package.json +2 -1
  2. package/dist/src/web/frontend/node_modules/.cross-env-RSYxJplp/src/index.js +0 -95
  3. package/dist/src/web/frontend/node_modules/.cross-env-RSYxJplp/src/is-windows.js +0 -2
  4. package/dist/src/web/frontend/node_modules/.cross-env-RSYxJplp/src/variable.js +0 -69
  5. package/dist/src/web/frontend/node_modules/.css-blank-pseudo-8k2G2dsc/browser.js +0 -2
  6. package/dist/src/web/frontend/node_modules/.css-blank-pseudo-8k2G2dsc/dist/browser-global.js +0 -2
  7. package/dist/src/web/frontend/node_modules/.css-has-pseudo-6pj9tKmr/browser.js +0 -2
  8. package/dist/src/web/frontend/node_modules/.css-has-pseudo-6pj9tKmr/dist/browser-global.js +0 -2
  9. package/dist/src/web/frontend/node_modules/.css-prefers-color-scheme-5O8P6fXl/browser.js +0 -2
  10. package/dist/src/web/frontend/node_modules/.css-prefers-color-scheme-5O8P6fXl/browser.min.js +0 -2
  11. package/dist/src/web/frontend/node_modules/.css-prefers-color-scheme-5O8P6fXl/dist/browser-global.js +0 -2
  12. package/dist/src/web/frontend/node_modules/.cssesc-iMHKNzC2/cssesc.js +0 -110
  13. package/dist/src/web/frontend/node_modules/.date-fns-XMls0sMk/_lib/addLeadingZeros/index.js +0 -15
  14. package/dist/src/web/frontend/node_modules/.date-fns-XMls0sMk/_lib/assign/index.js +0 -19
  15. package/dist/src/web/frontend/node_modules/.date-fns-XMls0sMk/_lib/cloneObject/index.js +0 -12
  16. package/dist/src/web/frontend/node_modules/.date-fns-XMls0sMk/_lib/defaultLocale/index.js +0 -11
  17. package/dist/src/web/frontend/node_modules/.date-fns-XMls0sMk/_lib/defaultOptions/index.js +0 -14
  18. package/dist/src/web/frontend/node_modules/.date-fns-XMls0sMk/_lib/format/formatters/index.js +0 -781
  19. package/dist/src/web/frontend/node_modules/.date-fns-XMls0sMk/_lib/format/lightFormatters/index.js +0 -90
  20. package/dist/src/web/frontend/node_modules/.date-fns-XMls0sMk/_lib/format/longFormatters/index.js +0 -88
  21. package/dist/src/web/frontend/node_modules/.date-fns-XMls0sMk/_lib/getTimezoneOffsetInMilliseconds/index.js +0 -23
  22. package/dist/src/web/frontend/node_modules/.date-fns-XMls0sMk/_lib/getUTCDayOfYear/index.js +0 -21
  23. package/dist/src/web/frontend/node_modules/.date-fns-XMls0sMk/_lib/getUTCISOWeek/index.js +0 -23
  24. package/dist/src/web/frontend/node_modules/.date-fns-XMls0sMk/_lib/getUTCISOWeekYear/index.js +0 -31
  25. package/dist/src/web/frontend/node_modules/.date-fns-XMls0sMk/_lib/getUTCWeek/index.js +0 -23
  26. package/dist/src/web/frontend/node_modules/.date-fns-XMls0sMk/_lib/getUTCWeekYear/index.js +0 -41
  27. package/dist/src/web/frontend/node_modules/.date-fns-XMls0sMk/_lib/isSameUTCWeek/index.js +0 -16
  28. package/dist/src/web/frontend/node_modules/.date-fns-XMls0sMk/_lib/protectedTokens/index.js +0 -27
  29. package/dist/src/web/frontend/node_modules/.date-fns-XMls0sMk/_lib/requiredArgs/index.js +0 -12
  30. package/dist/src/web/frontend/node_modules/.date-fns-XMls0sMk/_lib/roundingMethods/index.js +0 -19
  31. package/dist/src/web/frontend/node_modules/.date-fns-XMls0sMk/_lib/setUTCDay/index.js +0 -31
  32. package/dist/src/web/frontend/node_modules/.date-fns-XMls0sMk/_lib/setUTCISODay/index.js +0 -26
  33. package/dist/src/web/frontend/node_modules/.date-fns-XMls0sMk/_lib/setUTCISOWeek/index.js +0 -20
  34. package/dist/src/web/frontend/node_modules/.date-fns-XMls0sMk/_lib/setUTCWeek/index.js +0 -20
  35. package/dist/src/web/frontend/node_modules/.date-fns-XMls0sMk/_lib/startOfUTCISOWeek/index.js +0 -20
  36. package/dist/src/web/frontend/node_modules/.date-fns-XMls0sMk/_lib/startOfUTCISOWeekYear/index.js +0 -20
  37. package/dist/src/web/frontend/node_modules/.date-fns-XMls0sMk/_lib/startOfUTCWeek/index.js +0 -29
  38. package/dist/src/web/frontend/node_modules/.date-fns-XMls0sMk/_lib/startOfUTCWeekYear/index.js +0 -25
  39. package/dist/src/web/frontend/node_modules/.date-fns-XMls0sMk/_lib/test/index.js +0 -33
  40. package/dist/src/web/frontend/node_modules/.date-fns-XMls0sMk/_lib/toInteger/index.js +0 -17
  41. package/dist/src/web/frontend/node_modules/.date-fns-XMls0sMk/add/index.js +0 -78
  42. package/dist/src/web/frontend/node_modules/.date-fns-XMls0sMk/addBusinessDays/index.js +0 -66
  43. package/dist/src/web/frontend/node_modules/.date-fns-XMls0sMk/addDays/index.js +0 -43
  44. package/dist/src/web/frontend/node_modules/.date-fns-XMls0sMk/addHours/index.js +0 -36
  45. package/dist/src/web/frontend/node_modules/.date-fns-XMls0sMk/addISOWeekYears/index.js +0 -37
  46. package/dist/src/web/frontend/node_modules/.date-fns-XMls0sMk/addMilliseconds/index.js +0 -35
  47. package/dist/src/web/frontend/node_modules/.date-fns-XMls0sMk/addMinutes/index.js +0 -36
  48. package/dist/src/web/frontend/node_modules/.date-fns-XMls0sMk/addMonths/index.js +0 -69
  49. package/dist/src/web/frontend/node_modules/.date-fns-XMls0sMk/addQuarters/index.js +0 -35
  50. package/dist/src/web/frontend/node_modules/.date-fns-XMls0sMk/addSeconds/index.js +0 -34
  51. package/dist/src/web/frontend/node_modules/.date-fns-XMls0sMk/addWeeks/index.js +0 -35
  52. package/dist/src/web/frontend/node_modules/.date-fns-XMls0sMk/addYears/index.js +0 -34
  53. package/dist/src/web/frontend/node_modules/.date-fns-XMls0sMk/areIntervalsOverlapping/index.js +0 -81
  54. package/dist/src/web/frontend/node_modules/.date-fns-XMls0sMk/clamp/index.js +0 -43
  55. package/dist/src/web/frontend/node_modules/.date-fns-XMls0sMk/closestIndexTo/index.js +0 -69
  56. package/dist/src/web/frontend/node_modules/.date-fns-XMls0sMk/closestTo/index.js +0 -67
  57. package/dist/src/web/frontend/node_modules/.date-fns-XMls0sMk/compareAsc/index.js +0 -56
  58. package/dist/src/web/frontend/node_modules/.date-fns-XMls0sMk/compareDesc/index.js +0 -56
  59. package/dist/src/web/frontend/node_modules/.date-fns-XMls0sMk/constants/index.js +0 -207
  60. package/dist/src/web/frontend/node_modules/.date-fns-XMls0sMk/daysToWeeks/index.js +0 -38
  61. package/dist/src/web/frontend/node_modules/.date-fns-XMls0sMk/differenceInBusinessDays/index.js +0 -84
  62. package/dist/src/web/frontend/node_modules/.date-fns-XMls0sMk/differenceInCalendarDays/index.js +0 -55
  63. package/dist/src/web/frontend/node_modules/.date-fns-XMls0sMk/differenceInCalendarISOWeekYears/index.js +0 -37
  64. package/dist/src/web/frontend/node_modules/.date-fns-XMls0sMk/differenceInCalendarISOWeeks/index.js +0 -48
  65. package/dist/src/web/frontend/node_modules/.date-fns-XMls0sMk/differenceInCalendarMonths/index.js +0 -39
  66. package/dist/src/web/frontend/node_modules/.date-fns-XMls0sMk/differenceInCalendarQuarters/index.js +0 -40
  67. package/dist/src/web/frontend/node_modules/.date-fns-XMls0sMk/differenceInCalendarWeeks/index.js +0 -60
  68. package/dist/src/web/frontend/node_modules/.date-fns-XMls0sMk/differenceInCalendarYears/index.js +0 -37
  69. package/dist/src/web/frontend/node_modules/.date-fns-XMls0sMk/differenceInDays/index.js +0 -91
  70. package/dist/src/web/frontend/node_modules/.date-fns-XMls0sMk/differenceInHours/index.js +0 -40
  71. package/dist/src/web/frontend/node_modules/.date-fns-XMls0sMk/differenceInISOWeekYears/index.js +0 -52
  72. package/dist/src/web/frontend/node_modules/.date-fns-XMls0sMk/differenceInMilliseconds/index.js +0 -36
  73. package/dist/src/web/frontend/node_modules/.date-fns-XMls0sMk/differenceInMinutes/index.js +0 -48
  74. package/dist/src/web/frontend/node_modules/.date-fns-XMls0sMk/differenceInMonths/index.js +0 -64
  75. package/dist/src/web/frontend/node_modules/.date-fns-XMls0sMk/differenceInQuarters/index.js +0 -36
  76. package/dist/src/web/frontend/node_modules/.date-fns-XMls0sMk/differenceInSeconds/index.js +0 -40
  77. package/dist/src/web/frontend/node_modules/.date-fns-XMls0sMk/differenceInWeeks/index.js +0 -57
  78. package/dist/src/web/frontend/node_modules/.date-fns-XMls0sMk/differenceInYears/index.js +0 -49
  79. package/dist/src/web/frontend/node_modules/.date-fns-XMls0sMk/docs/.eslintrc.js +0 -5
  80. package/dist/src/web/frontend/node_modules/.date-fns-XMls0sMk/docs/Day.js +0 -15
  81. package/dist/src/web/frontend/node_modules/.date-fns-XMls0sMk/docs/Duration.js +0 -19
  82. package/dist/src/web/frontend/node_modules/.date-fns-XMls0sMk/docs/index.js +0 -147
  83. package/dist/src/web/frontend/node_modules/.date-fns-XMls0sMk/eachDayOfInterval/index.js +0 -65
  84. package/dist/src/web/frontend/node_modules/.date-fns-XMls0sMk/eachHourOfInterval/index.js +0 -65
  85. package/dist/src/web/frontend/node_modules/.date-fns-XMls0sMk/eachMinuteOfInterval/index.js +0 -62
  86. package/dist/src/web/frontend/node_modules/.date-fns-XMls0sMk/eachMonthOfInterval/index.js +0 -61
  87. package/dist/src/web/frontend/node_modules/.date-fns-XMls0sMk/eachQuarterOfInterval/index.js +0 -60
  88. package/dist/src/web/frontend/node_modules/.date-fns-XMls0sMk/eachWeekOfInterval/index.js +0 -75
  89. package/dist/src/web/frontend/node_modules/.date-fns-XMls0sMk/eachWeekendOfInterval/index.js +0 -53
  90. package/dist/src/web/frontend/node_modules/.date-fns-XMls0sMk/eachWeekendOfMonth/index.js +0 -49
  91. package/dist/src/web/frontend/node_modules/.date-fns-XMls0sMk/eachWeekendOfYear/index.js +0 -45
  92. package/dist/src/web/frontend/node_modules/.date-fns-XMls0sMk/eachYearOfInterval/index.js +0 -58
  93. package/dist/src/web/frontend/node_modules/.date-fns-XMls0sMk/endOfDay/index.js +0 -34
  94. package/dist/src/web/frontend/node_modules/.date-fns-XMls0sMk/endOfDecade/index.js +0 -39
  95. package/dist/src/web/frontend/node_modules/.date-fns-XMls0sMk/endOfHour/index.js +0 -34
  96. package/dist/src/web/frontend/node_modules/.date-fns-XMls0sMk/endOfISOWeek/index.js +0 -36
  97. package/dist/src/web/frontend/node_modules/.date-fns-XMls0sMk/endOfISOWeekYear/index.js +0 -42
  98. package/dist/src/web/frontend/node_modules/.date-fns-XMls0sMk/endOfMinute/index.js +0 -34
  99. package/dist/src/web/frontend/node_modules/.date-fns-XMls0sMk/endOfMonth/index.js +0 -36
  100. package/dist/src/web/frontend/node_modules/.date-fns-XMls0sMk/endOfQuarter/index.js +0 -37
  101. package/dist/src/web/frontend/node_modules/.date-fns-XMls0sMk/endOfSecond/index.js +0 -34
  102. package/dist/src/web/frontend/node_modules/.date-fns-XMls0sMk/endOfToday/index.js +0 -31
  103. package/dist/src/web/frontend/node_modules/.date-fns-XMls0sMk/endOfTomorrow/index.js +0 -36
  104. package/dist/src/web/frontend/node_modules/.date-fns-XMls0sMk/endOfWeek/index.js +0 -56
  105. package/dist/src/web/frontend/node_modules/.date-fns-XMls0sMk/endOfYear/index.js +0 -36
  106. package/dist/src/web/frontend/node_modules/.date-fns-XMls0sMk/endOfYesterday/index.js +0 -36
  107. package/dist/src/web/frontend/node_modules/.date-fns-XMls0sMk/esm/_lib/addLeadingZeros/index.js +0 -8
  108. package/dist/src/web/frontend/node_modules/.date-fns-XMls0sMk/esm/_lib/assign/index.js +0 -12
  109. package/dist/src/web/frontend/node_modules/.date-fns-XMls0sMk/esm/_lib/cloneObject/index.js +0 -4
  110. package/dist/src/web/frontend/node_modules/.date-fns-XMls0sMk/esm/_lib/defaultLocale/index.js +0 -2
  111. package/dist/src/web/frontend/node_modules/.date-fns-XMls0sMk/esm/_lib/defaultOptions/index.js +0 -7
  112. package/dist/src/web/frontend/node_modules/.date-fns-XMls0sMk/esm/_lib/format/formatters/index.js +0 -772
  113. package/dist/src/web/frontend/node_modules/.date-fns-XMls0sMk/esm/_lib/format/lightFormatters/index.js +0 -80
  114. package/dist/src/web/frontend/node_modules/.date-fns-XMls0sMk/esm/_lib/format/longFormatters/index.js +0 -80
  115. package/dist/src/web/frontend/node_modules/.date-fns-XMls0sMk/esm/_lib/getTimezoneOffsetInMilliseconds/index.js +0 -16
  116. package/dist/src/web/frontend/node_modules/.date-fns-XMls0sMk/esm/_lib/getUTCDayOfYear/index.js +0 -13
  117. package/dist/src/web/frontend/node_modules/.date-fns-XMls0sMk/esm/_lib/getUTCISOWeek/index.js +0 -15
  118. package/dist/src/web/frontend/node_modules/.date-fns-XMls0sMk/esm/_lib/getUTCISOWeekYear/index.js +0 -23
  119. package/dist/src/web/frontend/node_modules/.date-fns-XMls0sMk/esm/_lib/getUTCWeek/index.js +0 -15
  120. package/dist/src/web/frontend/node_modules/.date-fns-XMls0sMk/esm/_lib/getUTCWeekYear/index.js +0 -33
  121. package/dist/src/web/frontend/node_modules/.date-fns-XMls0sMk/esm/_lib/isSameUTCWeek/index.js +0 -8
  122. package/dist/src/web/frontend/node_modules/.date-fns-XMls0sMk/esm/_lib/protectedTokens/index.js +0 -19
  123. package/dist/src/web/frontend/node_modules/.date-fns-XMls0sMk/esm/_lib/requiredArgs/index.js +0 -5
  124. package/dist/src/web/frontend/node_modules/.date-fns-XMls0sMk/esm/_lib/roundingMethods/index.js +0 -13
  125. package/dist/src/web/frontend/node_modules/.date-fns-XMls0sMk/esm/_lib/setUTCDay/index.js +0 -23
  126. package/dist/src/web/frontend/node_modules/.date-fns-XMls0sMk/esm/_lib/setUTCISODay/index.js +0 -18
  127. package/dist/src/web/frontend/node_modules/.date-fns-XMls0sMk/esm/_lib/setUTCISOWeek/index.js +0 -12
  128. package/dist/src/web/frontend/node_modules/.date-fns-XMls0sMk/esm/_lib/setUTCWeek/index.js +0 -12
  129. package/dist/src/web/frontend/node_modules/.date-fns-XMls0sMk/esm/_lib/startOfUTCISOWeek/index.js +0 -12
  130. package/dist/src/web/frontend/node_modules/.date-fns-XMls0sMk/esm/_lib/startOfUTCISOWeekYear/index.js +0 -12
  131. package/dist/src/web/frontend/node_modules/.date-fns-XMls0sMk/esm/_lib/startOfUTCWeek/index.js +0 -21
  132. package/dist/src/web/frontend/node_modules/.date-fns-XMls0sMk/esm/_lib/startOfUTCWeekYear/index.js +0 -17
  133. package/dist/src/web/frontend/node_modules/.date-fns-XMls0sMk/esm/_lib/test/index.js +0 -24
  134. package/dist/src/web/frontend/node_modules/.date-fns-XMls0sMk/esm/_lib/toInteger/index.js +0 -10
  135. package/dist/src/web/frontend/node_modules/.date-fns-XMls0sMk/esm/add/index.js +0 -70
  136. package/dist/src/web/frontend/node_modules/.date-fns-XMls0sMk/esm/addBusinessDays/index.js +0 -58
  137. package/dist/src/web/frontend/node_modules/.date-fns-XMls0sMk/esm/addDays/index.js +0 -35
  138. package/dist/src/web/frontend/node_modules/.date-fns-XMls0sMk/esm/addHours/index.js +0 -28
  139. package/dist/src/web/frontend/node_modules/.date-fns-XMls0sMk/esm/addISOWeekYears/index.js +0 -29
  140. package/dist/src/web/frontend/node_modules/.date-fns-XMls0sMk/esm/addMilliseconds/index.js +0 -27
  141. package/dist/src/web/frontend/node_modules/.date-fns-XMls0sMk/esm/addMinutes/index.js +0 -28
  142. package/dist/src/web/frontend/node_modules/.date-fns-XMls0sMk/esm/addMonths/index.js +0 -61
  143. package/dist/src/web/frontend/node_modules/.date-fns-XMls0sMk/esm/addQuarters/index.js +0 -27
  144. package/dist/src/web/frontend/node_modules/.date-fns-XMls0sMk/esm/addSeconds/index.js +0 -26
  145. package/dist/src/web/frontend/node_modules/.date-fns-XMls0sMk/esm/addWeeks/index.js +0 -27
  146. package/dist/src/web/frontend/node_modules/.date-fns-XMls0sMk/esm/addYears/index.js +0 -26
  147. package/dist/src/web/frontend/node_modules/.date-fns-XMls0sMk/esm/areIntervalsOverlapping/index.js +0 -73
  148. package/dist/src/web/frontend/node_modules/.date-fns-XMls0sMk/esm/clamp/index.js +0 -35
  149. package/dist/src/web/frontend/node_modules/.date-fns-XMls0sMk/esm/closestIndexTo/index.js +0 -61
  150. package/dist/src/web/frontend/node_modules/.date-fns-XMls0sMk/esm/closestTo/index.js +0 -59
  151. package/dist/src/web/frontend/node_modules/.date-fns-XMls0sMk/esm/compareAsc/index.js +0 -48
  152. package/dist/src/web/frontend/node_modules/.date-fns-XMls0sMk/esm/compareDesc/index.js +0 -48
  153. package/dist/src/web/frontend/node_modules/.date-fns-XMls0sMk/esm/constants/index.js +0 -183
  154. package/dist/src/web/frontend/node_modules/.date-fns-XMls0sMk/esm/daysToWeeks/index.js +0 -30
  155. package/dist/src/web/frontend/node_modules/.date-fns-XMls0sMk/esm/differenceInBusinessDays/index.js +0 -76
  156. package/dist/src/web/frontend/node_modules/.date-fns-XMls0sMk/esm/differenceInCalendarDays/index.js +0 -47
  157. package/dist/src/web/frontend/node_modules/.date-fns-XMls0sMk/esm/differenceInCalendarISOWeekYears/index.js +0 -29
  158. package/dist/src/web/frontend/node_modules/.date-fns-XMls0sMk/esm/differenceInCalendarISOWeeks/index.js +0 -40
  159. package/dist/src/web/frontend/node_modules/.date-fns-XMls0sMk/esm/differenceInCalendarMonths/index.js +0 -31
  160. package/dist/src/web/frontend/node_modules/.date-fns-XMls0sMk/esm/differenceInCalendarQuarters/index.js +0 -32
  161. package/dist/src/web/frontend/node_modules/.date-fns-XMls0sMk/esm/differenceInCalendarWeeks/index.js +0 -52
  162. package/dist/src/web/frontend/node_modules/.date-fns-XMls0sMk/esm/differenceInCalendarYears/index.js +0 -29
  163. package/dist/src/web/frontend/node_modules/.date-fns-XMls0sMk/esm/differenceInDays/index.js +0 -82
  164. package/dist/src/web/frontend/node_modules/.date-fns-XMls0sMk/esm/differenceInHours/index.js +0 -32
  165. package/dist/src/web/frontend/node_modules/.date-fns-XMls0sMk/esm/differenceInISOWeekYears/index.js +0 -44
  166. package/dist/src/web/frontend/node_modules/.date-fns-XMls0sMk/esm/differenceInMilliseconds/index.js +0 -28
  167. package/dist/src/web/frontend/node_modules/.date-fns-XMls0sMk/esm/differenceInMinutes/index.js +0 -40
  168. package/dist/src/web/frontend/node_modules/.date-fns-XMls0sMk/esm/differenceInMonths/index.js +0 -56
  169. package/dist/src/web/frontend/node_modules/.date-fns-XMls0sMk/esm/differenceInQuarters/index.js +0 -28
  170. package/dist/src/web/frontend/node_modules/.date-fns-XMls0sMk/esm/differenceInSeconds/index.js +0 -32
  171. package/dist/src/web/frontend/node_modules/.date-fns-XMls0sMk/esm/differenceInWeeks/index.js +0 -49
  172. package/dist/src/web/frontend/node_modules/.date-fns-XMls0sMk/esm/differenceInYears/index.js +0 -41
  173. package/dist/src/web/frontend/node_modules/.date-fns-XMls0sMk/esm/eachDayOfInterval/index.js +0 -57
  174. package/dist/src/web/frontend/node_modules/.date-fns-XMls0sMk/esm/eachHourOfInterval/index.js +0 -57
  175. package/dist/src/web/frontend/node_modules/.date-fns-XMls0sMk/esm/eachMinuteOfInterval/index.js +0 -54
  176. package/dist/src/web/frontend/node_modules/.date-fns-XMls0sMk/esm/eachMonthOfInterval/index.js +0 -53
  177. package/dist/src/web/frontend/node_modules/.date-fns-XMls0sMk/esm/eachQuarterOfInterval/index.js +0 -52
  178. package/dist/src/web/frontend/node_modules/.date-fns-XMls0sMk/esm/eachWeekOfInterval/index.js +0 -67
  179. package/dist/src/web/frontend/node_modules/.date-fns-XMls0sMk/esm/eachWeekendOfInterval/index.js +0 -45
  180. package/dist/src/web/frontend/node_modules/.date-fns-XMls0sMk/esm/eachWeekendOfMonth/index.js +0 -41
  181. package/dist/src/web/frontend/node_modules/.date-fns-XMls0sMk/esm/eachWeekendOfYear/index.js +0 -37
  182. package/dist/src/web/frontend/node_modules/.date-fns-XMls0sMk/esm/eachYearOfInterval/index.js +0 -50
  183. package/dist/src/web/frontend/node_modules/.date-fns-XMls0sMk/esm/endOfDay/index.js +0 -26
  184. package/dist/src/web/frontend/node_modules/.date-fns-XMls0sMk/esm/endOfDecade/index.js +0 -31
  185. package/dist/src/web/frontend/node_modules/.date-fns-XMls0sMk/esm/endOfHour/index.js +0 -26
  186. package/dist/src/web/frontend/node_modules/.date-fns-XMls0sMk/esm/endOfISOWeek/index.js +0 -28
  187. package/dist/src/web/frontend/node_modules/.date-fns-XMls0sMk/esm/endOfISOWeekYear/index.js +0 -34
  188. package/dist/src/web/frontend/node_modules/.date-fns-XMls0sMk/esm/endOfMinute/index.js +0 -26
  189. package/dist/src/web/frontend/node_modules/.date-fns-XMls0sMk/esm/endOfMonth/index.js +0 -28
  190. package/dist/src/web/frontend/node_modules/.date-fns-XMls0sMk/esm/endOfQuarter/index.js +0 -29
  191. package/dist/src/web/frontend/node_modules/.date-fns-XMls0sMk/esm/endOfSecond/index.js +0 -26
  192. package/dist/src/web/frontend/node_modules/.date-fns-XMls0sMk/esm/endOfToday/index.js +0 -23
  193. package/dist/src/web/frontend/node_modules/.date-fns-XMls0sMk/esm/endOfTomorrow/index.js +0 -29
  194. package/dist/src/web/frontend/node_modules/.date-fns-XMls0sMk/esm/endOfWeek/index.js +0 -48
  195. package/dist/src/web/frontend/node_modules/.date-fns-XMls0sMk/esm/endOfYear/index.js +0 -28
  196. package/dist/src/web/frontend/node_modules/.date-fns-XMls0sMk/esm/endOfYesterday/index.js +0 -29
  197. package/dist/src/web/frontend/node_modules/.date-fns-XMls0sMk/esm/format/index.js +0 -402
  198. package/dist/src/web/frontend/node_modules/.date-fns-XMls0sMk/esm/formatDistance/index.js +0 -203
  199. package/dist/src/web/frontend/node_modules/.date-fns-XMls0sMk/esm/formatDistanceStrict/index.js +0 -190
  200. package/dist/src/web/frontend/node_modules/.date-fns-XMls0sMk/esm/formatDistanceToNow/index.js +0 -92
  201. package/dist/src/web/frontend/node_modules/.date-fns-XMls0sMk/esm/formatDistanceToNowStrict/index.js +0 -80
  202. package/dist/src/web/frontend/node_modules/.date-fns-XMls0sMk/esm/formatDuration/index.js +0 -91
  203. package/dist/src/web/frontend/node_modules/.date-fns-XMls0sMk/esm/formatISO/index.js +0 -100
  204. package/dist/src/web/frontend/node_modules/.date-fns-XMls0sMk/esm/formatISO9075/index.js +0 -86
  205. package/dist/src/web/frontend/node_modules/.date-fns-XMls0sMk/esm/formatISODuration/index.js +0 -45
  206. package/dist/src/web/frontend/node_modules/.date-fns-XMls0sMk/esm/formatRFC3339/index.js +0 -76
  207. package/dist/src/web/frontend/node_modules/.date-fns-XMls0sMk/esm/formatRFC7231/index.js +0 -44
  208. package/dist/src/web/frontend/node_modules/.date-fns-XMls0sMk/esm/formatRelative/index.js +0 -93
  209. package/dist/src/web/frontend/node_modules/.date-fns-XMls0sMk/esm/fp/_lib/convertToFP/index.js +0 -12
  210. package/dist/src/web/frontend/node_modules/.date-fns-XMls0sMk/esm/fp/add/index.js +0 -4
  211. package/dist/src/web/frontend/node_modules/.date-fns-XMls0sMk/esm/fp/addBusinessDays/index.js +0 -4
  212. package/dist/src/web/frontend/node_modules/.date-fns-XMls0sMk/esm/fp/addDays/index.js +0 -4
  213. package/dist/src/web/frontend/node_modules/.date-fns-XMls0sMk/esm/fp/addHours/index.js +0 -4
  214. package/dist/src/web/frontend/node_modules/.date-fns-XMls0sMk/esm/fp/addISOWeekYears/index.js +0 -4
  215. package/dist/src/web/frontend/node_modules/.date-fns-XMls0sMk/esm/fp/addMilliseconds/index.js +0 -4
  216. package/dist/src/web/frontend/node_modules/.date-fns-XMls0sMk/esm/fp/addMinutes/index.js +0 -4
  217. package/dist/src/web/frontend/node_modules/.date-fns-XMls0sMk/esm/fp/addMonths/index.js +0 -4
  218. package/dist/src/web/frontend/node_modules/.date-fns-XMls0sMk/esm/fp/addQuarters/index.js +0 -4
  219. package/dist/src/web/frontend/node_modules/.date-fns-XMls0sMk/esm/fp/addSeconds/index.js +0 -4
  220. package/dist/src/web/frontend/node_modules/.date-fns-XMls0sMk/esm/fp/addWeeks/index.js +0 -4
  221. package/dist/src/web/frontend/node_modules/.date-fns-XMls0sMk/esm/fp/addYears/index.js +0 -4
  222. package/dist/src/web/frontend/node_modules/.date-fns-XMls0sMk/esm/fp/areIntervalsOverlapping/index.js +0 -4
  223. package/dist/src/web/frontend/node_modules/.date-fns-XMls0sMk/esm/fp/areIntervalsOverlappingWithOptions/index.js +0 -4
  224. package/dist/src/web/frontend/node_modules/.date-fns-XMls0sMk/esm/fp/clamp/index.js +0 -4
  225. package/dist/src/web/frontend/node_modules/.date-fns-XMls0sMk/esm/fp/closestIndexTo/index.js +0 -4
  226. package/dist/src/web/frontend/node_modules/.date-fns-XMls0sMk/esm/fp/closestTo/index.js +0 -4
  227. package/dist/src/web/frontend/node_modules/.date-fns-XMls0sMk/esm/fp/compareAsc/index.js +0 -4
  228. package/dist/src/web/frontend/node_modules/.date-fns-XMls0sMk/esm/fp/compareDesc/index.js +0 -4
  229. package/dist/src/web/frontend/node_modules/.date-fns-XMls0sMk/esm/fp/daysToWeeks/index.js +0 -4
  230. package/dist/src/web/frontend/node_modules/.date-fns-XMls0sMk/esm/fp/differenceInBusinessDays/index.js +0 -4
  231. package/dist/src/web/frontend/node_modules/.date-fns-XMls0sMk/esm/fp/differenceInCalendarDays/index.js +0 -4
  232. package/dist/src/web/frontend/node_modules/.date-fns-XMls0sMk/esm/fp/differenceInCalendarISOWeekYears/index.js +0 -4
  233. package/dist/src/web/frontend/node_modules/.date-fns-XMls0sMk/esm/fp/differenceInCalendarISOWeeks/index.js +0 -4
  234. package/dist/src/web/frontend/node_modules/.date-fns-XMls0sMk/esm/fp/differenceInCalendarMonths/index.js +0 -4
  235. package/dist/src/web/frontend/node_modules/.date-fns-XMls0sMk/esm/fp/differenceInCalendarQuarters/index.js +0 -4
  236. package/dist/src/web/frontend/node_modules/.date-fns-XMls0sMk/esm/fp/differenceInCalendarWeeks/index.js +0 -4
  237. package/dist/src/web/frontend/node_modules/.date-fns-XMls0sMk/esm/fp/differenceInCalendarWeeksWithOptions/index.js +0 -4
  238. package/dist/src/web/frontend/node_modules/.date-fns-XMls0sMk/esm/fp/differenceInCalendarYears/index.js +0 -4
  239. package/dist/src/web/frontend/node_modules/.date-fns-XMls0sMk/esm/fp/differenceInDays/index.js +0 -4
  240. package/dist/src/web/frontend/node_modules/.date-fns-XMls0sMk/esm/fp/differenceInHours/index.js +0 -4
  241. package/dist/src/web/frontend/node_modules/.date-fns-XMls0sMk/esm/fp/differenceInHoursWithOptions/index.js +0 -4
  242. package/dist/src/web/frontend/node_modules/.date-fns-XMls0sMk/esm/fp/differenceInISOWeekYears/index.js +0 -4
  243. package/dist/src/web/frontend/node_modules/.date-fns-XMls0sMk/esm/fp/differenceInMilliseconds/index.js +0 -4
  244. package/dist/src/web/frontend/node_modules/.date-fns-XMls0sMk/esm/fp/differenceInMinutes/index.js +0 -4
  245. package/dist/src/web/frontend/node_modules/.date-fns-XMls0sMk/esm/fp/differenceInMinutesWithOptions/index.js +0 -4
  246. package/dist/src/web/frontend/node_modules/.date-fns-XMls0sMk/esm/fp/differenceInMonths/index.js +0 -4
  247. package/dist/src/web/frontend/node_modules/.date-fns-XMls0sMk/esm/fp/differenceInQuarters/index.js +0 -4
  248. package/dist/src/web/frontend/node_modules/.date-fns-XMls0sMk/esm/fp/differenceInQuartersWithOptions/index.js +0 -4
  249. package/dist/src/web/frontend/node_modules/.date-fns-XMls0sMk/esm/fp/differenceInSeconds/index.js +0 -4
  250. package/dist/src/web/frontend/node_modules/.date-fns-XMls0sMk/esm/fp/differenceInSecondsWithOptions/index.js +0 -4
  251. package/dist/src/web/frontend/node_modules/.date-fns-XMls0sMk/esm/fp/differenceInWeeks/index.js +0 -4
  252. package/dist/src/web/frontend/node_modules/.date-fns-XMls0sMk/esm/fp/differenceInWeeksWithOptions/index.js +0 -4
  253. package/dist/src/web/frontend/node_modules/.date-fns-XMls0sMk/esm/fp/differenceInYears/index.js +0 -4
  254. package/dist/src/web/frontend/node_modules/.date-fns-XMls0sMk/esm/fp/eachDayOfInterval/index.js +0 -4
  255. package/dist/src/web/frontend/node_modules/.date-fns-XMls0sMk/esm/fp/eachDayOfIntervalWithOptions/index.js +0 -4
  256. package/dist/src/web/frontend/node_modules/.date-fns-XMls0sMk/esm/fp/eachHourOfInterval/index.js +0 -4
  257. package/dist/src/web/frontend/node_modules/.date-fns-XMls0sMk/esm/fp/eachHourOfIntervalWithOptions/index.js +0 -4
  258. package/dist/src/web/frontend/node_modules/.date-fns-XMls0sMk/esm/fp/eachMinuteOfInterval/index.js +0 -4
  259. package/dist/src/web/frontend/node_modules/.date-fns-XMls0sMk/esm/fp/eachMinuteOfIntervalWithOptions/index.js +0 -4
  260. package/dist/src/web/frontend/node_modules/.date-fns-XMls0sMk/esm/parse/_lib/constants.js +0 -48
  261. package/dist/src/web/frontend/node_modules/.date-fns-XMls0sMk/esm/parse/_lib/parsers/AMPMMidnightParser.js +0 -64
  262. package/dist/src/web/frontend/node_modules/.date-fns-XMls0sMk/esm/parse/_lib/parsers/AMPMParser.js +0 -64
  263. package/dist/src/web/frontend/node_modules/.date-fns-XMls0sMk/esm/parse/_lib/parsers/DateParser.js +0 -64
  264. package/dist/src/web/frontend/node_modules/.date-fns-XMls0sMk/esm/parse/_lib/parsers/DayOfYearParser.js +0 -60
  265. package/dist/src/web/frontend/node_modules/.date-fns-XMls0sMk/esm/parse/_lib/parsers/DayParser.js +0 -88
  266. package/dist/src/web/frontend/node_modules/.date-fns-XMls0sMk/esm/parse/_lib/parsers/DayPeriodParser.js +0 -64
  267. package/dist/src/web/frontend/node_modules/.date-fns-XMls0sMk/esm/parse/_lib/parsers/EraParser.js +0 -62
  268. package/dist/src/web/frontend/node_modules/.date-fns-XMls0sMk/esm/parse/_lib/parsers/ExtendedYearParser.js +0 -40
  269. package/dist/src/web/frontend/node_modules/.date-fns-XMls0sMk/esm/parse/_lib/parsers/FractionOfSecondParser.js +0 -39
  270. package/dist/src/web/frontend/node_modules/.date-fns-XMls0sMk/esm/parse/_lib/parsers/Hour0To11Parser.js +0 -56
  271. package/dist/src/web/frontend/node_modules/.date-fns-XMls0sMk/esm/parse/_lib/parsers/Hour0to23Parser.js +0 -51
  272. package/dist/src/web/frontend/node_modules/.date-fns-XMls0sMk/esm/parse/_lib/parsers/Hour1To24Parser.js +0 -52
  273. package/dist/src/web/frontend/node_modules/.date-fns-XMls0sMk/esm/parse/_lib/parsers/Hour1to12Parser.js +0 -58
  274. package/dist/src/web/frontend/node_modules/.date-fns-XMls0sMk/parse/_lib/constants.js +0 -55
  275. package/dist/src/web/frontend/node_modules/.date-fns-XMls0sMk/parse/_lib/parsers/AMPMMidnightParser.js +0 -72
  276. package/dist/src/web/frontend/node_modules/.date-fns-XMls0sMk/parse/_lib/parsers/AMPMParser.js +0 -72
  277. package/dist/src/web/frontend/node_modules/.date-fns-XMls0sMk/parse/_lib/parsers/DateParser.js +0 -72
  278. package/dist/src/web/frontend/node_modules/.date-fns-XMls0sMk/parse/_lib/parsers/DayOfYearParser.js +0 -68
  279. package/dist/src/web/frontend/node_modules/.date-fns-XMls0sMk/parse/_lib/parsers/DayParser.js +0 -97
  280. package/dist/src/web/frontend/node_modules/.date-fns-XMls0sMk/parse/_lib/parsers/DayPeriodParser.js +0 -73
  281. package/dist/src/web/frontend/node_modules/.date-fns-XMls0sMk/parse/_lib/parsers/EraParser.js +0 -70
  282. package/dist/src/web/frontend/node_modules/.date-fns-XMls0sMk/parse/_lib/parsers/ExtendedYearParser.js +0 -48
  283. package/dist/src/web/frontend/node_modules/.date-fns-XMls0sMk/parse/_lib/parsers/FractionOfSecondParser.js +0 -47
  284. package/dist/src/web/frontend/node_modules/.date-fns-XMls0sMk/parse/_lib/parsers/Hour0To11Parser.js +0 -64
  285. package/dist/src/web/frontend/node_modules/.date-fns-XMls0sMk/parse/_lib/parsers/Hour0to23Parser.js +0 -59
  286. package/dist/src/web/frontend/node_modules/.date-fns-XMls0sMk/parse/_lib/parsers/Hour1To24Parser.js +0 -60
  287. package/dist/src/web/frontend/node_modules/.date-fns-XMls0sMk/parse/_lib/parsers/Hour1to12Parser.js +0 -66
  288. package/dist/src/web/frontend/node_modules/.detect-port-alt-Qap6bfIk/index.js +0 -3
  289. package/dist/src/web/frontend/node_modules/.detect-port-alt-Qap6bfIk/lib/detect-port.js +0 -114
  290. package/dist/src/web/frontend/node_modules/.detect-port-alt-Qap6bfIk/node_modules/debug/karma.conf.js +0 -70
  291. package/dist/src/web/frontend/node_modules/.detect-port-alt-Qap6bfIk/node_modules/debug/node.js +0 -1
  292. package/dist/src/web/frontend/node_modules/.detect-port-alt-Qap6bfIk/node_modules/debug/src/browser.js +0 -185
  293. package/dist/src/web/frontend/node_modules/.detect-port-alt-Qap6bfIk/node_modules/debug/src/debug.js +0 -202
  294. package/dist/src/web/frontend/node_modules/.detect-port-alt-Qap6bfIk/node_modules/debug/src/index.js +0 -10
  295. package/dist/src/web/frontend/node_modules/.detect-port-alt-Qap6bfIk/node_modules/debug/src/inspector-log.js +0 -15
  296. package/dist/src/web/frontend/node_modules/.detect-port-alt-Qap6bfIk/node_modules/debug/src/node.js +0 -248
  297. package/dist/src/web/frontend/node_modules/.detect-port-alt-Qap6bfIk/node_modules/ms/index.js +0 -152
  298. package/dist/src/web/frontend/node_modules/.ejs-BTDa9X3p/bin/cli.js +0 -211
  299. package/dist/src/web/frontend/node_modules/.ejs-BTDa9X3p/ejs.js +0 -1746
  300. package/dist/src/web/frontend/node_modules/.ejs-BTDa9X3p/ejs.min.js +0 -1
  301. package/dist/src/web/frontend/node_modules/.ejs-BTDa9X3p/jakefile.js +0 -88
  302. package/dist/src/web/frontend/node_modules/.ejs-BTDa9X3p/lib/ejs.js +0 -952
  303. package/dist/src/web/frontend/node_modules/.ejs-BTDa9X3p/lib/utils.js +0 -250
  304. package/dist/src/web/frontend/node_modules/.escodegen-dt8nupst/bin/escodegen.js +0 -77
  305. package/dist/src/web/frontend/node_modules/.escodegen-dt8nupst/bin/esgenerate.js +0 -64
  306. package/dist/src/web/frontend/node_modules/.escodegen-dt8nupst/escodegen.js +0 -2667
  307. package/dist/src/web/frontend/node_modules/.escodegen-dt8nupst/node_modules/source-map/dist/source-map.debug.js +0 -3234
  308. package/dist/src/web/frontend/node_modules/.escodegen-dt8nupst/node_modules/source-map/dist/source-map.js +0 -3233
  309. package/dist/src/web/frontend/node_modules/.escodegen-dt8nupst/node_modules/source-map/dist/source-map.min.js +0 -2
  310. package/dist/src/web/frontend/node_modules/.escodegen-dt8nupst/node_modules/source-map/lib/array-set.js +0 -121
  311. package/dist/src/web/frontend/node_modules/.escodegen-dt8nupst/node_modules/source-map/lib/base64-vlq.js +0 -140
  312. package/dist/src/web/frontend/node_modules/.escodegen-dt8nupst/node_modules/source-map/lib/base64.js +0 -67
  313. package/dist/src/web/frontend/node_modules/.escodegen-dt8nupst/node_modules/source-map/lib/binary-search.js +0 -111
  314. package/dist/src/web/frontend/node_modules/.escodegen-dt8nupst/node_modules/source-map/lib/mapping-list.js +0 -79
  315. package/dist/src/web/frontend/node_modules/.escodegen-dt8nupst/node_modules/source-map/lib/quick-sort.js +0 -114
  316. package/dist/src/web/frontend/node_modules/.escodegen-dt8nupst/node_modules/source-map/lib/source-map-consumer.js +0 -1145
  317. package/dist/src/web/frontend/node_modules/.escodegen-dt8nupst/node_modules/source-map/lib/source-map-generator.js +0 -425
  318. package/dist/src/web/frontend/node_modules/.escodegen-dt8nupst/node_modules/source-map/lib/source-node.js +0 -413
  319. package/dist/src/web/frontend/node_modules/.escodegen-dt8nupst/node_modules/source-map/lib/util.js +0 -488
  320. package/dist/src/web/frontend/node_modules/.escodegen-dt8nupst/node_modules/source-map/source-map.js +0 -8
  321. package/dist/src/web/frontend/node_modules/.eslint-60wj8XRy/bin/eslint.js +0 -173
  322. package/dist/src/web/frontend/node_modules/.eslint-60wj8XRy/conf/config-schema.js +0 -93
  323. package/dist/src/web/frontend/node_modules/.eslint-60wj8XRy/conf/default-cli-options.js +0 -32
  324. package/dist/src/web/frontend/node_modules/.eslint-60wj8XRy/conf/globals.js +0 -154
  325. package/dist/src/web/frontend/node_modules/.eslint-60wj8XRy/lib/api.js +0 -54
  326. package/dist/src/web/frontend/node_modules/.eslint-60wj8XRy/lib/cli-engine/cli-engine.js +0 -1078
  327. package/dist/src/web/frontend/node_modules/.eslint-60wj8XRy/lib/cli-engine/file-enumerator.js +0 -547
  328. package/dist/src/web/frontend/node_modules/.eslint-60wj8XRy/lib/cli-engine/formatters/checkstyle.js +0 -60
  329. package/dist/src/web/frontend/node_modules/.eslint-60wj8XRy/lib/cli-engine/formatters/compact.js +0 -60
  330. package/dist/src/web/frontend/node_modules/.eslint-60wj8XRy/lib/cli-engine/formatters/html.js +0 -351
  331. package/dist/src/web/frontend/node_modules/.eslint-60wj8XRy/lib/cli-engine/formatters/jslint-xml.js +0 -41
  332. package/dist/src/web/frontend/node_modules/.eslint-60wj8XRy/lib/cli-engine/formatters/json-with-metadata.js +0 -16
  333. package/dist/src/web/frontend/node_modules/.eslint-60wj8XRy/lib/cli-engine/formatters/json.js +0 -13
  334. package/dist/src/web/frontend/node_modules/.eslint-60wj8XRy/lib/cli-engine/formatters/junit.js +0 -82
  335. package/dist/src/web/frontend/node_modules/.eslint-60wj8XRy/lib/cli-engine/formatters/stylish.js +0 -101
  336. package/dist/src/web/frontend/node_modules/.eslint-60wj8XRy/lib/cli-engine/formatters/tap.js +0 -95
  337. package/dist/src/web/frontend/node_modules/.eslint-60wj8XRy/lib/cli-engine/formatters/unix.js +0 -58
  338. package/dist/src/web/frontend/node_modules/.eslint-60wj8XRy/lib/cli-engine/formatters/visualstudio.js +0 -63
  339. package/dist/src/web/frontend/node_modules/.eslint-60wj8XRy/lib/cli-engine/hash.js +0 -35
  340. package/dist/src/web/frontend/node_modules/.eslint-60wj8XRy/lib/cli-engine/index.js +0 -7
  341. package/dist/src/web/frontend/node_modules/.eslint-60wj8XRy/lib/cli-engine/lint-result-cache.js +0 -203
  342. package/dist/src/web/frontend/node_modules/.eslint-60wj8XRy/lib/cli-engine/load-rules.js +0 -46
  343. package/dist/src/web/frontend/node_modules/.eslint-60wj8XRy/lib/cli-engine/xml-escape.js +0 -34
  344. package/dist/src/web/frontend/node_modules/.eslint-60wj8XRy/lib/cli.js +0 -471
  345. package/dist/src/web/frontend/node_modules/.eslint-60wj8XRy/lib/config/default-config.js +0 -67
  346. package/dist/src/web/frontend/node_modules/.eslint-60wj8XRy/lib/config/flat-config-array.js +0 -380
  347. package/dist/src/web/frontend/node_modules/.eslint-60wj8XRy/lib/config/flat-config-helpers.js +0 -111
  348. package/dist/src/web/frontend/node_modules/.eslint-60wj8XRy/lib/config/flat-config-schema.js +0 -598
  349. package/dist/src/web/frontend/node_modules/.eslint-60wj8XRy/lib/config/rule-validator.js +0 -158
  350. package/dist/src/web/frontend/node_modules/.eslint-60wj8XRy/lib/eslint/eslint-helpers.js +0 -932
  351. package/dist/src/web/frontend/node_modules/.eslint-60wj8XRy/lib/eslint/eslint.js +0 -707
  352. package/dist/src/web/frontend/node_modules/.eslint-60wj8XRy/lib/eslint/flat-eslint.js +0 -1159
  353. package/dist/src/web/frontend/node_modules/.eslint-60wj8XRy/lib/eslint/index.js +0 -9
  354. package/dist/src/web/frontend/node_modules/.eslint-60wj8XRy/lib/linter/apply-disable-directives.js +0 -465
  355. package/dist/src/web/frontend/node_modules/.eslint-60wj8XRy/lib/linter/code-path-analysis/code-path-analyzer.js +0 -852
  356. package/dist/src/web/frontend/node_modules/.eslint-60wj8XRy/lib/linter/code-path-analysis/code-path-segment.js +0 -263
  357. package/dist/src/web/frontend/node_modules/.eslint-60wj8XRy/lib/linter/code-path-analysis/code-path-state.js +0 -2348
  358. package/dist/src/web/frontend/node_modules/.eslint-60wj8XRy/lib/linter/code-path-analysis/code-path.js +0 -342
  359. package/dist/src/web/frontend/node_modules/.eslint-60wj8XRy/lib/linter/code-path-analysis/debug-helpers.js +0 -203
  360. package/dist/src/web/frontend/node_modules/.eslint-60wj8XRy/lib/linter/code-path-analysis/fork-context.js +0 -349
  361. package/dist/src/web/frontend/node_modules/.eslint-60wj8XRy/lib/linter/code-path-analysis/id-generator.js +0 -45
  362. package/dist/src/web/frontend/node_modules/.eslint-60wj8XRy/lib/linter/config-comment-parser.js +0 -185
  363. package/dist/src/web/frontend/node_modules/.eslint-60wj8XRy/lib/linter/index.js +0 -13
  364. package/dist/src/web/frontend/node_modules/.eslint-60wj8XRy/lib/linter/interpolate.js +0 -28
  365. package/dist/src/web/frontend/node_modules/.eslint-60wj8XRy/lib/linter/linter.js +0 -2119
  366. package/dist/src/web/frontend/node_modules/.eslint-60wj8XRy/lib/linter/node-event-generator.js +0 -354
  367. package/dist/src/web/frontend/node_modules/.eslint-60wj8XRy/lib/linter/report-translator.js +0 -369
  368. package/dist/src/web/frontend/node_modules/.eslint-60wj8XRy/lib/linter/rule-fixer.js +0 -140
  369. package/dist/src/web/frontend/node_modules/.eslint-60wj8XRy/lib/linter/rules.js +0 -80
  370. package/dist/src/web/frontend/node_modules/.eslint-60wj8XRy/lib/linter/safe-emitter.js +0 -52
  371. package/dist/src/web/frontend/node_modules/.eslint-60wj8XRy/lib/linter/source-code-fixer.js +0 -152
  372. package/dist/src/web/frontend/node_modules/.eslint-60wj8XRy/lib/linter/timing.js +0 -161
  373. package/dist/src/web/frontend/node_modules/.eslint-60wj8XRy/lib/options.js +0 -398
  374. package/dist/src/web/frontend/node_modules/.eslint-60wj8XRy/lib/rule-tester/flat-rule-tester.js +0 -1131
  375. package/dist/src/web/frontend/node_modules/.eslint-60wj8XRy/lib/rule-tester/index.js +0 -5
  376. package/dist/src/web/frontend/node_modules/.eslint-60wj8XRy/lib/rule-tester/rule-tester.js +0 -1206
  377. package/dist/src/web/frontend/node_modules/.eslint-60wj8XRy/lib/rules/accessor-pairs.js +0 -346
  378. package/dist/src/web/frontend/node_modules/.eslint-60wj8XRy/lib/rules/array-bracket-newline.js +0 -261
  379. package/dist/src/web/frontend/node_modules/.eslint-60wj8XRy/lib/rules/array-bracket-spacing.js +0 -244
  380. package/dist/src/web/frontend/node_modules/.eslint-60wj8XRy/lib/rules/array-callback-return.js +0 -446
  381. package/dist/src/web/frontend/node_modules/.eslint-60wj8XRy/lib/rules/array-element-newline.js +0 -311
  382. package/dist/src/web/frontend/node_modules/.eslint-60wj8XRy/lib/rules/arrow-body-style.js +0 -296
  383. package/dist/src/web/frontend/node_modules/.eslint-60wj8XRy/lib/rules/arrow-parens.js +0 -186
  384. package/dist/src/web/frontend/node_modules/.eslint-60wj8XRy/lib/rules/arrow-spacing.js +0 -164
  385. package/dist/src/web/frontend/node_modules/.eslint-60wj8XRy/lib/rules/block-scoped-var.js +0 -135
  386. package/dist/src/web/frontend/node_modules/.eslint-60wj8XRy/lib/rules/block-spacing.js +0 -174
  387. package/dist/src/web/frontend/node_modules/.eslint-60wj8XRy/lib/rules/brace-style.js +0 -197
  388. package/dist/src/web/frontend/node_modules/.eslint-60wj8XRy/lib/rules/callback-return.js +0 -187
  389. package/dist/src/web/frontend/node_modules/.eslint-60wj8XRy/lib/rules/camelcase.js +0 -399
  390. package/dist/src/web/frontend/node_modules/.eslint-60wj8XRy/lib/rules/capitalized-comments.js +0 -300
  391. package/dist/src/web/frontend/node_modules/.eslint-60wj8XRy/lib/rules/class-methods-use-this.js +0 -187
  392. package/dist/src/web/frontend/node_modules/.eslint-60wj8XRy/lib/rules/comma-dangle.js +0 -373
  393. package/dist/src/web/frontend/node_modules/.eslint-60wj8XRy/lib/rules/comma-spacing.js +0 -192
  394. package/dist/src/web/frontend/node_modules/.eslint-60wj8XRy/lib/rules/comma-style.js +0 -314
  395. package/dist/src/web/frontend/node_modules/.eslint-60wj8XRy/lib/rules/complexity.js +0 -165
  396. package/dist/src/web/frontend/node_modules/.eslint-60wj8XRy/lib/rules/computed-property-spacing.js +0 -208
  397. package/dist/src/web/frontend/node_modules/.eslint-60wj8XRy/lib/rules/consistent-return.js +0 -210
  398. package/dist/src/web/frontend/node_modules/.eslint-60wj8XRy/lib/rules/consistent-this.js +0 -153
  399. package/dist/src/web/frontend/node_modules/.eslint-60wj8XRy/lib/rules/constructor-super.js +0 -446
  400. package/dist/src/web/frontend/node_modules/.eslint-60wj8XRy/lib/rules/curly.js +0 -486
  401. package/dist/src/web/frontend/node_modules/.eslint-60wj8XRy/lib/rules/default-case-last.js +0 -44
  402. package/dist/src/web/frontend/node_modules/.eslint-60wj8XRy/lib/rules/default-case.js +0 -97
  403. package/dist/src/web/frontend/node_modules/.eslint-60wj8XRy/lib/rules/default-param-last.js +0 -62
  404. package/dist/src/web/frontend/node_modules/.eslint-60wj8XRy/lib/rules/dot-location.js +0 -108
  405. package/dist/src/web/frontend/node_modules/.eslint-60wj8XRy/lib/rules/dot-notation.js +0 -176
  406. package/dist/src/web/frontend/node_modules/.eslint-60wj8XRy/lib/rules/eol-last.js +0 -115
  407. package/dist/src/web/frontend/node_modules/.eslint-60wj8XRy/lib/rules/eqeqeq.js +0 -174
  408. package/dist/src/web/frontend/node_modules/.eslint-60wj8XRy/lib/rules/for-direction.js +0 -140
  409. package/dist/src/web/frontend/node_modules/.eslint-60wj8XRy/lib/rules/func-call-spacing.js +0 -233
  410. package/dist/src/web/frontend/node_modules/.eslint-60wj8XRy/lib/rules/func-name-matching.js +0 -253
  411. package/dist/src/web/frontend/node_modules/.eslint-60wj8XRy/lib/rules/func-names.js +0 -191
  412. package/dist/src/web/frontend/node_modules/.eslint-60wj8XRy/lib/rules/func-style.js +0 -98
  413. package/dist/src/web/frontend/node_modules/.eslint-60wj8XRy/lib/rules/function-call-argument-newline.js +0 -125
  414. package/dist/src/web/frontend/node_modules/.eslint-60wj8XRy/lib/rules/function-paren-newline.js +0 -292
  415. package/dist/src/web/frontend/node_modules/.eslint-60wj8XRy/lib/rules/generator-star-spacing.js +0 -209
  416. package/dist/src/web/frontend/node_modules/.eslint-60wj8XRy/lib/rules/getter-return.js +0 -204
  417. package/dist/src/web/frontend/node_modules/.eslint-60wj8XRy/lib/rules/global-require.js +0 -90
  418. package/dist/src/web/frontend/node_modules/.eslint-60wj8XRy/lib/rules/grouped-accessor-pairs.js +0 -215
  419. package/dist/src/web/frontend/node_modules/.eslint-60wj8XRy/lib/rules/guard-for-in.js +0 -76
  420. package/dist/src/web/frontend/node_modules/.eslint-60wj8XRy/lib/rules/handle-callback-err.js +0 -101
  421. package/dist/src/web/frontend/node_modules/.eslint-60wj8XRy/lib/rules/id-blacklist.js +0 -246
  422. package/dist/src/web/frontend/node_modules/.eslint-60wj8XRy/lib/rules/id-denylist.js +0 -228
  423. package/dist/src/web/frontend/node_modules/.eslint-60wj8XRy/lib/rules/id-length.js +0 -177
  424. package/dist/src/web/frontend/node_modules/.eslint-60wj8XRy/lib/rules/id-match.js +0 -299
  425. package/dist/src/web/frontend/node_modules/.eslint-60wj8XRy/lib/rules/implicit-arrow-linebreak.js +0 -84
  426. package/dist/src/web/frontend/node_modules/.eslint-60wj8XRy/lib/rules/indent-legacy.js +0 -1126
  427. package/dist/src/web/frontend/node_modules/.eslint-60wj8XRy/lib/rules/indent.js +0 -1803
  428. package/dist/src/web/frontend/node_modules/.eslint-60wj8XRy/lib/rules/index.js +0 -306
  429. package/dist/src/web/frontend/node_modules/.eslint-60wj8XRy/lib/rules/init-declarations.js +0 -139
  430. package/dist/src/web/frontend/node_modules/.eslint-60wj8XRy/lib/rules/jsx-quotes.js +0 -98
  431. package/dist/src/web/frontend/node_modules/.eslint-60wj8XRy/lib/rules/key-spacing.js +0 -687
  432. package/dist/src/web/frontend/node_modules/.eslint-60wj8XRy/lib/rules/keyword-spacing.js +0 -640
  433. package/dist/src/web/frontend/node_modules/.eslint-60wj8XRy/lib/rules/line-comment-position.js +0 -122
  434. package/dist/src/web/frontend/node_modules/.eslint-60wj8XRy/lib/rules/linebreak-style.js +0 -108
  435. package/dist/src/web/frontend/node_modules/.eslint-60wj8XRy/lib/rules/lines-around-comment.js +0 -471
  436. package/dist/src/web/frontend/node_modules/.eslint-60wj8XRy/lib/rules/lines-around-directive.js +0 -201
  437. package/dist/src/web/frontend/node_modules/.eslint-60wj8XRy/lib/rules/lines-between-class-members.js +0 -269
  438. package/dist/src/web/frontend/node_modules/.eslint-60wj8XRy/lib/rules/logical-assignment-operators.js +0 -504
  439. package/dist/src/web/frontend/node_modules/.eslint-60wj8XRy/lib/rules/max-classes-per-file.js +0 -89
  440. package/dist/src/web/frontend/node_modules/.eslint-60wj8XRy/lib/rules/max-depth.js +0 -156
  441. package/dist/src/web/frontend/node_modules/.eslint-60wj8XRy/lib/rules/max-len.js +0 -440
  442. package/dist/src/web/frontend/node_modules/.eslint-60wj8XRy/lib/rules/max-lines-per-function.js +0 -213
  443. package/dist/src/web/frontend/node_modules/.eslint-60wj8XRy/lib/rules/max-lines.js +0 -193
  444. package/dist/src/web/frontend/node_modules/.eslint-60wj8XRy/lib/rules/max-nested-callbacks.js +0 -117
  445. package/dist/src/web/frontend/node_modules/.eslint-60wj8XRy/lib/rules/max-params.js +0 -102
  446. package/dist/src/web/frontend/node_modules/.eslint-60wj8XRy/lib/rules/max-statements-per-line.js +0 -199
  447. package/dist/src/web/frontend/node_modules/.eslint-60wj8XRy/lib/rules/max-statements.js +0 -184
  448. package/dist/src/web/frontend/node_modules/.eslint-60wj8XRy/lib/rules/multiline-comment-style.js +0 -474
  449. package/dist/src/web/frontend/node_modules/.eslint-60wj8XRy/lib/rules/multiline-ternary.js +0 -174
  450. package/dist/src/web/frontend/node_modules/.eslint-60wj8XRy/lib/rules/new-cap.js +0 -276
  451. package/dist/src/web/frontend/node_modules/.eslint-60wj8XRy/lib/rules/new-parens.js +0 -93
  452. package/dist/src/web/frontend/node_modules/.eslint-60wj8XRy/lib/rules/newline-after-var.js +0 -253
  453. package/dist/src/web/frontend/node_modules/.eslint-60wj8XRy/lib/rules/newline-before-return.js +0 -217
  454. package/dist/src/web/frontend/node_modules/.eslint-60wj8XRy/lib/rules/newline-per-chained-call.js +0 -126
  455. package/dist/src/web/frontend/node_modules/.eslint-60wj8XRy/lib/rules/no-alert.js +0 -138
  456. package/dist/src/web/frontend/node_modules/.eslint-60wj8XRy/lib/rules/no-array-constructor.js +0 -133
  457. package/dist/src/web/frontend/node_modules/.eslint-60wj8XRy/lib/rules/no-async-promise-executor.js +0 -39
  458. package/dist/src/web/frontend/node_modules/.eslint-60wj8XRy/lib/rules/no-await-in-loop.js +0 -106
  459. package/dist/src/web/frontend/node_modules/.eslint-60wj8XRy/lib/rules/no-bitwise.js +0 -119
  460. package/dist/src/web/frontend/node_modules/.eslint-60wj8XRy/lib/rules/no-buffer-constructor.js +0 -50
  461. package/dist/src/web/frontend/node_modules/.eslint-60wj8XRy/lib/rules/no-caller.js +0 -46
  462. package/dist/src/web/frontend/node_modules/.eslint-60wj8XRy/lib/rules/no-case-declarations.js +0 -64
  463. package/dist/src/web/frontend/node_modules/.eslint-60wj8XRy/lib/rules/no-catch-shadow.js +0 -82
  464. package/dist/src/web/frontend/node_modules/.eslint-60wj8XRy/lib/rules/no-class-assign.js +0 -63
  465. package/dist/src/web/frontend/node_modules/.eslint-60wj8XRy/lib/rules/no-compare-neg-zero.js +0 -60
  466. package/dist/src/web/frontend/node_modules/.eslint-60wj8XRy/lib/rules/no-cond-assign.js +0 -159
  467. package/dist/src/web/frontend/node_modules/.eslint-60wj8XRy/lib/rules/no-confusing-arrow.js +0 -92
  468. package/dist/src/web/frontend/node_modules/.eslint-60wj8XRy/lib/rules/no-console.js +0 -207
  469. package/dist/src/web/frontend/node_modules/.eslint-60wj8XRy/lib/rules/no-const-assign.js +0 -56
  470. package/dist/src/web/frontend/node_modules/.eslint-60wj8XRy/lib/rules/no-constant-binary-expression.js +0 -509
  471. package/dist/src/web/frontend/node_modules/.eslint-60wj8XRy/lib/rules/no-constant-condition.js +0 -150
  472. package/dist/src/web/frontend/node_modules/.eslint-60wj8XRy/lib/rules/no-constructor-return.js +0 -62
  473. package/dist/src/web/frontend/node_modules/.eslint-60wj8XRy/lib/rules/no-continue.js +0 -39
  474. package/dist/src/web/frontend/node_modules/.eslint-60wj8XRy/lib/rules/no-control-regex.js +0 -138
  475. package/dist/src/web/frontend/node_modules/.eslint-60wj8XRy/lib/rules/no-debugger.js +0 -43
  476. package/dist/src/web/frontend/node_modules/.eslint-60wj8XRy/lib/rules/no-delete-var.js +0 -42
  477. package/dist/src/web/frontend/node_modules/.eslint-60wj8XRy/lib/rules/no-div-regex.js +0 -53
  478. package/dist/src/web/frontend/node_modules/.eslint-60wj8XRy/lib/rules/no-dupe-args.js +0 -82
  479. package/dist/src/web/frontend/node_modules/.eslint-60wj8XRy/lib/rules/no-dupe-class-members.js +0 -104
  480. package/dist/src/web/frontend/node_modules/.eslint-60wj8XRy/lib/rules/no-dupe-else-if.js +0 -122
  481. package/dist/src/web/frontend/node_modules/.eslint-60wj8XRy/lib/rules/no-dupe-keys.js +0 -142
  482. package/dist/src/web/frontend/node_modules/.eslint-60wj8XRy/lib/rules/no-duplicate-case.js +0 -71
  483. package/dist/src/web/frontend/node_modules/.eslint-60wj8XRy/lib/rules/no-duplicate-imports.js +0 -290
  484. package/dist/src/web/frontend/node_modules/.eslint-60wj8XRy/lib/rules/no-else-return.js +0 -405
  485. package/dist/src/web/frontend/node_modules/.eslint-60wj8XRy/lib/rules/no-empty-character-class.js +0 -76
  486. package/dist/src/web/frontend/node_modules/.eslint-60wj8XRy/lib/rules/no-empty-function.js +0 -167
  487. package/dist/src/web/frontend/node_modules/.eslint-60wj8XRy/lib/rules/no-empty-pattern.js +0 -78
  488. package/dist/src/web/frontend/node_modules/.eslint-60wj8XRy/lib/rules/no-empty-static-block.js +0 -47
  489. package/dist/src/web/frontend/node_modules/.eslint-60wj8XRy/lib/rules/no-empty.js +0 -103
  490. package/dist/src/web/frontend/node_modules/.eslint-60wj8XRy/lib/rules/no-eq-null.js +0 -46
  491. package/dist/src/web/frontend/node_modules/.eslint-60wj8XRy/lib/rules/no-eval.js +0 -286
  492. package/dist/src/web/frontend/node_modules/.eslint-60wj8XRy/lib/rules/no-ex-assign.js +0 -54
  493. package/dist/src/web/frontend/node_modules/.eslint-60wj8XRy/lib/rules/no-extend-native.js +0 -179
  494. package/dist/src/web/frontend/node_modules/.eslint-60wj8XRy/lib/rules/no-extra-bind.js +0 -213
  495. package/dist/src/web/frontend/node_modules/.eslint-60wj8XRy/lib/rules/no-extra-boolean-cast.js +0 -317
  496. package/dist/src/web/frontend/node_modules/.eslint-60wj8XRy/lib/rules/no-extra-label.js +0 -149
  497. package/dist/src/web/frontend/node_modules/.eslint-60wj8XRy/lib/rules/no-extra-parens.js +0 -1322
  498. package/dist/src/web/frontend/node_modules/.eslint-60wj8XRy/lib/rules/no-extra-semi.js +0 -147
  499. package/dist/src/web/frontend/node_modules/.eslint-60wj8XRy/lib/rules/no-fallthrough.js +0 -196
  500. package/dist/src/web/frontend/node_modules/.eslint-60wj8XRy/lib/rules/no-floating-decimal.js +0 -73
  501. package/dist/src/web/frontend/node_modules/.eslint-60wj8XRy/lib/rules/no-func-assign.js +0 -78
  502. package/dist/src/web/frontend/node_modules/.eslint-60wj8XRy/lib/rules/no-global-assign.js +0 -95
  503. package/dist/src/web/frontend/node_modules/.eslint-60wj8XRy/lib/rules/no-implicit-coercion.js +0 -380
  504. package/dist/src/web/frontend/node_modules/.eslint-60wj8XRy/lib/rules/no-implicit-globals.js +0 -146
  505. package/dist/src/web/frontend/node_modules/.eslint-60wj8XRy/lib/rules/no-implied-eval.js +0 -132
  506. package/dist/src/web/frontend/node_modules/.eslint-60wj8XRy/lib/rules/no-import-assign.js +0 -241
  507. package/dist/src/web/frontend/node_modules/.eslint-60wj8XRy/lib/rules/no-inline-comments.js +0 -110
  508. package/dist/src/web/frontend/node_modules/.eslint-60wj8XRy/lib/rules/no-inner-declarations.js +0 -110
  509. package/dist/src/web/frontend/node_modules/.eslint-60wj8XRy/lib/rules/no-invalid-regexp.js +0 -194
  510. package/dist/src/web/frontend/node_modules/.eslint-60wj8XRy/lib/rules/no-invalid-this.js +0 -150
  511. package/dist/src/web/frontend/node_modules/.eslint-60wj8XRy/lib/rules/no-irregular-whitespace.js +0 -276
  512. package/dist/src/web/frontend/node_modules/.eslint-60wj8XRy/lib/rules/no-iterator.js +0 -52
  513. package/dist/src/web/frontend/node_modules/.eslint-60wj8XRy/lib/rules/no-label-var.js +0 -80
  514. package/dist/src/web/frontend/node_modules/.eslint-60wj8XRy/lib/rules/no-labels.js +0 -149
  515. package/dist/src/web/frontend/node_modules/.eslint-60wj8XRy/lib/rules/no-lone-blocks.js +0 -136
  516. package/dist/src/web/frontend/node_modules/.eslint-60wj8XRy/lib/rules/no-lonely-if.js +0 -88
  517. package/dist/src/web/frontend/node_modules/.eslint-60wj8XRy/lib/rules/no-loop-func.js +0 -206
  518. package/dist/src/web/frontend/node_modules/.eslint-60wj8XRy/lib/rules/no-loss-of-precision.js +0 -214
  519. package/dist/src/web/frontend/node_modules/.eslint-60wj8XRy/lib/rules/no-magic-numbers.js +0 -243
  520. package/dist/src/web/frontend/node_modules/.eslint-60wj8XRy/lib/rules/no-misleading-character-class.js +0 -300
  521. package/dist/src/web/frontend/node_modules/.eslint-60wj8XRy/lib/rules/no-mixed-operators.js +0 -229
  522. package/dist/src/web/frontend/node_modules/.eslint-60wj8XRy/lib/rules/no-mixed-requires.js +0 -238
  523. package/dist/src/web/frontend/node_modules/.eslint-60wj8XRy/lib/rules/no-mixed-spaces-and-tabs.js +0 -116
  524. package/dist/src/web/frontend/node_modules/.eslint-60wj8XRy/lib/rules/no-multi-assign.js +0 -67
  525. package/dist/src/web/frontend/node_modules/.eslint-60wj8XRy/lib/rules/no-multi-spaces.js +0 -141
  526. package/dist/src/web/frontend/node_modules/.eslint-60wj8XRy/lib/rules/no-multi-str.js +0 -65
  527. package/dist/src/web/frontend/node_modules/.eslint-60wj8XRy/lib/rules/no-multiple-empty-lines.js +0 -154
  528. package/dist/src/web/frontend/node_modules/.eslint-60wj8XRy/lib/rules/no-native-reassign.js +0 -98
  529. package/dist/src/web/frontend/node_modules/.eslint-60wj8XRy/lib/rules/no-negated-condition.js +0 -95
  530. package/dist/src/web/frontend/node_modules/.eslint-60wj8XRy/lib/rules/no-negated-in-lhs.js +0 -46
  531. package/dist/src/web/frontend/node_modules/.eslint-60wj8XRy/lib/rules/no-nested-ternary.js +0 -44
  532. package/dist/src/web/frontend/node_modules/.eslint-60wj8XRy/lib/rules/no-new-func.js +0 -87
  533. package/dist/src/web/frontend/node_modules/.eslint-60wj8XRy/lib/rules/no-new-native-nonconstructor.js +0 -66
  534. package/dist/src/web/frontend/node_modules/.eslint-60wj8XRy/lib/rules/no-new-object.js +0 -67
  535. package/dist/src/web/frontend/node_modules/.eslint-60wj8XRy/lib/rules/no-new-require.js +0 -50
  536. package/dist/src/web/frontend/node_modules/.eslint-60wj8XRy/lib/rules/no-new-symbol.js +0 -56
  537. package/dist/src/web/frontend/node_modules/.eslint-60wj8XRy/lib/rules/no-new-wrappers.js +0 -60
  538. package/dist/src/web/frontend/node_modules/.eslint-60wj8XRy/lib/rules/no-new.js +0 -43
  539. package/dist/src/web/frontend/node_modules/.eslint-60wj8XRy/lib/rules/no-nonoctal-decimal-escape.js +0 -148
  540. package/dist/src/web/frontend/node_modules/.eslint-60wj8XRy/lib/rules/no-obj-calls.js +0 -86
  541. package/dist/src/web/frontend/node_modules/.eslint-60wj8XRy/lib/rules/no-object-constructor.js +0 -117
  542. package/dist/src/web/frontend/node_modules/.eslint-60wj8XRy/lib/rules/no-octal-escape.js +0 -56
  543. package/dist/src/web/frontend/node_modules/.eslint-60wj8XRy/lib/rules/no-octal.js +0 -45
  544. package/dist/src/web/frontend/node_modules/.eslint-60wj8XRy/lib/rules/no-param-reassign.js +0 -230
  545. package/dist/src/web/frontend/node_modules/.eslint-60wj8XRy/lib/rules/no-path-concat.js +0 -64
  546. package/dist/src/web/frontend/node_modules/.eslint-60wj8XRy/lib/rules/no-plusplus.js +0 -105
  547. package/dist/src/web/frontend/node_modules/.eslint-60wj8XRy/lib/rules/no-process-env.js +0 -51
  548. package/dist/src/web/frontend/node_modules/.eslint-60wj8XRy/lib/rules/no-process-exit.js +0 -47
  549. package/dist/src/web/frontend/node_modules/.eslint-60wj8XRy/lib/rules/no-promise-executor-return.js +0 -263
  550. package/dist/src/web/frontend/node_modules/.eslint-60wj8XRy/lib/rules/no-proto.js +0 -48
  551. package/dist/src/web/frontend/node_modules/.eslint-60wj8XRy/lib/rules/no-prototype-builtins.js +0 -159
  552. package/dist/src/web/frontend/node_modules/.eslint-60wj8XRy/lib/rules/no-redeclare.js +0 -174
  553. package/dist/src/web/frontend/node_modules/.eslint-60wj8XRy/lib/rules/no-regex-spaces.js +0 -197
  554. package/dist/src/web/frontend/node_modules/.eslint-60wj8XRy/lib/rules/no-restricted-exports.js +0 -193
  555. package/dist/src/web/frontend/node_modules/.eslint-60wj8XRy/lib/rules/no-restricted-globals.js +0 -124
  556. package/dist/src/web/frontend/node_modules/.eslint-60wj8XRy/lib/rules/no-restricted-imports.js +0 -410
  557. package/dist/src/web/frontend/node_modules/.eslint-60wj8XRy/lib/rules/no-restricted-modules.js +0 -213
  558. package/dist/src/web/frontend/node_modules/.eslint-60wj8XRy/lib/rules/no-restricted-properties.js +0 -168
  559. package/dist/src/web/frontend/node_modules/.eslint-60wj8XRy/lib/rules/no-restricted-syntax.js +0 -70
  560. package/dist/src/web/frontend/node_modules/.eslint-60wj8XRy/lib/rules/no-return-assign.js +0 -80
  561. package/dist/src/web/frontend/node_modules/.eslint-60wj8XRy/lib/rules/no-return-await.js +0 -135
  562. package/dist/src/web/frontend/node_modules/.eslint-60wj8XRy/lib/rules/no-script-url.js +0 -61
  563. package/dist/src/web/frontend/node_modules/.eslint-60wj8XRy/lib/rules/no-self-assign.js +0 -183
  564. package/dist/src/web/frontend/node_modules/.eslint-60wj8XRy/lib/rules/no-self-compare.js +0 -60
  565. package/dist/src/web/frontend/node_modules/.eslint-60wj8XRy/lib/rules/no-sequences.js +0 -138
  566. package/dist/src/web/frontend/node_modules/.eslint-60wj8XRy/lib/rules/no-setter-return.js +0 -226
  567. package/dist/src/web/frontend/node_modules/.eslint-60wj8XRy/lib/rules/no-shadow-restricted-names.js +0 -65
  568. package/dist/src/web/frontend/node_modules/.eslint-60wj8XRy/lib/rules/no-shadow.js +0 -336
  569. package/dist/src/web/frontend/node_modules/.eslint-60wj8XRy/lib/rules/no-spaced-func.js +0 -83
  570. package/dist/src/web/frontend/node_modules/.eslint-60wj8XRy/lib/rules/no-sparse-arrays.js +0 -50
  571. package/dist/src/web/frontend/node_modules/.eslint-60wj8XRy/lib/rules/no-sync.js +0 -64
  572. package/dist/src/web/frontend/node_modules/.eslint-60wj8XRy/lib/rules/no-tabs.js +0 -81
  573. package/dist/src/web/frontend/node_modules/.eslint-60wj8XRy/lib/rules/no-template-curly-in-string.js +0 -44
  574. package/dist/src/web/frontend/node_modules/.eslint-60wj8XRy/lib/rules/no-ternary.js +0 -41
  575. package/dist/src/web/frontend/node_modules/.eslint-60wj8XRy/lib/rules/no-this-before-super.js +0 -331
  576. package/dist/src/web/frontend/node_modules/.eslint-60wj8XRy/lib/rules/no-throw-literal.js +0 -51
  577. package/dist/src/web/frontend/node_modules/.eslint-60wj8XRy/lib/rules/no-trailing-spaces.js +0 -193
  578. package/dist/src/web/frontend/node_modules/.eslint-60wj8XRy/lib/rules/no-undef-init.js +0 -75
  579. package/dist/src/web/frontend/node_modules/.eslint-60wj8XRy/lib/rules/no-undef.js +0 -79
  580. package/dist/src/web/frontend/node_modules/.eslint-60wj8XRy/lib/rules/no-undefined.js +0 -86
  581. package/dist/src/web/frontend/node_modules/.eslint-60wj8XRy/lib/rules/no-underscore-dangle.js +0 -335
  582. package/dist/src/web/frontend/node_modules/.eslint-60wj8XRy/lib/rules/no-unexpected-multiline.js +0 -120
  583. package/dist/src/web/frontend/node_modules/.eslint-60wj8XRy/lib/rules/no-unmodified-loop-condition.js +0 -360
  584. package/dist/src/web/frontend/node_modules/.eslint-60wj8XRy/lib/rules/no-unneeded-ternary.js +0 -166
  585. package/dist/src/web/frontend/node_modules/.eslint-60wj8XRy/lib/rules/no-unreachable-loop.js +0 -185
  586. package/dist/src/web/frontend/node_modules/.eslint-60wj8XRy/lib/rules/no-unreachable.js +0 -293
  587. package/dist/src/web/frontend/node_modules/.eslint-60wj8XRy/lib/rules/no-unsafe-finally.js +0 -111
  588. package/dist/src/web/frontend/node_modules/.eslint-60wj8XRy/lib/rules/no-unsafe-negation.js +0 -128
  589. package/dist/src/web/frontend/node_modules/.eslint-60wj8XRy/lib/rules/no-unsafe-optional-chaining.js +0 -205
  590. package/dist/src/web/frontend/node_modules/.eslint-60wj8XRy/lib/rules/no-unused-expressions.js +0 -186
  591. package/dist/src/web/frontend/node_modules/.eslint-60wj8XRy/lib/rules/no-unused-labels.js +0 -143
  592. package/dist/src/web/frontend/node_modules/.eslint-60wj8XRy/lib/rules/no-unused-private-class-members.js +0 -195
  593. package/dist/src/web/frontend/node_modules/.eslint-60wj8XRy/lib/rules/no-unused-vars.js +0 -718
  594. package/dist/src/web/frontend/node_modules/.eslint-60wj8XRy/lib/rules/no-use-before-define.js +0 -348
  595. package/dist/src/web/frontend/node_modules/.eslint-60wj8XRy/lib/rules/no-useless-backreference.js +0 -194
  596. package/dist/src/web/frontend/node_modules/.eslint-60wj8XRy/lib/rules/no-useless-call.js +0 -90
  597. package/dist/src/web/frontend/node_modules/.eslint-60wj8XRy/lib/rules/no-useless-catch.js +0 -57
  598. package/dist/src/web/frontend/node_modules/.eslint-60wj8XRy/lib/rules/no-useless-computed-key.js +0 -168
  599. package/dist/src/web/frontend/node_modules/.eslint-60wj8XRy/lib/rules/no-useless-concat.js +0 -115
@@ -1,1803 +0,0 @@
1
- /**
2
- * @fileoverview This rule sets a specific indentation style and width for your code
3
- *
4
- * @author Teddy Katz
5
- * @author Vitaly Puzrin
6
- * @author Gyandeep Singh
7
- * @deprecated in ESLint v8.53.0
8
- */
9
-
10
- "use strict";
11
-
12
- //------------------------------------------------------------------------------
13
- // Requirements
14
- //------------------------------------------------------------------------------
15
-
16
- const astUtils = require("./utils/ast-utils");
17
-
18
- //------------------------------------------------------------------------------
19
- // Rule Definition
20
- //------------------------------------------------------------------------------
21
-
22
- const KNOWN_NODES = new Set([
23
- "AssignmentExpression",
24
- "AssignmentPattern",
25
- "ArrayExpression",
26
- "ArrayPattern",
27
- "ArrowFunctionExpression",
28
- "AwaitExpression",
29
- "BlockStatement",
30
- "BinaryExpression",
31
- "BreakStatement",
32
- "CallExpression",
33
- "CatchClause",
34
- "ChainExpression",
35
- "ClassBody",
36
- "ClassDeclaration",
37
- "ClassExpression",
38
- "ConditionalExpression",
39
- "ContinueStatement",
40
- "DoWhileStatement",
41
- "DebuggerStatement",
42
- "EmptyStatement",
43
- "ExperimentalRestProperty",
44
- "ExperimentalSpreadProperty",
45
- "ExpressionStatement",
46
- "ForStatement",
47
- "ForInStatement",
48
- "ForOfStatement",
49
- "FunctionDeclaration",
50
- "FunctionExpression",
51
- "Identifier",
52
- "IfStatement",
53
- "Literal",
54
- "LabeledStatement",
55
- "LogicalExpression",
56
- "MemberExpression",
57
- "MetaProperty",
58
- "MethodDefinition",
59
- "NewExpression",
60
- "ObjectExpression",
61
- "ObjectPattern",
62
- "PrivateIdentifier",
63
- "Program",
64
- "Property",
65
- "PropertyDefinition",
66
- "RestElement",
67
- "ReturnStatement",
68
- "SequenceExpression",
69
- "SpreadElement",
70
- "StaticBlock",
71
- "Super",
72
- "SwitchCase",
73
- "SwitchStatement",
74
- "TaggedTemplateExpression",
75
- "TemplateElement",
76
- "TemplateLiteral",
77
- "ThisExpression",
78
- "ThrowStatement",
79
- "TryStatement",
80
- "UnaryExpression",
81
- "UpdateExpression",
82
- "VariableDeclaration",
83
- "VariableDeclarator",
84
- "WhileStatement",
85
- "WithStatement",
86
- "YieldExpression",
87
- "JSXFragment",
88
- "JSXOpeningFragment",
89
- "JSXClosingFragment",
90
- "JSXIdentifier",
91
- "JSXNamespacedName",
92
- "JSXMemberExpression",
93
- "JSXEmptyExpression",
94
- "JSXExpressionContainer",
95
- "JSXElement",
96
- "JSXClosingElement",
97
- "JSXOpeningElement",
98
- "JSXAttribute",
99
- "JSXSpreadAttribute",
100
- "JSXText",
101
- "ExportDefaultDeclaration",
102
- "ExportNamedDeclaration",
103
- "ExportAllDeclaration",
104
- "ExportSpecifier",
105
- "ImportDeclaration",
106
- "ImportSpecifier",
107
- "ImportDefaultSpecifier",
108
- "ImportNamespaceSpecifier",
109
- "ImportExpression"
110
- ]);
111
-
112
- /*
113
- * General rule strategy:
114
- * 1. An OffsetStorage instance stores a map of desired offsets, where each token has a specified offset from another
115
- * specified token or to the first column.
116
- * 2. As the AST is traversed, modify the desired offsets of tokens accordingly. For example, when entering a
117
- * BlockStatement, offset all of the tokens in the BlockStatement by 1 indent level from the opening curly
118
- * brace of the BlockStatement.
119
- * 3. After traversing the AST, calculate the expected indentation levels of every token according to the
120
- * OffsetStorage container.
121
- * 4. For each line, compare the expected indentation of the first token to the actual indentation in the file,
122
- * and report the token if the two values are not equal.
123
- */
124
-
125
-
126
- /**
127
- * A mutable map that stores (key, value) pairs. The keys are numeric indices, and must be unique.
128
- * This is intended to be a generic wrapper around a map with non-negative integer keys, so that the underlying implementation
129
- * can easily be swapped out.
130
- */
131
- class IndexMap {
132
-
133
- /**
134
- * Creates an empty map
135
- * @param {number} maxKey The maximum key
136
- */
137
- constructor(maxKey) {
138
-
139
- // Initializing the array with the maximum expected size avoids dynamic reallocations that could degrade performance.
140
- this._values = Array(maxKey + 1);
141
- }
142
-
143
- /**
144
- * Inserts an entry into the map.
145
- * @param {number} key The entry's key
146
- * @param {any} value The entry's value
147
- * @returns {void}
148
- */
149
- insert(key, value) {
150
- this._values[key] = value;
151
- }
152
-
153
- /**
154
- * Finds the value of the entry with the largest key less than or equal to the provided key
155
- * @param {number} key The provided key
156
- * @returns {*|undefined} The value of the found entry, or undefined if no such entry exists.
157
- */
158
- findLastNotAfter(key) {
159
- const values = this._values;
160
-
161
- for (let index = key; index >= 0; index--) {
162
- const value = values[index];
163
-
164
- if (value) {
165
- return value;
166
- }
167
- }
168
- return void 0;
169
- }
170
-
171
- /**
172
- * Deletes all of the keys in the interval [start, end)
173
- * @param {number} start The start of the range
174
- * @param {number} end The end of the range
175
- * @returns {void}
176
- */
177
- deleteRange(start, end) {
178
- this._values.fill(void 0, start, end);
179
- }
180
- }
181
-
182
- /**
183
- * A helper class to get token-based info related to indentation
184
- */
185
- class TokenInfo {
186
-
187
- /**
188
- * @param {SourceCode} sourceCode A SourceCode object
189
- */
190
- constructor(sourceCode) {
191
- this.sourceCode = sourceCode;
192
- this.firstTokensByLineNumber = new Map();
193
- const tokens = sourceCode.tokensAndComments;
194
-
195
- for (let i = 0; i < tokens.length; i++) {
196
- const token = tokens[i];
197
-
198
- if (!this.firstTokensByLineNumber.has(token.loc.start.line)) {
199
- this.firstTokensByLineNumber.set(token.loc.start.line, token);
200
- }
201
- if (!this.firstTokensByLineNumber.has(token.loc.end.line) && sourceCode.text.slice(token.range[1] - token.loc.end.column, token.range[1]).trim()) {
202
- this.firstTokensByLineNumber.set(token.loc.end.line, token);
203
- }
204
- }
205
- }
206
-
207
- /**
208
- * Gets the first token on a given token's line
209
- * @param {Token|ASTNode} token a node or token
210
- * @returns {Token} The first token on the given line
211
- */
212
- getFirstTokenOfLine(token) {
213
- return this.firstTokensByLineNumber.get(token.loc.start.line);
214
- }
215
-
216
- /**
217
- * Determines whether a token is the first token in its line
218
- * @param {Token} token The token
219
- * @returns {boolean} `true` if the token is the first on its line
220
- */
221
- isFirstTokenOfLine(token) {
222
- return this.getFirstTokenOfLine(token) === token;
223
- }
224
-
225
- /**
226
- * Get the actual indent of a token
227
- * @param {Token} token Token to examine. This should be the first token on its line.
228
- * @returns {string} The indentation characters that precede the token
229
- */
230
- getTokenIndent(token) {
231
- return this.sourceCode.text.slice(token.range[0] - token.loc.start.column, token.range[0]);
232
- }
233
- }
234
-
235
- /**
236
- * A class to store information on desired offsets of tokens from each other
237
- */
238
- class OffsetStorage {
239
-
240
- /**
241
- * @param {TokenInfo} tokenInfo a TokenInfo instance
242
- * @param {number} indentSize The desired size of each indentation level
243
- * @param {string} indentType The indentation character
244
- * @param {number} maxIndex The maximum end index of any token
245
- */
246
- constructor(tokenInfo, indentSize, indentType, maxIndex) {
247
- this._tokenInfo = tokenInfo;
248
- this._indentSize = indentSize;
249
- this._indentType = indentType;
250
-
251
- this._indexMap = new IndexMap(maxIndex);
252
- this._indexMap.insert(0, { offset: 0, from: null, force: false });
253
-
254
- this._lockedFirstTokens = new WeakMap();
255
- this._desiredIndentCache = new WeakMap();
256
- this._ignoredTokens = new WeakSet();
257
- }
258
-
259
- _getOffsetDescriptor(token) {
260
- return this._indexMap.findLastNotAfter(token.range[0]);
261
- }
262
-
263
- /**
264
- * Sets the offset column of token B to match the offset column of token A.
265
- * - **WARNING**: This matches a *column*, even if baseToken is not the first token on its line. In
266
- * most cases, `setDesiredOffset` should be used instead.
267
- * @param {Token} baseToken The first token
268
- * @param {Token} offsetToken The second token, whose offset should be matched to the first token
269
- * @returns {void}
270
- */
271
- matchOffsetOf(baseToken, offsetToken) {
272
-
273
- /*
274
- * lockedFirstTokens is a map from a token whose indentation is controlled by the "first" option to
275
- * the token that it depends on. For example, with the `ArrayExpression: first` option, the first
276
- * token of each element in the array after the first will be mapped to the first token of the first
277
- * element. The desired indentation of each of these tokens is computed based on the desired indentation
278
- * of the "first" element, rather than through the normal offset mechanism.
279
- */
280
- this._lockedFirstTokens.set(offsetToken, baseToken);
281
- }
282
-
283
- /**
284
- * Sets the desired offset of a token.
285
- *
286
- * This uses a line-based offset collapsing behavior to handle tokens on the same line.
287
- * For example, consider the following two cases:
288
- *
289
- * (
290
- * [
291
- * bar
292
- * ]
293
- * )
294
- *
295
- * ([
296
- * bar
297
- * ])
298
- *
299
- * Based on the first case, it's clear that the `bar` token needs to have an offset of 1 indent level (4 spaces) from
300
- * the `[` token, and the `[` token has to have an offset of 1 indent level from the `(` token. Since the `(` token is
301
- * the first on its line (with an indent of 0 spaces), the `bar` token needs to be offset by 2 indent levels (8 spaces)
302
- * from the start of its line.
303
- *
304
- * However, in the second case `bar` should only be indented by 4 spaces. This is because the offset of 1 indent level
305
- * between the `(` and the `[` tokens gets "collapsed" because the two tokens are on the same line. As a result, the
306
- * `(` token is mapped to the `[` token with an offset of 0, and the rule correctly decides that `bar` should be indented
307
- * by 1 indent level from the start of the line.
308
- *
309
- * This is useful because rule listeners can usually just call `setDesiredOffset` for all the tokens in the node,
310
- * without needing to check which lines those tokens are on.
311
- *
312
- * Note that since collapsing only occurs when two tokens are on the same line, there are a few cases where non-intuitive
313
- * behavior can occur. For example, consider the following cases:
314
- *
315
- * foo(
316
- * ).
317
- * bar(
318
- * baz
319
- * )
320
- *
321
- * foo(
322
- * ).bar(
323
- * baz
324
- * )
325
- *
326
- * Based on the first example, it would seem that `bar` should be offset by 1 indent level from `foo`, and `baz`
327
- * should be offset by 1 indent level from `bar`. However, this is not correct, because it would result in `baz`
328
- * being indented by 2 indent levels in the second case (since `foo`, `bar`, and `baz` are all on separate lines, no
329
- * collapsing would occur).
330
- *
331
- * Instead, the correct way would be to offset `baz` by 1 level from `bar`, offset `bar` by 1 level from the `)`, and
332
- * offset the `)` by 0 levels from `foo`. This ensures that the offset between `bar` and the `)` are correctly collapsed
333
- * in the second case.
334
- * @param {Token} token The token
335
- * @param {Token} fromToken The token that `token` should be offset from
336
- * @param {number} offset The desired indent level
337
- * @returns {void}
338
- */
339
- setDesiredOffset(token, fromToken, offset) {
340
- return this.setDesiredOffsets(token.range, fromToken, offset);
341
- }
342
-
343
- /**
344
- * Sets the desired offset of all tokens in a range
345
- * It's common for node listeners in this file to need to apply the same offset to a large, contiguous range of tokens.
346
- * Moreover, the offset of any given token is usually updated multiple times (roughly once for each node that contains
347
- * it). This means that the offset of each token is updated O(AST depth) times.
348
- * It would not be performant to store and update the offsets for each token independently, because the rule would end
349
- * up having a time complexity of O(number of tokens * AST depth), which is quite slow for large files.
350
- *
351
- * Instead, the offset tree is represented as a collection of contiguous offset ranges in a file. For example, the following
352
- * list could represent the state of the offset tree at a given point:
353
- *
354
- * - Tokens starting in the interval [0, 15) are aligned with the beginning of the file
355
- * - Tokens starting in the interval [15, 30) are offset by 1 indent level from the `bar` token
356
- * - Tokens starting in the interval [30, 43) are offset by 1 indent level from the `foo` token
357
- * - Tokens starting in the interval [43, 820) are offset by 2 indent levels from the `bar` token
358
- * - Tokens starting in the interval [820, ∞) are offset by 1 indent level from the `baz` token
359
- *
360
- * The `setDesiredOffsets` methods inserts ranges like the ones above. The third line above would be inserted by using:
361
- * `setDesiredOffsets([30, 43], fooToken, 1);`
362
- * @param {[number, number]} range A [start, end] pair. All tokens with range[0] <= token.start < range[1] will have the offset applied.
363
- * @param {Token} fromToken The token that this is offset from
364
- * @param {number} offset The desired indent level
365
- * @param {boolean} force `true` if this offset should not use the normal collapsing behavior. This should almost always be false.
366
- * @returns {void}
367
- */
368
- setDesiredOffsets(range, fromToken, offset, force) {
369
-
370
- /*
371
- * Offset ranges are stored as a collection of nodes, where each node maps a numeric key to an offset
372
- * descriptor. The tree for the example above would have the following nodes:
373
- *
374
- * * key: 0, value: { offset: 0, from: null }
375
- * * key: 15, value: { offset: 1, from: barToken }
376
- * * key: 30, value: { offset: 1, from: fooToken }
377
- * * key: 43, value: { offset: 2, from: barToken }
378
- * * key: 820, value: { offset: 1, from: bazToken }
379
- *
380
- * To find the offset descriptor for any given token, one needs to find the node with the largest key
381
- * which is <= token.start. To make this operation fast, the nodes are stored in a map indexed by key.
382
- */
383
-
384
- const descriptorToInsert = { offset, from: fromToken, force };
385
-
386
- const descriptorAfterRange = this._indexMap.findLastNotAfter(range[1]);
387
-
388
- const fromTokenIsInRange = fromToken && fromToken.range[0] >= range[0] && fromToken.range[1] <= range[1];
389
- const fromTokenDescriptor = fromTokenIsInRange && this._getOffsetDescriptor(fromToken);
390
-
391
- // First, remove any existing nodes in the range from the map.
392
- this._indexMap.deleteRange(range[0] + 1, range[1]);
393
-
394
- // Insert a new node into the map for this range
395
- this._indexMap.insert(range[0], descriptorToInsert);
396
-
397
- /*
398
- * To avoid circular offset dependencies, keep the `fromToken` token mapped to whatever it was mapped to previously,
399
- * even if it's in the current range.
400
- */
401
- if (fromTokenIsInRange) {
402
- this._indexMap.insert(fromToken.range[0], fromTokenDescriptor);
403
- this._indexMap.insert(fromToken.range[1], descriptorToInsert);
404
- }
405
-
406
- /*
407
- * To avoid modifying the offset of tokens after the range, insert another node to keep the offset of the following
408
- * tokens the same as it was before.
409
- */
410
- this._indexMap.insert(range[1], descriptorAfterRange);
411
- }
412
-
413
- /**
414
- * Gets the desired indent of a token
415
- * @param {Token} token The token
416
- * @returns {string} The desired indent of the token
417
- */
418
- getDesiredIndent(token) {
419
- if (!this._desiredIndentCache.has(token)) {
420
-
421
- if (this._ignoredTokens.has(token)) {
422
-
423
- /*
424
- * If the token is ignored, use the actual indent of the token as the desired indent.
425
- * This ensures that no errors are reported for this token.
426
- */
427
- this._desiredIndentCache.set(
428
- token,
429
- this._tokenInfo.getTokenIndent(token)
430
- );
431
- } else if (this._lockedFirstTokens.has(token)) {
432
- const firstToken = this._lockedFirstTokens.get(token);
433
-
434
- this._desiredIndentCache.set(
435
- token,
436
-
437
- // (indentation for the first element's line)
438
- this.getDesiredIndent(this._tokenInfo.getFirstTokenOfLine(firstToken)) +
439
-
440
- // (space between the start of the first element's line and the first element)
441
- this._indentType.repeat(firstToken.loc.start.column - this._tokenInfo.getFirstTokenOfLine(firstToken).loc.start.column)
442
- );
443
- } else {
444
- const offsetInfo = this._getOffsetDescriptor(token);
445
- const offset = (
446
- offsetInfo.from &&
447
- offsetInfo.from.loc.start.line === token.loc.start.line &&
448
- !/^\s*?\n/u.test(token.value) &&
449
- !offsetInfo.force
450
- ) ? 0 : offsetInfo.offset * this._indentSize;
451
-
452
- this._desiredIndentCache.set(
453
- token,
454
- (offsetInfo.from ? this.getDesiredIndent(offsetInfo.from) : "") + this._indentType.repeat(offset)
455
- );
456
- }
457
- }
458
- return this._desiredIndentCache.get(token);
459
- }
460
-
461
- /**
462
- * Ignores a token, preventing it from being reported.
463
- * @param {Token} token The token
464
- * @returns {void}
465
- */
466
- ignoreToken(token) {
467
- if (this._tokenInfo.isFirstTokenOfLine(token)) {
468
- this._ignoredTokens.add(token);
469
- }
470
- }
471
-
472
- /**
473
- * Gets the first token that the given token's indentation is dependent on
474
- * @param {Token} token The token
475
- * @returns {Token} The token that the given token depends on, or `null` if the given token is at the top level
476
- */
477
- getFirstDependency(token) {
478
- return this._getOffsetDescriptor(token).from;
479
- }
480
- }
481
-
482
- const ELEMENT_LIST_SCHEMA = {
483
- oneOf: [
484
- {
485
- type: "integer",
486
- minimum: 0
487
- },
488
- {
489
- enum: ["first", "off"]
490
- }
491
- ]
492
- };
493
-
494
- /** @type {import('../shared/types').Rule} */
495
- module.exports = {
496
- meta: {
497
- deprecated: true,
498
- replacedBy: [],
499
- type: "layout",
500
-
501
- docs: {
502
- description: "Enforce consistent indentation",
503
- recommended: false,
504
- url: "https://eslint.org/docs/latest/rules/indent"
505
- },
506
-
507
- fixable: "whitespace",
508
-
509
- schema: [
510
- {
511
- oneOf: [
512
- {
513
- enum: ["tab"]
514
- },
515
- {
516
- type: "integer",
517
- minimum: 0
518
- }
519
- ]
520
- },
521
- {
522
- type: "object",
523
- properties: {
524
- SwitchCase: {
525
- type: "integer",
526
- minimum: 0,
527
- default: 0
528
- },
529
- VariableDeclarator: {
530
- oneOf: [
531
- ELEMENT_LIST_SCHEMA,
532
- {
533
- type: "object",
534
- properties: {
535
- var: ELEMENT_LIST_SCHEMA,
536
- let: ELEMENT_LIST_SCHEMA,
537
- const: ELEMENT_LIST_SCHEMA
538
- },
539
- additionalProperties: false
540
- }
541
- ]
542
- },
543
- outerIIFEBody: {
544
- oneOf: [
545
- {
546
- type: "integer",
547
- minimum: 0
548
- },
549
- {
550
- enum: ["off"]
551
- }
552
- ]
553
- },
554
- MemberExpression: {
555
- oneOf: [
556
- {
557
- type: "integer",
558
- minimum: 0
559
- },
560
- {
561
- enum: ["off"]
562
- }
563
- ]
564
- },
565
- FunctionDeclaration: {
566
- type: "object",
567
- properties: {
568
- parameters: ELEMENT_LIST_SCHEMA,
569
- body: {
570
- type: "integer",
571
- minimum: 0
572
- }
573
- },
574
- additionalProperties: false
575
- },
576
- FunctionExpression: {
577
- type: "object",
578
- properties: {
579
- parameters: ELEMENT_LIST_SCHEMA,
580
- body: {
581
- type: "integer",
582
- minimum: 0
583
- }
584
- },
585
- additionalProperties: false
586
- },
587
- StaticBlock: {
588
- type: "object",
589
- properties: {
590
- body: {
591
- type: "integer",
592
- minimum: 0
593
- }
594
- },
595
- additionalProperties: false
596
- },
597
- CallExpression: {
598
- type: "object",
599
- properties: {
600
- arguments: ELEMENT_LIST_SCHEMA
601
- },
602
- additionalProperties: false
603
- },
604
- ArrayExpression: ELEMENT_LIST_SCHEMA,
605
- ObjectExpression: ELEMENT_LIST_SCHEMA,
606
- ImportDeclaration: ELEMENT_LIST_SCHEMA,
607
- flatTernaryExpressions: {
608
- type: "boolean",
609
- default: false
610
- },
611
- offsetTernaryExpressions: {
612
- type: "boolean",
613
- default: false
614
- },
615
- ignoredNodes: {
616
- type: "array",
617
- items: {
618
- type: "string",
619
- not: {
620
- pattern: ":exit$"
621
- }
622
- }
623
- },
624
- ignoreComments: {
625
- type: "boolean",
626
- default: false
627
- }
628
- },
629
- additionalProperties: false
630
- }
631
- ],
632
- messages: {
633
- wrongIndentation: "Expected indentation of {{expected}} but found {{actual}}."
634
- }
635
- },
636
-
637
- create(context) {
638
- const DEFAULT_VARIABLE_INDENT = 1;
639
- const DEFAULT_PARAMETER_INDENT = 1;
640
- const DEFAULT_FUNCTION_BODY_INDENT = 1;
641
-
642
- let indentType = "space";
643
- let indentSize = 4;
644
- const options = {
645
- SwitchCase: 0,
646
- VariableDeclarator: {
647
- var: DEFAULT_VARIABLE_INDENT,
648
- let: DEFAULT_VARIABLE_INDENT,
649
- const: DEFAULT_VARIABLE_INDENT
650
- },
651
- outerIIFEBody: 1,
652
- FunctionDeclaration: {
653
- parameters: DEFAULT_PARAMETER_INDENT,
654
- body: DEFAULT_FUNCTION_BODY_INDENT
655
- },
656
- FunctionExpression: {
657
- parameters: DEFAULT_PARAMETER_INDENT,
658
- body: DEFAULT_FUNCTION_BODY_INDENT
659
- },
660
- StaticBlock: {
661
- body: DEFAULT_FUNCTION_BODY_INDENT
662
- },
663
- CallExpression: {
664
- arguments: DEFAULT_PARAMETER_INDENT
665
- },
666
- MemberExpression: 1,
667
- ArrayExpression: 1,
668
- ObjectExpression: 1,
669
- ImportDeclaration: 1,
670
- flatTernaryExpressions: false,
671
- ignoredNodes: [],
672
- ignoreComments: false
673
- };
674
-
675
- if (context.options.length) {
676
- if (context.options[0] === "tab") {
677
- indentSize = 1;
678
- indentType = "tab";
679
- } else {
680
- indentSize = context.options[0];
681
- indentType = "space";
682
- }
683
-
684
- if (context.options[1]) {
685
- Object.assign(options, context.options[1]);
686
-
687
- if (typeof options.VariableDeclarator === "number" || options.VariableDeclarator === "first") {
688
- options.VariableDeclarator = {
689
- var: options.VariableDeclarator,
690
- let: options.VariableDeclarator,
691
- const: options.VariableDeclarator
692
- };
693
- }
694
- }
695
- }
696
-
697
- const sourceCode = context.sourceCode;
698
- const tokenInfo = new TokenInfo(sourceCode);
699
- const offsets = new OffsetStorage(tokenInfo, indentSize, indentType === "space" ? " " : "\t", sourceCode.text.length);
700
- const parameterParens = new WeakSet();
701
-
702
- /**
703
- * Creates an error message for a line, given the expected/actual indentation.
704
- * @param {int} expectedAmount The expected amount of indentation characters for this line
705
- * @param {int} actualSpaces The actual number of indentation spaces that were found on this line
706
- * @param {int} actualTabs The actual number of indentation tabs that were found on this line
707
- * @returns {string} An error message for this line
708
- */
709
- function createErrorMessageData(expectedAmount, actualSpaces, actualTabs) {
710
- const expectedStatement = `${expectedAmount} ${indentType}${expectedAmount === 1 ? "" : "s"}`; // e.g. "2 tabs"
711
- const foundSpacesWord = `space${actualSpaces === 1 ? "" : "s"}`; // e.g. "space"
712
- const foundTabsWord = `tab${actualTabs === 1 ? "" : "s"}`; // e.g. "tabs"
713
- let foundStatement;
714
-
715
- if (actualSpaces > 0) {
716
-
717
- /*
718
- * Abbreviate the message if the expected indentation is also spaces.
719
- * e.g. 'Expected 4 spaces but found 2' rather than 'Expected 4 spaces but found 2 spaces'
720
- */
721
- foundStatement = indentType === "space" ? actualSpaces : `${actualSpaces} ${foundSpacesWord}`;
722
- } else if (actualTabs > 0) {
723
- foundStatement = indentType === "tab" ? actualTabs : `${actualTabs} ${foundTabsWord}`;
724
- } else {
725
- foundStatement = "0";
726
- }
727
- return {
728
- expected: expectedStatement,
729
- actual: foundStatement
730
- };
731
- }
732
-
733
- /**
734
- * Reports a given indent violation
735
- * @param {Token} token Token violating the indent rule
736
- * @param {string} neededIndent Expected indentation string
737
- * @returns {void}
738
- */
739
- function report(token, neededIndent) {
740
- const actualIndent = Array.from(tokenInfo.getTokenIndent(token));
741
- const numSpaces = actualIndent.filter(char => char === " ").length;
742
- const numTabs = actualIndent.filter(char => char === "\t").length;
743
-
744
- context.report({
745
- node: token,
746
- messageId: "wrongIndentation",
747
- data: createErrorMessageData(neededIndent.length, numSpaces, numTabs),
748
- loc: {
749
- start: { line: token.loc.start.line, column: 0 },
750
- end: { line: token.loc.start.line, column: token.loc.start.column }
751
- },
752
- fix(fixer) {
753
- const range = [token.range[0] - token.loc.start.column, token.range[0]];
754
- const newText = neededIndent;
755
-
756
- return fixer.replaceTextRange(range, newText);
757
- }
758
- });
759
- }
760
-
761
- /**
762
- * Checks if a token's indentation is correct
763
- * @param {Token} token Token to examine
764
- * @param {string} desiredIndent Desired indentation of the string
765
- * @returns {boolean} `true` if the token's indentation is correct
766
- */
767
- function validateTokenIndent(token, desiredIndent) {
768
- const indentation = tokenInfo.getTokenIndent(token);
769
-
770
- return indentation === desiredIndent ||
771
-
772
- // To avoid conflicts with no-mixed-spaces-and-tabs, don't report mixed spaces and tabs.
773
- indentation.includes(" ") && indentation.includes("\t");
774
- }
775
-
776
- /**
777
- * Check to see if the node is a file level IIFE
778
- * @param {ASTNode} node The function node to check.
779
- * @returns {boolean} True if the node is the outer IIFE
780
- */
781
- function isOuterIIFE(node) {
782
-
783
- /*
784
- * Verify that the node is an IIFE
785
- */
786
- if (!node.parent || node.parent.type !== "CallExpression" || node.parent.callee !== node) {
787
- return false;
788
- }
789
-
790
- /*
791
- * Navigate legal ancestors to determine whether this IIFE is outer.
792
- * A "legal ancestor" is an expression or statement that causes the function to get executed immediately.
793
- * For example, `!(function(){})()` is an outer IIFE even though it is preceded by a ! operator.
794
- */
795
- let statement = node.parent && node.parent.parent;
796
-
797
- while (
798
- statement.type === "UnaryExpression" && ["!", "~", "+", "-"].includes(statement.operator) ||
799
- statement.type === "AssignmentExpression" ||
800
- statement.type === "LogicalExpression" ||
801
- statement.type === "SequenceExpression" ||
802
- statement.type === "VariableDeclarator"
803
- ) {
804
- statement = statement.parent;
805
- }
806
-
807
- return (statement.type === "ExpressionStatement" || statement.type === "VariableDeclaration") && statement.parent.type === "Program";
808
- }
809
-
810
- /**
811
- * Counts the number of linebreaks that follow the last non-whitespace character in a string
812
- * @param {string} string The string to check
813
- * @returns {number} The number of JavaScript linebreaks that follow the last non-whitespace character,
814
- * or the total number of linebreaks if the string is all whitespace.
815
- */
816
- function countTrailingLinebreaks(string) {
817
- const trailingWhitespace = string.match(/\s*$/u)[0];
818
- const linebreakMatches = trailingWhitespace.match(astUtils.createGlobalLinebreakMatcher());
819
-
820
- return linebreakMatches === null ? 0 : linebreakMatches.length;
821
- }
822
-
823
- /**
824
- * Check indentation for lists of elements (arrays, objects, function params)
825
- * @param {ASTNode[]} elements List of elements that should be offset
826
- * @param {Token} startToken The start token of the list that element should be aligned against, e.g. '['
827
- * @param {Token} endToken The end token of the list, e.g. ']'
828
- * @param {number|string} offset The amount that the elements should be offset
829
- * @returns {void}
830
- */
831
- function addElementListIndent(elements, startToken, endToken, offset) {
832
-
833
- /**
834
- * Gets the first token of a given element, including surrounding parentheses.
835
- * @param {ASTNode} element A node in the `elements` list
836
- * @returns {Token} The first token of this element
837
- */
838
- function getFirstToken(element) {
839
- let token = sourceCode.getTokenBefore(element);
840
-
841
- while (astUtils.isOpeningParenToken(token) && token !== startToken) {
842
- token = sourceCode.getTokenBefore(token);
843
- }
844
- return sourceCode.getTokenAfter(token);
845
- }
846
-
847
- // Run through all the tokens in the list, and offset them by one indent level (mainly for comments, other things will end up overridden)
848
- offsets.setDesiredOffsets(
849
- [startToken.range[1], endToken.range[0]],
850
- startToken,
851
- typeof offset === "number" ? offset : 1
852
- );
853
- offsets.setDesiredOffset(endToken, startToken, 0);
854
-
855
- // If the preference is "first" but there is no first element (e.g. sparse arrays w/ empty first slot), fall back to 1 level.
856
- if (offset === "first" && elements.length && !elements[0]) {
857
- return;
858
- }
859
- elements.forEach((element, index) => {
860
- if (!element) {
861
-
862
- // Skip holes in arrays
863
- return;
864
- }
865
- if (offset === "off") {
866
-
867
- // Ignore the first token of every element if the "off" option is used
868
- offsets.ignoreToken(getFirstToken(element));
869
- }
870
-
871
- // Offset the following elements correctly relative to the first element
872
- if (index === 0) {
873
- return;
874
- }
875
- if (offset === "first" && tokenInfo.isFirstTokenOfLine(getFirstToken(element))) {
876
- offsets.matchOffsetOf(getFirstToken(elements[0]), getFirstToken(element));
877
- } else {
878
- const previousElement = elements[index - 1];
879
- const firstTokenOfPreviousElement = previousElement && getFirstToken(previousElement);
880
- const previousElementLastToken = previousElement && sourceCode.getLastToken(previousElement);
881
-
882
- if (
883
- previousElement &&
884
- previousElementLastToken.loc.end.line - countTrailingLinebreaks(previousElementLastToken.value) > startToken.loc.end.line
885
- ) {
886
- offsets.setDesiredOffsets(
887
- [previousElement.range[1], element.range[1]],
888
- firstTokenOfPreviousElement,
889
- 0
890
- );
891
- }
892
- }
893
- });
894
- }
895
-
896
- /**
897
- * Check and decide whether to check for indentation for blockless nodes
898
- * Scenarios are for or while statements without braces around them
899
- * @param {ASTNode} node node to examine
900
- * @returns {void}
901
- */
902
- function addBlocklessNodeIndent(node) {
903
- if (node.type !== "BlockStatement") {
904
- const lastParentToken = sourceCode.getTokenBefore(node, astUtils.isNotOpeningParenToken);
905
-
906
- let firstBodyToken = sourceCode.getFirstToken(node);
907
- let lastBodyToken = sourceCode.getLastToken(node);
908
-
909
- while (
910
- astUtils.isOpeningParenToken(sourceCode.getTokenBefore(firstBodyToken)) &&
911
- astUtils.isClosingParenToken(sourceCode.getTokenAfter(lastBodyToken))
912
- ) {
913
- firstBodyToken = sourceCode.getTokenBefore(firstBodyToken);
914
- lastBodyToken = sourceCode.getTokenAfter(lastBodyToken);
915
- }
916
-
917
- offsets.setDesiredOffsets([firstBodyToken.range[0], lastBodyToken.range[1]], lastParentToken, 1);
918
- }
919
- }
920
-
921
- /**
922
- * Checks the indentation for nodes that are like function calls (`CallExpression` and `NewExpression`)
923
- * @param {ASTNode} node A CallExpression or NewExpression node
924
- * @returns {void}
925
- */
926
- function addFunctionCallIndent(node) {
927
- let openingParen;
928
-
929
- if (node.arguments.length) {
930
- openingParen = sourceCode.getFirstTokenBetween(node.callee, node.arguments[0], astUtils.isOpeningParenToken);
931
- } else {
932
- openingParen = sourceCode.getLastToken(node, 1);
933
- }
934
- const closingParen = sourceCode.getLastToken(node);
935
-
936
- parameterParens.add(openingParen);
937
- parameterParens.add(closingParen);
938
-
939
- /*
940
- * If `?.` token exists, set desired offset for that.
941
- * This logic is copied from `MemberExpression`'s.
942
- */
943
- if (node.optional) {
944
- const dotToken = sourceCode.getTokenAfter(node.callee, astUtils.isQuestionDotToken);
945
- const calleeParenCount = sourceCode.getTokensBetween(node.callee, dotToken, { filter: astUtils.isClosingParenToken }).length;
946
- const firstTokenOfCallee = calleeParenCount
947
- ? sourceCode.getTokenBefore(node.callee, { skip: calleeParenCount - 1 })
948
- : sourceCode.getFirstToken(node.callee);
949
- const lastTokenOfCallee = sourceCode.getTokenBefore(dotToken);
950
- const offsetBase = lastTokenOfCallee.loc.end.line === openingParen.loc.start.line
951
- ? lastTokenOfCallee
952
- : firstTokenOfCallee;
953
-
954
- offsets.setDesiredOffset(dotToken, offsetBase, 1);
955
- }
956
-
957
- const offsetAfterToken = node.callee.type === "TaggedTemplateExpression" ? sourceCode.getFirstToken(node.callee.quasi) : openingParen;
958
- const offsetToken = sourceCode.getTokenBefore(offsetAfterToken);
959
-
960
- offsets.setDesiredOffset(openingParen, offsetToken, 0);
961
-
962
- addElementListIndent(node.arguments, openingParen, closingParen, options.CallExpression.arguments);
963
- }
964
-
965
- /**
966
- * Checks the indentation of parenthesized values, given a list of tokens in a program
967
- * @param {Token[]} tokens A list of tokens
968
- * @returns {void}
969
- */
970
- function addParensIndent(tokens) {
971
- const parenStack = [];
972
- const parenPairs = [];
973
-
974
- for (let i = 0; i < tokens.length; i++) {
975
- const nextToken = tokens[i];
976
-
977
- if (astUtils.isOpeningParenToken(nextToken)) {
978
- parenStack.push(nextToken);
979
- } else if (astUtils.isClosingParenToken(nextToken)) {
980
- parenPairs.push({ left: parenStack.pop(), right: nextToken });
981
- }
982
- }
983
-
984
- for (let i = parenPairs.length - 1; i >= 0; i--) {
985
- const leftParen = parenPairs[i].left;
986
- const rightParen = parenPairs[i].right;
987
-
988
- // We only want to handle parens around expressions, so exclude parentheses that are in function parameters and function call arguments.
989
- if (!parameterParens.has(leftParen) && !parameterParens.has(rightParen)) {
990
- const parenthesizedTokens = new Set(sourceCode.getTokensBetween(leftParen, rightParen));
991
-
992
- parenthesizedTokens.forEach(token => {
993
- if (!parenthesizedTokens.has(offsets.getFirstDependency(token))) {
994
- offsets.setDesiredOffset(token, leftParen, 1);
995
- }
996
- });
997
- }
998
-
999
- offsets.setDesiredOffset(rightParen, leftParen, 0);
1000
- }
1001
- }
1002
-
1003
- /**
1004
- * Ignore all tokens within an unknown node whose offset do not depend
1005
- * on another token's offset within the unknown node
1006
- * @param {ASTNode} node Unknown Node
1007
- * @returns {void}
1008
- */
1009
- function ignoreNode(node) {
1010
- const unknownNodeTokens = new Set(sourceCode.getTokens(node, { includeComments: true }));
1011
-
1012
- unknownNodeTokens.forEach(token => {
1013
- if (!unknownNodeTokens.has(offsets.getFirstDependency(token))) {
1014
- const firstTokenOfLine = tokenInfo.getFirstTokenOfLine(token);
1015
-
1016
- if (token === firstTokenOfLine) {
1017
- offsets.ignoreToken(token);
1018
- } else {
1019
- offsets.setDesiredOffset(token, firstTokenOfLine, 0);
1020
- }
1021
- }
1022
- });
1023
- }
1024
-
1025
- /**
1026
- * Check whether the given token is on the first line of a statement.
1027
- * @param {Token} token The token to check.
1028
- * @param {ASTNode} leafNode The expression node that the token belongs directly.
1029
- * @returns {boolean} `true` if the token is on the first line of a statement.
1030
- */
1031
- function isOnFirstLineOfStatement(token, leafNode) {
1032
- let node = leafNode;
1033
-
1034
- while (node.parent && !node.parent.type.endsWith("Statement") && !node.parent.type.endsWith("Declaration")) {
1035
- node = node.parent;
1036
- }
1037
- node = node.parent;
1038
-
1039
- return !node || node.loc.start.line === token.loc.start.line;
1040
- }
1041
-
1042
- /**
1043
- * Check whether there are any blank (whitespace-only) lines between
1044
- * two tokens on separate lines.
1045
- * @param {Token} firstToken The first token.
1046
- * @param {Token} secondToken The second token.
1047
- * @returns {boolean} `true` if the tokens are on separate lines and
1048
- * there exists a blank line between them, `false` otherwise.
1049
- */
1050
- function hasBlankLinesBetween(firstToken, secondToken) {
1051
- const firstTokenLine = firstToken.loc.end.line;
1052
- const secondTokenLine = secondToken.loc.start.line;
1053
-
1054
- if (firstTokenLine === secondTokenLine || firstTokenLine === secondTokenLine - 1) {
1055
- return false;
1056
- }
1057
-
1058
- for (let line = firstTokenLine + 1; line < secondTokenLine; ++line) {
1059
- if (!tokenInfo.firstTokensByLineNumber.has(line)) {
1060
- return true;
1061
- }
1062
- }
1063
-
1064
- return false;
1065
- }
1066
-
1067
- const ignoredNodeFirstTokens = new Set();
1068
-
1069
- const baseOffsetListeners = {
1070
- "ArrayExpression, ArrayPattern"(node) {
1071
- const openingBracket = sourceCode.getFirstToken(node);
1072
- const closingBracket = sourceCode.getTokenAfter([...node.elements].reverse().find(_ => _) || openingBracket, astUtils.isClosingBracketToken);
1073
-
1074
- addElementListIndent(node.elements, openingBracket, closingBracket, options.ArrayExpression);
1075
- },
1076
-
1077
- "ObjectExpression, ObjectPattern"(node) {
1078
- const openingCurly = sourceCode.getFirstToken(node);
1079
- const closingCurly = sourceCode.getTokenAfter(
1080
- node.properties.length ? node.properties[node.properties.length - 1] : openingCurly,
1081
- astUtils.isClosingBraceToken
1082
- );
1083
-
1084
- addElementListIndent(node.properties, openingCurly, closingCurly, options.ObjectExpression);
1085
- },
1086
-
1087
- ArrowFunctionExpression(node) {
1088
- const maybeOpeningParen = sourceCode.getFirstToken(node, { skip: node.async ? 1 : 0 });
1089
-
1090
- if (astUtils.isOpeningParenToken(maybeOpeningParen)) {
1091
- const openingParen = maybeOpeningParen;
1092
- const closingParen = sourceCode.getTokenBefore(node.body, astUtils.isClosingParenToken);
1093
-
1094
- parameterParens.add(openingParen);
1095
- parameterParens.add(closingParen);
1096
- addElementListIndent(node.params, openingParen, closingParen, options.FunctionExpression.parameters);
1097
- }
1098
-
1099
- addBlocklessNodeIndent(node.body);
1100
- },
1101
-
1102
- AssignmentExpression(node) {
1103
- const operator = sourceCode.getFirstTokenBetween(node.left, node.right, token => token.value === node.operator);
1104
-
1105
- offsets.setDesiredOffsets([operator.range[0], node.range[1]], sourceCode.getLastToken(node.left), 1);
1106
- offsets.ignoreToken(operator);
1107
- offsets.ignoreToken(sourceCode.getTokenAfter(operator));
1108
- },
1109
-
1110
- "BinaryExpression, LogicalExpression"(node) {
1111
- const operator = sourceCode.getFirstTokenBetween(node.left, node.right, token => token.value === node.operator);
1112
-
1113
- /*
1114
- * For backwards compatibility, don't check BinaryExpression indents, e.g.
1115
- * var foo = bar &&
1116
- * baz;
1117
- */
1118
-
1119
- const tokenAfterOperator = sourceCode.getTokenAfter(operator);
1120
-
1121
- offsets.ignoreToken(operator);
1122
- offsets.ignoreToken(tokenAfterOperator);
1123
- offsets.setDesiredOffset(tokenAfterOperator, operator, 0);
1124
- },
1125
-
1126
- "BlockStatement, ClassBody"(node) {
1127
- let blockIndentLevel;
1128
-
1129
- if (node.parent && isOuterIIFE(node.parent)) {
1130
- blockIndentLevel = options.outerIIFEBody;
1131
- } else if (node.parent && (node.parent.type === "FunctionExpression" || node.parent.type === "ArrowFunctionExpression")) {
1132
- blockIndentLevel = options.FunctionExpression.body;
1133
- } else if (node.parent && node.parent.type === "FunctionDeclaration") {
1134
- blockIndentLevel = options.FunctionDeclaration.body;
1135
- } else {
1136
- blockIndentLevel = 1;
1137
- }
1138
-
1139
- /*
1140
- * For blocks that aren't lone statements, ensure that the opening curly brace
1141
- * is aligned with the parent.
1142
- */
1143
- if (!astUtils.STATEMENT_LIST_PARENTS.has(node.parent.type)) {
1144
- offsets.setDesiredOffset(sourceCode.getFirstToken(node), sourceCode.getFirstToken(node.parent), 0);
1145
- }
1146
-
1147
- addElementListIndent(node.body, sourceCode.getFirstToken(node), sourceCode.getLastToken(node), blockIndentLevel);
1148
- },
1149
-
1150
- CallExpression: addFunctionCallIndent,
1151
-
1152
- "ClassDeclaration[superClass], ClassExpression[superClass]"(node) {
1153
- const classToken = sourceCode.getFirstToken(node);
1154
- const extendsToken = sourceCode.getTokenBefore(node.superClass, astUtils.isNotOpeningParenToken);
1155
-
1156
- offsets.setDesiredOffsets([extendsToken.range[0], node.body.range[0]], classToken, 1);
1157
- },
1158
-
1159
- ConditionalExpression(node) {
1160
- const firstToken = sourceCode.getFirstToken(node);
1161
-
1162
- // `flatTernaryExpressions` option is for the following style:
1163
- // var a =
1164
- // foo > 0 ? bar :
1165
- // foo < 0 ? baz :
1166
- // /*else*/ qiz ;
1167
- if (!options.flatTernaryExpressions ||
1168
- !astUtils.isTokenOnSameLine(node.test, node.consequent) ||
1169
- isOnFirstLineOfStatement(firstToken, node)
1170
- ) {
1171
- const questionMarkToken = sourceCode.getFirstTokenBetween(node.test, node.consequent, token => token.type === "Punctuator" && token.value === "?");
1172
- const colonToken = sourceCode.getFirstTokenBetween(node.consequent, node.alternate, token => token.type === "Punctuator" && token.value === ":");
1173
-
1174
- const firstConsequentToken = sourceCode.getTokenAfter(questionMarkToken);
1175
- const lastConsequentToken = sourceCode.getTokenBefore(colonToken);
1176
- const firstAlternateToken = sourceCode.getTokenAfter(colonToken);
1177
-
1178
- offsets.setDesiredOffset(questionMarkToken, firstToken, 1);
1179
- offsets.setDesiredOffset(colonToken, firstToken, 1);
1180
-
1181
- offsets.setDesiredOffset(firstConsequentToken, firstToken, firstConsequentToken.type === "Punctuator" &&
1182
- options.offsetTernaryExpressions ? 2 : 1);
1183
-
1184
- /*
1185
- * The alternate and the consequent should usually have the same indentation.
1186
- * If they share part of a line, align the alternate against the first token of the consequent.
1187
- * This allows the alternate to be indented correctly in cases like this:
1188
- * foo ? (
1189
- * bar
1190
- * ) : ( // this '(' is aligned with the '(' above, so it's considered to be aligned with `foo`
1191
- * baz // as a result, `baz` is offset by 1 rather than 2
1192
- * )
1193
- */
1194
- if (lastConsequentToken.loc.end.line === firstAlternateToken.loc.start.line) {
1195
- offsets.setDesiredOffset(firstAlternateToken, firstConsequentToken, 0);
1196
- } else {
1197
-
1198
- /**
1199
- * If the alternate and consequent do not share part of a line, offset the alternate from the first
1200
- * token of the conditional expression. For example:
1201
- * foo ? bar
1202
- * : baz
1203
- *
1204
- * If `baz` were aligned with `bar` rather than being offset by 1 from `foo`, `baz` would end up
1205
- * having no expected indentation.
1206
- */
1207
- offsets.setDesiredOffset(firstAlternateToken, firstToken, firstAlternateToken.type === "Punctuator" &&
1208
- options.offsetTernaryExpressions ? 2 : 1);
1209
- }
1210
- }
1211
- },
1212
-
1213
- "DoWhileStatement, WhileStatement, ForInStatement, ForOfStatement, WithStatement": node => addBlocklessNodeIndent(node.body),
1214
-
1215
- ExportNamedDeclaration(node) {
1216
- if (node.declaration === null) {
1217
- const closingCurly = sourceCode.getLastToken(node, astUtils.isClosingBraceToken);
1218
-
1219
- // Indent the specifiers in `export {foo, bar, baz}`
1220
- addElementListIndent(node.specifiers, sourceCode.getFirstToken(node, { skip: 1 }), closingCurly, 1);
1221
-
1222
- if (node.source) {
1223
-
1224
- // Indent everything after and including the `from` token in `export {foo, bar, baz} from 'qux'`
1225
- offsets.setDesiredOffsets([closingCurly.range[1], node.range[1]], sourceCode.getFirstToken(node), 1);
1226
- }
1227
- }
1228
- },
1229
-
1230
- ForStatement(node) {
1231
- const forOpeningParen = sourceCode.getFirstToken(node, 1);
1232
-
1233
- if (node.init) {
1234
- offsets.setDesiredOffsets(node.init.range, forOpeningParen, 1);
1235
- }
1236
- if (node.test) {
1237
- offsets.setDesiredOffsets(node.test.range, forOpeningParen, 1);
1238
- }
1239
- if (node.update) {
1240
- offsets.setDesiredOffsets(node.update.range, forOpeningParen, 1);
1241
- }
1242
- addBlocklessNodeIndent(node.body);
1243
- },
1244
-
1245
- "FunctionDeclaration, FunctionExpression"(node) {
1246
- const closingParen = sourceCode.getTokenBefore(node.body);
1247
- const openingParen = sourceCode.getTokenBefore(node.params.length ? node.params[0] : closingParen);
1248
-
1249
- parameterParens.add(openingParen);
1250
- parameterParens.add(closingParen);
1251
- addElementListIndent(node.params, openingParen, closingParen, options[node.type].parameters);
1252
- },
1253
-
1254
- IfStatement(node) {
1255
- addBlocklessNodeIndent(node.consequent);
1256
- if (node.alternate) {
1257
- addBlocklessNodeIndent(node.alternate);
1258
- }
1259
- },
1260
-
1261
- /*
1262
- * For blockless nodes with semicolon-first style, don't indent the semicolon.
1263
- * e.g.
1264
- * if (foo)
1265
- * bar()
1266
- * ; [1, 2, 3].map(foo)
1267
- *
1268
- * Traversal into the node sets indentation of the semicolon, so we need to override it on exit.
1269
- */
1270
- ":matches(DoWhileStatement, ForStatement, ForInStatement, ForOfStatement, IfStatement, WhileStatement, WithStatement):exit"(node) {
1271
- let nodesToCheck;
1272
-
1273
- if (node.type === "IfStatement") {
1274
- nodesToCheck = [node.consequent];
1275
- if (node.alternate) {
1276
- nodesToCheck.push(node.alternate);
1277
- }
1278
- } else {
1279
- nodesToCheck = [node.body];
1280
- }
1281
-
1282
- for (const nodeToCheck of nodesToCheck) {
1283
- const lastToken = sourceCode.getLastToken(nodeToCheck);
1284
-
1285
- if (astUtils.isSemicolonToken(lastToken)) {
1286
- const tokenBeforeLast = sourceCode.getTokenBefore(lastToken);
1287
- const tokenAfterLast = sourceCode.getTokenAfter(lastToken);
1288
-
1289
- // override indentation of `;` only if its line looks like a semicolon-first style line
1290
- if (
1291
- !astUtils.isTokenOnSameLine(tokenBeforeLast, lastToken) &&
1292
- tokenAfterLast &&
1293
- astUtils.isTokenOnSameLine(lastToken, tokenAfterLast)
1294
- ) {
1295
- offsets.setDesiredOffset(
1296
- lastToken,
1297
- sourceCode.getFirstToken(node),
1298
- 0
1299
- );
1300
- }
1301
- }
1302
- }
1303
- },
1304
-
1305
- ImportDeclaration(node) {
1306
- if (node.specifiers.some(specifier => specifier.type === "ImportSpecifier")) {
1307
- const openingCurly = sourceCode.getFirstToken(node, astUtils.isOpeningBraceToken);
1308
- const closingCurly = sourceCode.getLastToken(node, astUtils.isClosingBraceToken);
1309
-
1310
- addElementListIndent(node.specifiers.filter(specifier => specifier.type === "ImportSpecifier"), openingCurly, closingCurly, options.ImportDeclaration);
1311
- }
1312
-
1313
- const fromToken = sourceCode.getLastToken(node, token => token.type === "Identifier" && token.value === "from");
1314
- const sourceToken = sourceCode.getLastToken(node, token => token.type === "String");
1315
- const semiToken = sourceCode.getLastToken(node, token => token.type === "Punctuator" && token.value === ";");
1316
-
1317
- if (fromToken) {
1318
- const end = semiToken && semiToken.range[1] === sourceToken.range[1] ? node.range[1] : sourceToken.range[1];
1319
-
1320
- offsets.setDesiredOffsets([fromToken.range[0], end], sourceCode.getFirstToken(node), 1);
1321
- }
1322
- },
1323
-
1324
- ImportExpression(node) {
1325
- const openingParen = sourceCode.getFirstToken(node, 1);
1326
- const closingParen = sourceCode.getLastToken(node);
1327
-
1328
- parameterParens.add(openingParen);
1329
- parameterParens.add(closingParen);
1330
- offsets.setDesiredOffset(openingParen, sourceCode.getTokenBefore(openingParen), 0);
1331
-
1332
- addElementListIndent([node.source], openingParen, closingParen, options.CallExpression.arguments);
1333
- },
1334
-
1335
- "MemberExpression, JSXMemberExpression, MetaProperty"(node) {
1336
- const object = node.type === "MetaProperty" ? node.meta : node.object;
1337
- const firstNonObjectToken = sourceCode.getFirstTokenBetween(object, node.property, astUtils.isNotClosingParenToken);
1338
- const secondNonObjectToken = sourceCode.getTokenAfter(firstNonObjectToken);
1339
-
1340
- const objectParenCount = sourceCode.getTokensBetween(object, node.property, { filter: astUtils.isClosingParenToken }).length;
1341
- const firstObjectToken = objectParenCount
1342
- ? sourceCode.getTokenBefore(object, { skip: objectParenCount - 1 })
1343
- : sourceCode.getFirstToken(object);
1344
- const lastObjectToken = sourceCode.getTokenBefore(firstNonObjectToken);
1345
- const firstPropertyToken = node.computed ? firstNonObjectToken : secondNonObjectToken;
1346
-
1347
- if (node.computed) {
1348
-
1349
- // For computed MemberExpressions, match the closing bracket with the opening bracket.
1350
- offsets.setDesiredOffset(sourceCode.getLastToken(node), firstNonObjectToken, 0);
1351
- offsets.setDesiredOffsets(node.property.range, firstNonObjectToken, 1);
1352
- }
1353
-
1354
- /*
1355
- * If the object ends on the same line that the property starts, match against the last token
1356
- * of the object, to ensure that the MemberExpression is not indented.
1357
- *
1358
- * Otherwise, match against the first token of the object, e.g.
1359
- * foo
1360
- * .bar
1361
- * .baz // <-- offset by 1 from `foo`
1362
- */
1363
- const offsetBase = lastObjectToken.loc.end.line === firstPropertyToken.loc.start.line
1364
- ? lastObjectToken
1365
- : firstObjectToken;
1366
-
1367
- if (typeof options.MemberExpression === "number") {
1368
-
1369
- // Match the dot (for non-computed properties) or the opening bracket (for computed properties) against the object.
1370
- offsets.setDesiredOffset(firstNonObjectToken, offsetBase, options.MemberExpression);
1371
-
1372
- /*
1373
- * For computed MemberExpressions, match the first token of the property against the opening bracket.
1374
- * Otherwise, match the first token of the property against the object.
1375
- */
1376
- offsets.setDesiredOffset(secondNonObjectToken, node.computed ? firstNonObjectToken : offsetBase, options.MemberExpression);
1377
- } else {
1378
-
1379
- // If the MemberExpression option is off, ignore the dot and the first token of the property.
1380
- offsets.ignoreToken(firstNonObjectToken);
1381
- offsets.ignoreToken(secondNonObjectToken);
1382
-
1383
- // To ignore the property indentation, ensure that the property tokens depend on the ignored tokens.
1384
- offsets.setDesiredOffset(firstNonObjectToken, offsetBase, 0);
1385
- offsets.setDesiredOffset(secondNonObjectToken, firstNonObjectToken, 0);
1386
- }
1387
- },
1388
-
1389
- NewExpression(node) {
1390
-
1391
- // Only indent the arguments if the NewExpression has parens (e.g. `new Foo(bar)` or `new Foo()`, but not `new Foo`
1392
- if (node.arguments.length > 0 ||
1393
- astUtils.isClosingParenToken(sourceCode.getLastToken(node)) &&
1394
- astUtils.isOpeningParenToken(sourceCode.getLastToken(node, 1))) {
1395
- addFunctionCallIndent(node);
1396
- }
1397
- },
1398
-
1399
- Property(node) {
1400
- if (!node.shorthand && !node.method && node.kind === "init") {
1401
- const colon = sourceCode.getFirstTokenBetween(node.key, node.value, astUtils.isColonToken);
1402
-
1403
- offsets.ignoreToken(sourceCode.getTokenAfter(colon));
1404
- }
1405
- },
1406
-
1407
- PropertyDefinition(node) {
1408
- const firstToken = sourceCode.getFirstToken(node);
1409
- const maybeSemicolonToken = sourceCode.getLastToken(node);
1410
- let keyLastToken = null;
1411
-
1412
- // Indent key.
1413
- if (node.computed) {
1414
- const bracketTokenL = sourceCode.getTokenBefore(node.key, astUtils.isOpeningBracketToken);
1415
- const bracketTokenR = keyLastToken = sourceCode.getTokenAfter(node.key, astUtils.isClosingBracketToken);
1416
- const keyRange = [bracketTokenL.range[1], bracketTokenR.range[0]];
1417
-
1418
- if (bracketTokenL !== firstToken) {
1419
- offsets.setDesiredOffset(bracketTokenL, firstToken, 0);
1420
- }
1421
- offsets.setDesiredOffsets(keyRange, bracketTokenL, 1);
1422
- offsets.setDesiredOffset(bracketTokenR, bracketTokenL, 0);
1423
- } else {
1424
- const idToken = keyLastToken = sourceCode.getFirstToken(node.key);
1425
-
1426
- if (idToken !== firstToken) {
1427
- offsets.setDesiredOffset(idToken, firstToken, 1);
1428
- }
1429
- }
1430
-
1431
- // Indent initializer.
1432
- if (node.value) {
1433
- const eqToken = sourceCode.getTokenBefore(node.value, astUtils.isEqToken);
1434
- const valueToken = sourceCode.getTokenAfter(eqToken);
1435
-
1436
- offsets.setDesiredOffset(eqToken, keyLastToken, 1);
1437
- offsets.setDesiredOffset(valueToken, eqToken, 1);
1438
- if (astUtils.isSemicolonToken(maybeSemicolonToken)) {
1439
- offsets.setDesiredOffset(maybeSemicolonToken, eqToken, 1);
1440
- }
1441
- } else if (astUtils.isSemicolonToken(maybeSemicolonToken)) {
1442
- offsets.setDesiredOffset(maybeSemicolonToken, keyLastToken, 1);
1443
- }
1444
- },
1445
-
1446
- StaticBlock(node) {
1447
- const openingCurly = sourceCode.getFirstToken(node, { skip: 1 }); // skip the `static` token
1448
- const closingCurly = sourceCode.getLastToken(node);
1449
-
1450
- addElementListIndent(node.body, openingCurly, closingCurly, options.StaticBlock.body);
1451
- },
1452
-
1453
- SwitchStatement(node) {
1454
- const openingCurly = sourceCode.getTokenAfter(node.discriminant, astUtils.isOpeningBraceToken);
1455
- const closingCurly = sourceCode.getLastToken(node);
1456
-
1457
- offsets.setDesiredOffsets([openingCurly.range[1], closingCurly.range[0]], openingCurly, options.SwitchCase);
1458
-
1459
- if (node.cases.length) {
1460
- sourceCode.getTokensBetween(
1461
- node.cases[node.cases.length - 1],
1462
- closingCurly,
1463
- { includeComments: true, filter: astUtils.isCommentToken }
1464
- ).forEach(token => offsets.ignoreToken(token));
1465
- }
1466
- },
1467
-
1468
- SwitchCase(node) {
1469
- if (!(node.consequent.length === 1 && node.consequent[0].type === "BlockStatement")) {
1470
- const caseKeyword = sourceCode.getFirstToken(node);
1471
- const tokenAfterCurrentCase = sourceCode.getTokenAfter(node);
1472
-
1473
- offsets.setDesiredOffsets([caseKeyword.range[1], tokenAfterCurrentCase.range[0]], caseKeyword, 1);
1474
- }
1475
- },
1476
-
1477
- TemplateLiteral(node) {
1478
- node.expressions.forEach((expression, index) => {
1479
- const previousQuasi = node.quasis[index];
1480
- const nextQuasi = node.quasis[index + 1];
1481
- const tokenToAlignFrom = previousQuasi.loc.start.line === previousQuasi.loc.end.line
1482
- ? sourceCode.getFirstToken(previousQuasi)
1483
- : null;
1484
-
1485
- offsets.setDesiredOffsets([previousQuasi.range[1], nextQuasi.range[0]], tokenToAlignFrom, 1);
1486
- offsets.setDesiredOffset(sourceCode.getFirstToken(nextQuasi), tokenToAlignFrom, 0);
1487
- });
1488
- },
1489
-
1490
- VariableDeclaration(node) {
1491
- let variableIndent = Object.prototype.hasOwnProperty.call(options.VariableDeclarator, node.kind)
1492
- ? options.VariableDeclarator[node.kind]
1493
- : DEFAULT_VARIABLE_INDENT;
1494
-
1495
- const firstToken = sourceCode.getFirstToken(node),
1496
- lastToken = sourceCode.getLastToken(node);
1497
-
1498
- if (options.VariableDeclarator[node.kind] === "first") {
1499
- if (node.declarations.length > 1) {
1500
- addElementListIndent(
1501
- node.declarations,
1502
- firstToken,
1503
- lastToken,
1504
- "first"
1505
- );
1506
- return;
1507
- }
1508
-
1509
- variableIndent = DEFAULT_VARIABLE_INDENT;
1510
- }
1511
-
1512
- if (node.declarations[node.declarations.length - 1].loc.start.line > node.loc.start.line) {
1513
-
1514
- /*
1515
- * VariableDeclarator indentation is a bit different from other forms of indentation, in that the
1516
- * indentation of an opening bracket sometimes won't match that of a closing bracket. For example,
1517
- * the following indentations are correct:
1518
- *
1519
- * var foo = {
1520
- * ok: true
1521
- * };
1522
- *
1523
- * var foo = {
1524
- * ok: true,
1525
- * },
1526
- * bar = 1;
1527
- *
1528
- * Account for when exiting the AST (after indentations have already been set for the nodes in
1529
- * the declaration) by manually increasing the indentation level of the tokens in this declarator
1530
- * on the same line as the start of the declaration, provided that there are declarators that
1531
- * follow this one.
1532
- */
1533
- offsets.setDesiredOffsets(node.range, firstToken, variableIndent, true);
1534
- } else {
1535
- offsets.setDesiredOffsets(node.range, firstToken, variableIndent);
1536
- }
1537
-
1538
- if (astUtils.isSemicolonToken(lastToken)) {
1539
- offsets.ignoreToken(lastToken);
1540
- }
1541
- },
1542
-
1543
- VariableDeclarator(node) {
1544
- if (node.init) {
1545
- const equalOperator = sourceCode.getTokenBefore(node.init, astUtils.isNotOpeningParenToken);
1546
- const tokenAfterOperator = sourceCode.getTokenAfter(equalOperator);
1547
-
1548
- offsets.ignoreToken(equalOperator);
1549
- offsets.ignoreToken(tokenAfterOperator);
1550
- offsets.setDesiredOffsets([tokenAfterOperator.range[0], node.range[1]], equalOperator, 1);
1551
- offsets.setDesiredOffset(equalOperator, sourceCode.getLastToken(node.id), 0);
1552
- }
1553
- },
1554
-
1555
- "JSXAttribute[value]"(node) {
1556
- const equalsToken = sourceCode.getFirstTokenBetween(node.name, node.value, token => token.type === "Punctuator" && token.value === "=");
1557
-
1558
- offsets.setDesiredOffsets([equalsToken.range[0], node.value.range[1]], sourceCode.getFirstToken(node.name), 1);
1559
- },
1560
-
1561
- JSXElement(node) {
1562
- if (node.closingElement) {
1563
- addElementListIndent(node.children, sourceCode.getFirstToken(node.openingElement), sourceCode.getFirstToken(node.closingElement), 1);
1564
- }
1565
- },
1566
-
1567
- JSXOpeningElement(node) {
1568
- const firstToken = sourceCode.getFirstToken(node);
1569
- let closingToken;
1570
-
1571
- if (node.selfClosing) {
1572
- closingToken = sourceCode.getLastToken(node, { skip: 1 });
1573
- offsets.setDesiredOffset(sourceCode.getLastToken(node), closingToken, 0);
1574
- } else {
1575
- closingToken = sourceCode.getLastToken(node);
1576
- }
1577
- offsets.setDesiredOffsets(node.name.range, sourceCode.getFirstToken(node));
1578
- addElementListIndent(node.attributes, firstToken, closingToken, 1);
1579
- },
1580
-
1581
- JSXClosingElement(node) {
1582
- const firstToken = sourceCode.getFirstToken(node);
1583
-
1584
- offsets.setDesiredOffsets(node.name.range, firstToken, 1);
1585
- },
1586
-
1587
- JSXFragment(node) {
1588
- const firstOpeningToken = sourceCode.getFirstToken(node.openingFragment);
1589
- const firstClosingToken = sourceCode.getFirstToken(node.closingFragment);
1590
-
1591
- addElementListIndent(node.children, firstOpeningToken, firstClosingToken, 1);
1592
- },
1593
-
1594
- JSXOpeningFragment(node) {
1595
- const firstToken = sourceCode.getFirstToken(node);
1596
- const closingToken = sourceCode.getLastToken(node);
1597
-
1598
- offsets.setDesiredOffsets(node.range, firstToken, 1);
1599
- offsets.matchOffsetOf(firstToken, closingToken);
1600
- },
1601
-
1602
- JSXClosingFragment(node) {
1603
- const firstToken = sourceCode.getFirstToken(node);
1604
- const slashToken = sourceCode.getLastToken(node, { skip: 1 });
1605
- const closingToken = sourceCode.getLastToken(node);
1606
- const tokenToMatch = astUtils.isTokenOnSameLine(slashToken, closingToken) ? slashToken : closingToken;
1607
-
1608
- offsets.setDesiredOffsets(node.range, firstToken, 1);
1609
- offsets.matchOffsetOf(firstToken, tokenToMatch);
1610
- },
1611
-
1612
- JSXExpressionContainer(node) {
1613
- const openingCurly = sourceCode.getFirstToken(node);
1614
- const closingCurly = sourceCode.getLastToken(node);
1615
-
1616
- offsets.setDesiredOffsets(
1617
- [openingCurly.range[1], closingCurly.range[0]],
1618
- openingCurly,
1619
- 1
1620
- );
1621
- },
1622
-
1623
- JSXSpreadAttribute(node) {
1624
- const openingCurly = sourceCode.getFirstToken(node);
1625
- const closingCurly = sourceCode.getLastToken(node);
1626
-
1627
- offsets.setDesiredOffsets(
1628
- [openingCurly.range[1], closingCurly.range[0]],
1629
- openingCurly,
1630
- 1
1631
- );
1632
- },
1633
-
1634
- "*"(node) {
1635
- const firstToken = sourceCode.getFirstToken(node);
1636
-
1637
- // Ensure that the children of every node are indented at least as much as the first token.
1638
- if (firstToken && !ignoredNodeFirstTokens.has(firstToken)) {
1639
- offsets.setDesiredOffsets(node.range, firstToken, 0);
1640
- }
1641
- }
1642
- };
1643
-
1644
- const listenerCallQueue = [];
1645
-
1646
- /*
1647
- * To ignore the indentation of a node:
1648
- * 1. Don't call the node's listener when entering it (if it has a listener)
1649
- * 2. Don't set any offsets against the first token of the node.
1650
- * 3. Call `ignoreNode` on the node sometime after exiting it and before validating offsets.
1651
- */
1652
- const offsetListeners = {};
1653
-
1654
- for (const [selector, listener] of Object.entries(baseOffsetListeners)) {
1655
-
1656
- /*
1657
- * Offset listener calls are deferred until traversal is finished, and are called as
1658
- * part of the final `Program:exit` listener. This is necessary because a node might
1659
- * be matched by multiple selectors.
1660
- *
1661
- * Example: Suppose there is an offset listener for `Identifier`, and the user has
1662
- * specified in configuration that `MemberExpression > Identifier` should be ignored.
1663
- * Due to selector specificity rules, the `Identifier` listener will get called first. However,
1664
- * if a given Identifier node is supposed to be ignored, then the `Identifier` offset listener
1665
- * should not have been called at all. Without doing extra selector matching, we don't know
1666
- * whether the Identifier matches the `MemberExpression > Identifier` selector until the
1667
- * `MemberExpression > Identifier` listener is called.
1668
- *
1669
- * To avoid this, the `Identifier` listener isn't called until traversal finishes and all
1670
- * ignored nodes are known.
1671
- */
1672
- offsetListeners[selector] = node => listenerCallQueue.push({ listener, node });
1673
- }
1674
-
1675
- // For each ignored node selector, set up a listener to collect it into the `ignoredNodes` set.
1676
- const ignoredNodes = new Set();
1677
-
1678
- /**
1679
- * Ignores a node
1680
- * @param {ASTNode} node The node to ignore
1681
- * @returns {void}
1682
- */
1683
- function addToIgnoredNodes(node) {
1684
- ignoredNodes.add(node);
1685
- ignoredNodeFirstTokens.add(sourceCode.getFirstToken(node));
1686
- }
1687
-
1688
- const ignoredNodeListeners = options.ignoredNodes.reduce(
1689
- (listeners, ignoredSelector) => Object.assign(listeners, { [ignoredSelector]: addToIgnoredNodes }),
1690
- {}
1691
- );
1692
-
1693
- /*
1694
- * Join the listeners, and add a listener to verify that all tokens actually have the correct indentation
1695
- * at the end.
1696
- *
1697
- * Using Object.assign will cause some offset listeners to be overwritten if the same selector also appears
1698
- * in `ignoredNodeListeners`. This isn't a problem because all of the matching nodes will be ignored,
1699
- * so those listeners wouldn't be called anyway.
1700
- */
1701
- return Object.assign(
1702
- offsetListeners,
1703
- ignoredNodeListeners,
1704
- {
1705
- "*:exit"(node) {
1706
-
1707
- // If a node's type is nonstandard, we can't tell how its children should be offset, so ignore it.
1708
- if (!KNOWN_NODES.has(node.type)) {
1709
- addToIgnoredNodes(node);
1710
- }
1711
- },
1712
- "Program:exit"() {
1713
-
1714
- // If ignoreComments option is enabled, ignore all comment tokens.
1715
- if (options.ignoreComments) {
1716
- sourceCode.getAllComments()
1717
- .forEach(comment => offsets.ignoreToken(comment));
1718
- }
1719
-
1720
- // Invoke the queued offset listeners for the nodes that aren't ignored.
1721
- for (let i = 0; i < listenerCallQueue.length; i++) {
1722
- const nodeInfo = listenerCallQueue[i];
1723
-
1724
- if (!ignoredNodes.has(nodeInfo.node)) {
1725
- nodeInfo.listener(nodeInfo.node);
1726
- }
1727
- }
1728
-
1729
- // Update the offsets for ignored nodes to prevent their child tokens from being reported.
1730
- ignoredNodes.forEach(ignoreNode);
1731
-
1732
- addParensIndent(sourceCode.ast.tokens);
1733
-
1734
- /*
1735
- * Create a Map from (tokenOrComment) => (precedingToken).
1736
- * This is necessary because sourceCode.getTokenBefore does not handle a comment as an argument correctly.
1737
- */
1738
- const precedingTokens = new WeakMap();
1739
-
1740
- for (let i = 0; i < sourceCode.ast.comments.length; i++) {
1741
- const comment = sourceCode.ast.comments[i];
1742
-
1743
- const tokenOrCommentBefore = sourceCode.getTokenBefore(comment, { includeComments: true });
1744
- const hasToken = precedingTokens.has(tokenOrCommentBefore) ? precedingTokens.get(tokenOrCommentBefore) : tokenOrCommentBefore;
1745
-
1746
- precedingTokens.set(comment, hasToken);
1747
- }
1748
-
1749
- for (let i = 1; i < sourceCode.lines.length + 1; i++) {
1750
-
1751
- if (!tokenInfo.firstTokensByLineNumber.has(i)) {
1752
-
1753
- // Don't check indentation on blank lines
1754
- continue;
1755
- }
1756
-
1757
- const firstTokenOfLine = tokenInfo.firstTokensByLineNumber.get(i);
1758
-
1759
- if (firstTokenOfLine.loc.start.line !== i) {
1760
-
1761
- // Don't check the indentation of multi-line tokens (e.g. template literals or block comments) twice.
1762
- continue;
1763
- }
1764
-
1765
- if (astUtils.isCommentToken(firstTokenOfLine)) {
1766
- const tokenBefore = precedingTokens.get(firstTokenOfLine);
1767
- const tokenAfter = tokenBefore ? sourceCode.getTokenAfter(tokenBefore) : sourceCode.ast.tokens[0];
1768
- const mayAlignWithBefore = tokenBefore && !hasBlankLinesBetween(tokenBefore, firstTokenOfLine);
1769
- const mayAlignWithAfter = tokenAfter && !hasBlankLinesBetween(firstTokenOfLine, tokenAfter);
1770
-
1771
- /*
1772
- * If a comment precedes a line that begins with a semicolon token, align to that token, i.e.
1773
- *
1774
- * let foo
1775
- * // comment
1776
- * ;(async () => {})()
1777
- */
1778
- if (tokenAfter && astUtils.isSemicolonToken(tokenAfter) && !astUtils.isTokenOnSameLine(firstTokenOfLine, tokenAfter)) {
1779
- offsets.setDesiredOffset(firstTokenOfLine, tokenAfter, 0);
1780
- }
1781
-
1782
- // If a comment matches the expected indentation of the token immediately before or after, don't report it.
1783
- if (
1784
- mayAlignWithBefore && validateTokenIndent(firstTokenOfLine, offsets.getDesiredIndent(tokenBefore)) ||
1785
- mayAlignWithAfter && validateTokenIndent(firstTokenOfLine, offsets.getDesiredIndent(tokenAfter))
1786
- ) {
1787
- continue;
1788
- }
1789
- }
1790
-
1791
- // If the token matches the expected indentation, don't report it.
1792
- if (validateTokenIndent(firstTokenOfLine, offsets.getDesiredIndent(firstTokenOfLine))) {
1793
- continue;
1794
- }
1795
-
1796
- // Otherwise, report the token/comment.
1797
- report(firstTokenOfLine, offsets.getDesiredIndent(firstTokenOfLine));
1798
- }
1799
- }
1800
- }
1801
- );
1802
- }
1803
- };