Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions app/components/Package/TrendsChart.vue
Original file line number Diff line number Diff line change
Expand Up @@ -1077,6 +1077,7 @@ const normalisedDataset = computed(() => {
const lastDateMs = chartData.value.dates.at(-1) ?? 0
const isAbsoluteMetric = selectedMetric.value === 'contributors'

// oxlint-disable-next-line oxc-no-map-spread
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe disable the rule in the config?

return (chartData.value.dataset || []).map(d => {
const series = applyDataPipeline(
d.series.map(v => v ?? 0),
Expand Down
2 changes: 1 addition & 1 deletion app/composables/useSelectedPackageManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export const useSelectedPackageManager = createSharedComposable(
// Sync to data-pm attribute on the client
if (import.meta.client) {
const queryPM = new URLSearchParams(window.location.search).get('pm')
if (queryPM && packageManagers.some(pm => pm.id === queryPM)) {
if (queryPM && packageManagers.some(({ id }) => id === queryPM)) {
pm.value = queryPM as PackageManagerId
}
// Watch for changes and update the attribute
Expand Down
2 changes: 1 addition & 1 deletion server/utils/readme.ts
Original file line number Diff line number Diff line change
Expand Up @@ -558,7 +558,7 @@ export async function renderReadmeHtml(
return `<h${semanticLevel} id="${id}" data-level="${depth}"${preservedAttrs}><a href="#${id}">${displayHtml}</a></h${semanticLevel}>\n`
}

const anchorTokenRegex = /^<a(\s.+)?\/?>$/
const anchorTokenRegex = /^<a(?:\s.+)?\/?>$/
renderer.heading = function ({ tokens, depth }: Tokens.Heading) {
const isAnchorHeading =
anchorTokenRegex.test(tokens[0]?.raw ?? '') && tokens[tokens.length - 1]?.raw === '</a>'
Expand Down
Loading