summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--package.json23
-rw-r--r--pnpm-lock.yaml109
-rw-r--r--tailwind.config.ts2
-rw-r--r--tsconfig.json1
4 files changed, 131 insertions, 4 deletions
diff --git a/package.json b/package.json
index f9a88c2..08eb348 100644
--- a/package.json
+++ b/package.json
@@ -12,7 +12,7 @@
"build": "astro check && astro build",
"preview": "astro preview",
"astro": "astro",
- "lint": "eslint",
+ "lint": "tsc && eslint .",
"format": "prettier --write ."
},
"devDependencies": {
@@ -27,6 +27,7 @@
"@typescript-eslint/parser": "^7.0.1",
"astro": "^4.3.6",
"eslint": "^8.56.0",
+ "eslint-config-prettier": "^9.1.0",
"eslint-plugin-mdx": "^3.1.5",
"execa": "^8.0.1",
"fsevents": "^2.3.3",
@@ -34,7 +35,23 @@
"prettier-eslint": "^16.3.0",
"sharp": "^0.33.2",
"tailwindcss": "^3.4.1",
- "typescript": "^5.3.3"
+ "typescript": "^5.3.3",
+ "typescript-eslint": "^7.0.1"
},
- "packageManager": "[email protected]+sha256.245fe901f8e7fa8782d7f17d32b6a83995e2ae03984cb5b62b8949bfdc27c7b5"
+ "packageManager": "[email protected]+sha256.245fe901f8e7fa8782d7f17d32b6a83995e2ae03984cb5b62b8949bfdc27c7b5",
+ "eslintConfig": {
+ "extends": [
+ "eslint:recommended",
+ "plugin:@typescript-eslint/recommended",
+ "prettier"
+ ],
+ "parser": "@typescript-eslint/parser",
+ "plugins": [
+ "@typescript-eslint"
+ ],
+ "root": true,
+ "ignorePatterns": [
+ "dist/**"
+ ]
+ }
}
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
index 1e9b949..2831e05 100644
--- a/pnpm-lock.yaml
+++ b/pnpm-lock.yaml
@@ -38,6 +38,9 @@ devDependencies:
eslint:
specifier: ^8.56.0
version: 8.56.0
+ eslint-config-prettier:
+ specifier: ^9.1.0
+ version: 9.1.0([email protected])
eslint-plugin-mdx:
specifier: ^3.1.5
version: 3.1.5([email protected])
@@ -62,6 +65,9 @@ devDependencies:
typescript:
specifier: ^5.3.3
version: 5.3.3
+ typescript-eslint:
+ specifier: ^7.0.1
packages:
@@ -1267,6 +1273,10 @@ packages:
resolution: {integrity: sha512-4J1l5d79hoIvsrKh5VUKVRA1aIdsOb10Hu5j3J2VfP/msDnfTdGPmNp2E1Wg+vs97Bktzo+MZePFFXSGoykYJw==}
dev: true
+ resolution: {integrity: sha512-5+fP8P8MFNC+AyZCDxrB2pkZFPGzqQWUzpSeuuVLvm8VMcorNYavBqoFcxK8bQz4Qsbn4oUEEem4wDLfcysGHA==}
+ dev: true
+
resolution: {integrity: sha512-LnwD+mUEfxWMa1QpDraczIn6k0Ee3SMicuYSSzS6ZYl2gKS09EClnJYGd8Du6rfc5r/GZEk5o1mRb8TaTj03sQ==}
dependencies:
@@ -1309,6 +1319,10 @@ packages:
'@types/node': 20.11.17
dev: true
+ resolution: {integrity: sha512-/wdoPq1QqkSj9/QOeKkFquEuPzQbHTWAMPH/PaUMB+JuR31lXhlWXRZ52IpfDYVlDOUBvX09uBrPwxGT1hjNBg==}
+ dev: true
+
resolution: {integrity: sha512-Hy6UMpxhE3j1tLpl27exp1XqHD7n8chAiNPzWfz16LPZoMMoSc4dzLl6w9qijkEb/r5O1ozdu1CWGA2L83ZeZg==}
dev: true
@@ -1321,6 +1335,35 @@ packages:
resolution: {integrity: sha512-dqId9J8K/vGi5Zr7oo212BGii5m3q5Hxlkwy3WpYuKPklmBEvsbMYYyLxAQpSffdLl/gdW0XUpKWFvYmyoWCoQ==}
dev: true
+ /@typescript-eslint/[email protected](@typescript-eslint/[email protected])([email protected])([email protected]):
+ resolution: {integrity: sha512-OLvgeBv3vXlnnJGIAgCLYKjgMEU+wBGj07MQ/nxAaON+3mLzX7mJbhRYrVGiVvFiXtwFlkcBa/TtmglHy0UbzQ==}
+ engines: {node: ^16.0.0 || >=18.0.0}
+ peerDependencies:
+ '@typescript-eslint/parser': ^7.0.0
+ eslint: ^8.56.0
+ typescript: '*'
+ peerDependenciesMeta:
+ typescript:
+ optional: true
+ dependencies:
+ '@eslint-community/regexpp': 4.10.0
+ '@typescript-eslint/parser': 7.0.1([email protected])([email protected])
+ '@typescript-eslint/scope-manager': 7.0.1
+ '@typescript-eslint/type-utils': 7.0.1([email protected])([email protected])
+ '@typescript-eslint/utils': 7.0.1([email protected])([email protected])
+ '@typescript-eslint/visitor-keys': 7.0.1
+ debug: 4.3.4
+ eslint: 8.56.0
+ graphemer: 1.4.0
+ ignore: 5.3.1
+ natural-compare: 1.4.0
+ semver: 7.6.0
+ ts-api-utils: 1.2.1([email protected])
+ typescript: 5.3.3
+ transitivePeerDependencies:
+ - supports-color
+ dev: true
+
resolution: {integrity: sha512-tbsV1jPne5CkFQCgPBcDOt30ItF7aJoZL997JSF7MhGQqOeT3svWRYxiqlfA5RUdlHN6Fi+EI9bxqbdyAUZjYQ==}
engines: {node: ^16.0.0 || >=18.0.0}
@@ -1379,6 +1422,26 @@ packages:
'@typescript-eslint/visitor-keys': 7.0.1
dev: true
+ resolution: {integrity: sha512-YtT9UcstTG5Yqy4xtLiClm1ZpM/pWVGFnkAa90UfdkkZsR1eP2mR/1jbHeYp8Ay1l1JHPyGvoUYR6o3On5Nhmw==}
+ engines: {node: ^16.0.0 || >=18.0.0}
+ peerDependencies:
+ eslint: ^8.56.0
+ typescript: '*'
+ peerDependenciesMeta:
+ typescript:
+ optional: true
+ dependencies:
+ '@typescript-eslint/typescript-estree': 7.0.1([email protected])
+ '@typescript-eslint/utils': 7.0.1([email protected])([email protected])
+ debug: 4.3.4
+ eslint: 8.56.0
+ ts-api-utils: 1.2.1([email protected])
+ typescript: 5.3.3
+ transitivePeerDependencies:
+ - supports-color
+ dev: true
+
/@typescript-eslint/[email protected]:
resolution: {integrity: sha512-1kFmZ1rOm5epu9NZEZm1kckCDGj5UJEf7P1kliH4LKu/RkwpsfqqGmY2OOcUs18lSlQBKLDYBOGxRVtrMN5lpg==}
engines: {node: ^16.0.0 || >=18.0.0}
@@ -1433,6 +1496,25 @@ packages:
- supports-color
dev: true
+ resolution: {integrity: sha512-oe4his30JgPbnv+9Vef1h48jm0S6ft4mNwi9wj7bX10joGn07QRfqIqFHoMiajrtoU88cIhXf8ahwgrcbNLgPA==}
+ engines: {node: ^16.0.0 || >=18.0.0}
+ peerDependencies:
+ eslint: ^8.56.0
+ dependencies:
+ '@eslint-community/eslint-utils': 4.4.0([email protected])
+ '@types/json-schema': 7.0.15
+ '@types/semver': 7.5.7
+ '@typescript-eslint/scope-manager': 7.0.1
+ '@typescript-eslint/types': 7.0.1
+ '@typescript-eslint/typescript-estree': 7.0.1([email protected])
+ eslint: 8.56.0
+ semver: 7.6.0
+ transitivePeerDependencies:
+ - supports-color
+ - typescript
+ dev: true
+
/@typescript-eslint/[email protected]:
resolution: {integrity: sha512-JJtkDduxLi9bivAB+cYOVMtbkqdPOhZ+ZI5LC47MIRrDV4Yn2o+ZnW10Nkmr28xRpSpdJ6Sm42Hjf2+REYXm0A==}
engines: {node: ^16.0.0 || >=18.0.0}
@@ -2372,6 +2454,15 @@ packages:
engines: {node: '>=12'}
dev: true
+ resolution: {integrity: sha512-NSWl5BFQWEPi1j4TjVNItzYV7dZXZ+wP6I6ZhrBGpChQhZRUaElihE9uRRkcbRnNb76UMKDF3r+WTmNcGPKsqw==}
+ hasBin: true
+ peerDependencies:
+ eslint: '>=7.0.0'
+ dependencies:
+ eslint: 8.56.0
+ dev: true
+
resolution: {integrity: sha512-ynztX0k7CQ3iDL7fDEIeg3g0O/d6QPv7IBI9fdYLhXp5fAp0fi8X22xF/D3+Pk0f90R27uwqa1clHpay6t0l8Q==}
engines: {node: '>=18.0.0'}
@@ -5467,6 +5558,24 @@ packages:
semver: 7.6.0
dev: true
+ resolution: {integrity: sha512-aIquOfwHkGHrMSH57HxLT+1Qzp99YtGxEHXMRD+BXOc8fkuFBbA5BXsMYnoVXFuXOWBdXg8U2rN9Xe4p7LrPSQ==}
+ engines: {node: ^16.0.0 || >=18.0.0}
+ peerDependencies:
+ eslint: ^8.56.0
+ typescript: '*'
+ peerDependenciesMeta:
+ typescript:
+ optional: true
+ dependencies:
+ '@typescript-eslint/eslint-plugin': 7.0.1(@typescript-eslint/[email protected])([email protected])([email protected])
+ '@typescript-eslint/parser': 7.0.1([email protected])([email protected])
+ eslint: 8.56.0
+ typescript: 5.3.3
+ transitivePeerDependencies:
+ - supports-color
+ dev: true
+
resolution: {integrity: sha512-pXWcraxM0uxAS+tN0AG/BF2TyqmHO014Z070UsJ+pFvYuRSq8KH8DmWpnbXe0pEPDHXZV3FcAbJkijJ5oNEnWw==}
engines: {node: '>=14.17'}
diff --git a/tailwind.config.ts b/tailwind.config.ts
index 8d81a7d..43a1920 100644
--- a/tailwind.config.ts
+++ b/tailwind.config.ts
@@ -13,7 +13,7 @@ export default {
},
plugins: [
require("@catppuccin/tailwindcss")({
- defaultFlavour: "mocha",
+ /* eslint-disable-line */ defaultFlavour: "mocha",
}),
],
} satisfies Config;
diff --git a/tsconfig.json b/tsconfig.json
index 67a5899..78c72d4 100644
--- a/tsconfig.json
+++ b/tsconfig.json
@@ -10,5 +10,6 @@
"@root/*": ["*"],
"@styles/*": ["src/styles/*"],
},
+ "allowJs": false,
},
}