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

Fix hover and update imprint #19

Merged
merged 4 commits into from
Aug 20, 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
3 changes: 2 additions & 1 deletion .lighthouserc.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@
"unused-css-rules": "off",
"unused-javascript": "off",
"color-contrast": "warn",
"service-worker": "off"
"service-worker": "off",
"label-content-name-mismatch": "off"
}
}
}
Expand Down
92 changes: 92 additions & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,92 @@
import { FlatCompat } from "@eslint/eslintrc";
import js from "@eslint/js";
import tsParser from "@typescript-eslint/parser";
import parser from "astro-eslint-parser";
import astro from "eslint-plugin-astro";
import jsxA11Y from "eslint-plugin-jsx-a11y";
import prettier from "eslint-plugin-prettier";
import tailwindcss from "eslint-plugin-tailwindcss";
import globals from "globals";
import path from "node:path";
import { fileURLToPath } from "node:url";

const __filename = fileURLToPath(import.meta.url);
const __dirname = path.dirname(__filename);
const compat = new FlatCompat({
baseDirectory: __dirname,
recommendedConfig: js.configs.recommended,
allConfig: js.configs.all,
});

export default [
{
ignores: ["**/.husky", "**/.vscode", "**/node_modules", "**/public", "**/dist"],
},
...compat.extends(
"plugin:@typescript-eslint/recommended",
"plugin:astro/recommended",
"plugin:astro/jsx-a11y-recommended",
"plugin:tailwindcss/recommended",
),
{
plugins: {
prettier,
tailwindcss,
},

languageOptions: {
parser: tsParser,
ecmaVersion: "latest",
sourceType: "module",

parserOptions: {
project: "./tsconfig.json",
extraFileExtensions: [".astro"],
},
},

settings: {
tailwindcss: {
config: "tailwind.config.js",
},
},

rules: {
"tailwindcss/classnames-order": "off",
},
},
...compat.extends("plugin:astro/recommended", "plugin:astro/jsx-a11y-recommended").map((config) => ({
...config,
files: ["**/*.astro"],
})),
{
files: ["**/*.astro"],

plugins: {
astro,
"jsx-a11y": jsxA11Y,
},

languageOptions: {
globals: {
...globals.node,
...astro.environments.astro.globals,
},

parser: parser,
ecmaVersion: 5,
sourceType: "commonjs",

parserOptions: {
parser: "@typescript-eslint/parser",
extraFileExtensions: [".astro"],
project: "./tsconfig.json",
},
},

rules: {
"@typescript-eslint/no-floating-promises": "warn",
"@typescript-eslint/no-unused-vars": "warn",
},
},
];
69 changes: 36 additions & 33 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,49 +20,52 @@
"format:check": "prettier --check . --plugin=prettier-plugin-astro"
},
"dependencies": {
"@astrojs/check": "^0.3.1",
"@astrojs/react": "^3.0.4",
"@astrojs/sitemap": "^3.0.3",
"@astrojs/tailwind": "^5.0.2",
"@fontsource/inter": "^5.0.15",
"@fontsource/outfit": "^5.0.8",
"astro": "^3.5.4",
"astro-seo": "^0.8.0",
"@astrojs/check": "^0.3.4",
"@astrojs/react": "^3.6.2",
"@astrojs/sitemap": "^3.1.6",
"@astrojs/tailwind": "^5.1.0",
"@fontsource/inter": "^5.0.20",
"@fontsource/outfit": "^5.0.14",
"astro": "^3.6.5",
"astro-seo": "^0.8.4",
"class-variance-authority": "^0.7.0",
"clsx": "^2.0.0",
"clsx": "^2.1.1",
"lucide-react": "^0.292.0",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react": "^18.3.1",
"react-dom": "^18.3.1",
"remark-math": "^6.0.0",
"sharp": "^0.32.6",
"tailwind-merge": "^2.0.0",
"tailwindcss": "^3.3.5",
"tailwind-merge": "^2.5.2",
"tailwindcss": "^3.4.10",
"tailwindcss-animate": "^1.0.7"
},
"devDependencies": {
"@mermaid-js/mermaid-cli": "^10.6.1",
"@tailwindcss/typography": "^0.5.10",
"@types/react": "^18.2.37",
"@types/react-dom": "^18.2.15",
"@typescript-eslint/eslint-plugin": "^6.11.0",
"@typescript-eslint/parser": "^6.11.0",
"astro-eslint-parser": "^0.16.0",
"eslint": "^8.53.0",
"eslint-config-prettier": "^9.0.0",
"@eslint/eslintrc": "^3.1.0",
"@eslint/js": "^9.9.0",
"@mermaid-js/mermaid-cli": "^10.9.1",
"@tailwindcss/typography": "^0.5.14",
"@types/react": "^18.3.4",
"@types/react-dom": "^18.3.0",
"@typescript-eslint/eslint-plugin": "^6.21.0",
"@typescript-eslint/parser": "^6.21.0",
"astro-eslint-parser": "^0.16.3",
"eslint": "^8.57.0",
"eslint-config-prettier": "^9.1.0",
"eslint-import-resolver-typescript": "^3.6.1",
"eslint-plugin-astro": "^0.29.1",
"eslint-plugin-import": "^2.29.0",
"eslint-plugin-jsx-a11y": "^6.8.0",
"eslint-plugin-prettier": "^5.0.1",
"eslint-plugin-react": "^7.33.2",
"eslint-plugin-react-hooks": "^4.6.0",
"eslint-plugin-tailwindcss": "^3.13.0",
"eslint-plugin-import": "^2.29.1",
"eslint-plugin-jsx-a11y": "^6.9.0",
"eslint-plugin-prettier": "^5.2.1",
"eslint-plugin-react": "^7.35.0",
"eslint-plugin-react-hooks": "^4.6.2",
"eslint-plugin-tailwindcss": "^3.17.4",
"globals": "^15.9.0",
"husky": "^8.0.3",
"lint-staged": "^15.1.0",
"prettier": "^3.1.0",
"prettier-plugin-astro": "^0.12.2",
"prettier-plugin-tailwindcss": "^0.5.7",
"typescript": "^5.2.2"
"lint-staged": "^15.2.9",
"prettier": "^3.3.3",
"prettier-plugin-astro": "^0.12.3",
"prettier-plugin-tailwindcss": "^0.5.14",
"typescript": "^5.5.4"
},
"prettier": {
"tabWidth": 2,
Expand Down
Loading
Loading