Skip to content

Commit

Permalink
Upgrade dev dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
dguo committed Jul 16, 2023
1 parent b4d0e71 commit d4b92d7
Show file tree
Hide file tree
Showing 7 changed files with 511 additions and 466 deletions.
22 changes: 11 additions & 11 deletions astro.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ export default defineConfig({
!page.includes("blog/my-approach-to-code-review") &&
!page.includes(
"blog/thinking-in-binaries-spectrums-and-dimensions"
),
}),
)
})
],
markdown: {
remarkPlugins: [remarkReadingTime],
Expand All @@ -42,17 +42,17 @@ export default defineConfig({
return [
h("svg.icon.icon-link", { ariaHidden: "true" }, [
h("use", {
href: "/images/icons.svg#icon-link",
}),
]),
href: "/images/icons.svg#icon-link"
})
])
];
},
test: ["h2", "h3", "h4", "h5", "h6"],
},
],
test: ["h2", "h3", "h4", "h5", "h6"]
}
]
],
shikiConfig: {
theme: "monokai",
},
},
theme: "monokai"
}
}
});
17 changes: 10 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,14 +36,14 @@
},
"devDependencies": {
"@playwright/test": "1.36.1",
"@typescript-eslint/parser": "5.47.1",
"@typescript-eslint/parser": "6.0.0",
"atomic-algolia": "0.3.19",
"eslint": "8.31.0",
"eslint-plugin-astro": "0.21.1",
"prettier": "2.8.1",
"prettier-plugin-astro": "0.7.0",
"stylelint": "14.16.1",
"stylelint-config-recommended": "9.0.0"
"eslint": "8.45.0",
"eslint-plugin-astro": "0.27.2",
"prettier": "3.0.0",
"prettier-plugin-astro": "0.11.0",
"stylelint": "15.10.1",
"stylelint-config-recommended": "13.0.0"
},
"eslintConfig": {
"extends": "plugin:astro/recommended",
Expand All @@ -66,6 +66,9 @@
}
]
},
"prettier": {
"trailingComma": "none"
},
"stylelint": {
"extends": "stylelint-config-recommended"
},
Expand Down
22 changes: 11 additions & 11 deletions playwright.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ const config: PlaywrightTestConfig = {
* Maximum time expect() should wait for the condition to be met.
* For example in `await expect(locator).toHaveText();`
*/
timeout: 5000,
timeout: 5000
},
/* Run tests in files in parallel */
fullyParallel: true,
Expand All @@ -37,31 +37,31 @@ const config: PlaywrightTestConfig = {
actionTimeout: 0,
baseURL: "http://localhost:3000",
/* Collect trace when retrying the failed test. See https://playwright.dev/docs/trace-viewer */
trace: "on-first-retry",
trace: "on-first-retry"
},

/* Configure projects for major browsers */
projects: [
{
name: "chromium",
use: {
...devices["Desktop Chrome"],
},
...devices["Desktop Chrome"]
}
},

{
name: "firefox",
use: {
...devices["Desktop Firefox"],
},
...devices["Desktop Firefox"]
}
},

{
name: "webkit",
use: {
...devices["Desktop Safari"],
},
},
...devices["Desktop Safari"]
}
}

/* Test against mobile viewports. */
// {
Expand Down Expand Up @@ -99,8 +99,8 @@ const config: PlaywrightTestConfig = {
webServer: {
command: "yarn run preview",
port: 3000,
reuseExistingServer: !process.env.CI,
},
reuseExistingServer: !process.env.CI
}
};

export default config;
2 changes: 1 addition & 1 deletion src/pages/blog/_utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ export function getBlogPostList(options?: {
includeUnlisted?: boolean;
}): { url: string; frontmatter: any }[] {
const postsGlob = import.meta.glob("./**/*.(md|mdx)", {
eager: true,
eager: true
});
const posts: any[] = Object.values(postsGlob);
return posts
Expand Down
4 changes: 2 additions & 2 deletions src/pages/blog/feed.xml.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,12 @@ export const get = () =>
items: posts.map((post) => ({
link: post.url,
title: post.frontmatter.title,
pubDate: post.frontmatter.date,
pubDate: post.frontmatter.date
})),
customData: `<language>en-us</language><managingEditor>${
import.meta.env.PUBLIC_AUTHOR_EMAIL
} (${import.meta.env.PUBLIC_AUTHOR_NAME})</managingEditor>
<webMaster>${import.meta.env.PUBLIC_AUTHOR_EMAIL} (${
import.meta.env.PUBLIC_AUTHOR_NAME
})</webMaster>`,
})</webMaster>`
});
2 changes: 1 addition & 1 deletion src/pages/robots.txt.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@ export async function get() {
body: `User-agent: *
Sitemap: ${import.meta.env.SITE}sitemap-index.xml
`,
`
};
}
Loading

0 comments on commit d4b92d7

Please sign in to comment.