Skip to content

Commit 41a1a5c

Browse files
committed
Update packages
1 parent 1de10b1 commit 41a1a5c

8 files changed

Lines changed: 2028 additions & 1746 deletions

File tree

.npmrc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
auto-install-peers=true
2+
node-linker=hoisted

.prettierignore

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# Ignore artifacts:
2+
dist
3+
.astro
4+
5+
# Standard
6+
**/.git
7+
**/.svn
8+
**/.hg
9+
**/node_modules
10+
11+
# lockfiles
12+
pnpm-lock.yaml
13+
yarn.lock
14+
package-lock.json

.prettierrc

Lines changed: 0 additions & 8 deletions
This file was deleted.

.prettierrc.mjs

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
/** @type {import("prettier").Config} */
2+
export default {
3+
useTabs: false,
4+
singleQuote: true,
5+
trailingComma: "none",
6+
semi: false,
7+
printWidth: 100,
8+
plugins: ["prettier-plugin-astro", "prettier-plugin-tailwindcss"],
9+
overrides: [
10+
{
11+
files: ["**/*.astro"],
12+
options: {
13+
parser: "astro",
14+
},
15+
},
16+
],
17+
};

eslint.config.mjs

Lines changed: 75 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,81 @@
1-
import eslintPluginAstro from 'eslint-plugin-astro'
2-
import * as mdx from 'eslint-plugin-mdx'
3-
import markdown from '@eslint/markdown'
4-
import unocss from '@unocss/eslint-config/flat'
1+
import { defineConfig } from "eslint/config";
2+
import globals from "globals";
3+
import js from "@eslint/js";
4+
import tseslint from "typescript-eslint";
5+
import astro from "eslint-plugin-astro";
6+
import prettier from "eslint-plugin-prettier";
7+
import * as mdx from "eslint-plugin-mdx";
8+
// import markdown from "@eslint/markdown";
9+
import unocss from "@unocss/eslint-config/flat";
510

6-
export default [
7-
...eslintPluginAstro.configs['flat/recommended'],
8-
...eslintPluginAstro.configs['flat/jsx-a11y-recommended'],
9-
{ ...mdx.flat },
11+
// parsers
12+
const tsParser = tseslint.parser;
13+
const astroParser = astro.parser;
14+
15+
export default defineConfig([
16+
// Global configuration
17+
{
18+
languageOptions: {
19+
globals: {
20+
...globals.browser,
21+
...globals.node,
22+
},
23+
},
24+
},
25+
26+
// Base configs
27+
js.configs.recommended,
28+
tseslint.configs.recommended,
29+
30+
// Prettier config
1031
{
11-
files: ['**/*.md'],
1232
plugins: {
13-
markdown
33+
prettier: prettier,
1434
},
15-
language: 'markdown/commonmark',
1635
rules: {
17-
'markdown/no-html': 'error'
18-
}
36+
// disable warnings, since prettier should format on save
37+
"prettier/prettier": "off",
38+
},
39+
},
40+
41+
// astro setup with a11y
42+
astro.configs.recommended,
43+
astro.configs["jsx-a11y-recommended"],
44+
{
45+
files: ["**/*.astro"],
46+
languageOptions: {
47+
parser: astroParser,
48+
parserOptions: {
49+
parser: tsParser,
50+
extraFileExtensions: [".astro"],
51+
sourceType: "module",
52+
ecmaVersion: "latest",
53+
project: "./tsconfig.json",
54+
},
55+
},
56+
rules: {
57+
"no-undef": "off", // Disable "not defined" errors for specific Astro types that are globally available (ImageMetadata)
58+
"@typescript-eslint/no-explicit-any": "off", // you may want this as it can get annoying
59+
},
60+
},
61+
// {
62+
// files: ["**/*.md"],
63+
// plugins: {
64+
// markdown,
65+
// },
66+
// extends: ["markdown/recommended"],
67+
// language: "markdown/gfm",
68+
// languageOptions: {
69+
// frontmatter: "yaml",
70+
// },
71+
// rules: {
72+
// // "markdown/no-html": "error",
73+
// },
74+
// },
75+
{ ...mdx.flat },
76+
unocss,
77+
// Ignore patterns
78+
{
79+
ignores: ["dist/**", "**/*.d.ts", ".github/"],
1980
},
20-
unocss
21-
]
81+
]);

package.json

Lines changed: 22 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -10,33 +10,36 @@
1010
"preview": "astro preview",
1111
"lint": "pnpm run lint:prettier && pnpm run lint:eslint",
1212
"lint:prettier": "prettier --write \"src/**/*.{js,jsx,ts,tsx,md,mdx,astro}\"",
13-
"lint:eslint": "eslint --fix \"src/**/*.{js,ts,jsx,tsx,astro}\""
13+
"lint:eslint": "eslint --fix \"src/**/*.{js,ts,jsx,tsx,md,mdx,astro}\"",
14+
"refresh": "npx @astrojs/upgrade; pnpm up -L"
1415
},
1516
"dependencies": {
16-
"@astrojs/rss": "^4.0.11",
17-
"@astrojs/sitemap": "^3.2.1",
18-
"astro": "^5.3.0"
17+
"@astrojs/rss": "^4.0.12",
18+
"@astrojs/sitemap": "^3.5.1",
19+
"astro": "^5.13.3"
1920
},
2021
"devDependencies": {
2122
"@astrojs/check": "^0.9.4",
22-
"@eslint/markdown": "^6.2.2",
23+
"@eslint/markdown": "^7.2.0",
2324
"@iconify-json/heroicons": "^1.2.2",
24-
"@iconify-json/logos": "^1.2.4",
25-
"@julr/unocss-preset-forms": "^1.0.0",
26-
"@types/node": "^22.13.4",
27-
"@typescript-eslint/parser": "^8.24.0",
28-
"@unocss/eslint-config": "^65.5.0",
29-
"@unocss/reset": "^65.5.0",
30-
"eslint": "^9.20.1",
25+
"@iconify-json/logos": "^1.2.9",
26+
"@julr/unocss-preset-forms": "^2.0.0",
27+
"@types/node": "^24.3.0",
28+
"@typescript-eslint/parser": "^8.41.0",
29+
"@unocss/eslint-config": "^66.4.2",
30+
"eslint": "^9.34.0",
3131
"eslint-plugin-astro": "^1.3.1",
3232
"eslint-plugin-jsx-a11y": "^6.10.2",
33-
"eslint-plugin-mdx": "^3.1.5",
34-
"prettier": "^3.5.1",
33+
"eslint-plugin-mdx": "^3.6.2",
34+
"eslint-plugin-prettier": "^5.5.4",
35+
"globals": "^16.3.0",
36+
"prettier": "^3.6.2",
3537
"prettier-plugin-astro": "^0.14.1",
36-
"prettier-plugin-tailwindcss": "^0.6.11",
37-
"typescript": "^5.7.3",
38-
"unocss": "^65.5.0",
39-
"vite": "^6.1.0"
38+
"prettier-plugin-tailwindcss": "^0.6.14",
39+
"typescript": "^5.9.2",
40+
"typescript-eslint": "^8.41.0",
41+
"unocss": "^66.4.2",
42+
"vite": "^7.1.3"
4043
},
4144
"packageManager": "pnpm@9.12.3+sha512.cce0f9de9c5a7c95bef944169cc5dfe8741abfb145078c0d508b868056848a87c81e626246cb60967cbd7fd29a6c062ef73ff840d96b3c86c40ac92cf4a813ee"
42-
}
45+
}

0 commit comments

Comments
 (0)