Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore 🧹 (astro): update astro #4

Merged
merged 2 commits into from
Feb 11, 2024
Merged
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
28 changes: 28 additions & 0 deletions .eslintrc.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
module.exports = {
// ...
extends: [
// ...
"plugin:astro/all",
"plugin:astro/jsx-a11y-strict",
],
// ...
overrides: [
{
// Define the configuration for `.astro` file.
files: ["*.astro"],
// Allows Astro components to be parsed.
parser: "astro-eslint-parser",
// Parse the script in `.astro` as TypeScript by adding the following configuration.
// It's the setting you need when using TypeScript.
parserOptions: {
parser: "@typescript-eslint/parser",
extraFileExtensions: [".astro"],
},
rules: {
// override/add rules settings here, such as:
// "astro/no-set-html-directive": "error"
},
},
// ...
],
};
1 change: 1 addition & 0 deletions .frontmatter/database/taxonomyDb.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{}
30 changes: 0 additions & 30 deletions README.md

This file was deleted.

4 changes: 3 additions & 1 deletion astro.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,10 @@ import rehypeSlug from "rehype-slug";
import rehypeAutolinkHeadings from "rehype-autolink-headings";
import { remarkReadingTime } from "./remark-reading-time.mjs";
import partytown from "@astrojs/partytown";

import sitemap from "@astrojs/sitemap";

import jopSoftwarecookieconsent from "@jop-software/astro-cookieconsent";

// https://astro.build/config
export default defineConfig({
site: "https://etienne.deneuve.xyz",
Expand All @@ -19,6 +20,7 @@ export default defineConfig({
forward: ["dataLayer.push"],
},
}),
jopSoftwarecookieconsent(),
],
markdown: {
shikiConfig: {
Expand Down
24 changes: 16 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,18 +10,26 @@
"astro": "astro"
},
"dependencies": {
"@astrojs/markdown-remark": "^2.1.4",
"@astrojs/sitemap": "^1.2.2",
"astro": "^2.3.4",
"mdast-util-to-string": "^3.1.1",
"@astrojs/markdown-remark": "^4.2.1",
"@astrojs/sitemap": "^3.0.5",
"@jop-software/astro-cookieconsent": "^2.0.0",
"astro": "^4.3.5",
"mdast-util-to-string": "^4.0.0",
"reading-time": "^1.5.0",
"rehype-accessible-emojis": "^0.3.2",
"rehype-autolink-headings": "^6.1.1",
"rehype-slug": "^5.1.0",
"rehype-autolink-headings": "^7.1.0",
"rehype-slug": "^6.0.0",
"rehype-toc": "^3.0.2",
"remark-toc": "^8.0.1"
"remark-toc": "^9.0.0",
"vanilla-cookieconsent": "^2.9.2"
},
"devDependencies": {
"@astrojs/partytown": "^1.2.1"
"@astrojs/partytown": "^2.0.4",
"@typescript-eslint/parser": "^6.21.0",
"eslint": "^8.56.0",
"eslint-plugin-astro": "^0.31.4",
"eslint-plugin-jsx-a11y": "^6.8.0",
"prettier": "^3.2.5",
"prettier-plugin-astro": "^0.12.3"
}
}
Loading