Skip to content

Commit

Permalink
improved opengraph support
Browse files Browse the repository at this point in the history
  • Loading branch information
patsissons committed Feb 22, 2024
1 parent 577ed6a commit 8c51ef5
Show file tree
Hide file tree
Showing 50 changed files with 1,481 additions and 153 deletions.
10 changes: 9 additions & 1 deletion .eslintrc.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,10 @@ module.exports = {
es2017: true,
node: true,
},
globals: {
$$Generic: 'readable',
$$Slots: 'readable',
},
overrides: [
{
files: ['*.svelte'],
Expand All @@ -38,15 +42,19 @@ module.exports = {
},
],
rules: {
// this rule is interfering with $$Generic, so we'll disable it for now
// see: https://github.com/sveltejs/eslint-plugin-svelte/issues/541
'@typescript-eslint/no-redundant-type-constituents': 'off',
'@typescript-eslint/no-unused-vars': [
'warn',
'error',
{
// allow unused function parameters that start with an underscore
argsIgnorePattern: '^_',
// allow destructuring of unused array elements that start with an underscore
destructuredArrayIgnorePattern: '^_',
// allow destructuring of unused fields in order to shrink an object shape
ignoreRestSiblings: true,
varsIgnorePattern: '^\\$\\$(Props|Events|Slots)$',
},
],
},
Expand Down
10 changes: 8 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"scripts": {
"clean": "rimraf ./.svelte-kit",
"dev": "vite dev",
"build": "vite build",
"build": "pnpm sync && vite build",
"preview": "vite preview",
"sync": "svelte-kit sync",
"validate:svelte": "pnpm sync && svelte-check --tsconfig ./tsconfig.json",
Expand All @@ -21,10 +21,15 @@
"dependencies": {
"@download/blockies": "^1.0.3",
"@ensdomains/ensjs": "^3.2.0",
"@fontsource/inter": "^5.0.16",
"@fontsource/roboto-mono": "^5.0.16",
"@napi-rs/canvas": "^0.1.45",
"@resvg/resvg-js": "^2.6.0",
"@urql/core": "^4.2.3",
"@urql/svelte": "^4.0.4",
"date-fns": "^3.3.1",
"dotenv": "^16.3.2",
"satori": "^0.10.11",
"svelte": "^4.2.7",
"tailwindcss": "^3.4.1",
"viem": "^2.5.0"
Expand Down Expand Up @@ -55,7 +60,8 @@
"svelte-check": "^3.6.0",
"tslib": "^2.4.1",
"typescript": "^5.0.0",
"vite": "^5.0.3"
"vite": "^5.0.3",
"vite-plugin-arraybuffer": "^0.0.2"
},
"type": "module"
}
Loading

0 comments on commit 8c51ef5

Please sign in to comment.