Skip to content

Commit

Permalink
style: fix linting error once again 😠
Browse files Browse the repository at this point in the history
  • Loading branch information
MoustaphaDev committed Jan 7, 2025
1 parent f013d13 commit 0034fef
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 18 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ jobs:
'lucide-preact',
'lucide-solid',
'lucide-svelte',
'lucide-astro'
'lucide-astro',
]
steps:
- uses: actions/checkout@v4
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,9 @@ export default {
documentation: `/guide/packages/${pData.name}`,
source: `https://github.com/lucide-icons/lucide/tree/main/packages/${pData.name}`,
icon: `/framework-logos/${packageData[pData.name].icon}.svg`,
iconDark: Boolean(packageData[pData.name].iconDark) ? `/framework-logos/${packageData[pData.name].iconDark}.svg` : null
iconDark: Boolean(packageData[pData.name].iconDark)
? `/framework-logos/${packageData[pData.name].iconDark}.svg`
: null,
}))
.sort((a, b) => a.order - b.order),
thirdPartyPackages,
Expand Down
4 changes: 2 additions & 2 deletions packages/lucide-astro/scripts/exportTemplate.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ export default ({ componentName, iconName, children, getSvg, deprecated, depreca
// Astro doesn't need keyed children in loops
const keylessChildren = children.map((c) => {
const [element, { key, ...otherAttrs }] = c;
return [element, otherAttrs]
})
return [element, otherAttrs];
});

// TODO: build-icons' `pretty` is set to false as the prettier
// formatter uses babel which I'm not sure it supports typescript
Expand Down
4 changes: 2 additions & 2 deletions packages/lucide-astro/tests/setupVitest.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@ import { expect } from 'vitest';
expect.addSnapshotSerializer(htmlSerializer);

expect.extend({
...matchers
})
...matchers,
});
15 changes: 3 additions & 12 deletions packages/lucide-astro/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,22 +14,13 @@
"noEmit": true,
"skipLibCheck": true,
"jsx": "preserve",
"lib": [
"ESNext",
"DOM.Iterable"
],
"types": [
"@testing-library/jest-dom"
],
"lib": ["ESNext", "DOM.Iterable"],
"types": ["@testing-library/jest-dom"],
"plugins": [
{
"name": "@astrojs/ts-plugin",
},
],
},
"include": [
"src/**/*.ts",
"src/**/*.astro",
"tests/**/*.ts"
],
"include": ["src/**/*.ts", "src/**/*.astro", "tests/**/*.ts"],
}

0 comments on commit 0034fef

Please sign in to comment.