From 63c4f174c849a41eb0c2b5fc7470151dd1f0277c Mon Sep 17 00:00:00 2001 From: seth Date: Sat, 20 May 2023 02:32:33 -0400 Subject: move eslint/postcss configs to package.json --- .eslintrc.json | 11 ----------- package.json | 28 +++++++++++++++++++++++++++- pnpm-lock.yaml | 13 +++++++++++++ postcss.config.cjs | 7 ------- 4 files changed, 40 insertions(+), 19 deletions(-) delete mode 100644 .eslintrc.json delete mode 100644 postcss.config.cjs diff --git a/.eslintrc.json b/.eslintrc.json deleted file mode 100644 index eb253c3..0000000 --- a/.eslintrc.json +++ /dev/null @@ -1,11 +0,0 @@ -{ - "extends": ["eslint:recommended", "plugin:prettier/recommended"], - "env": { - "es6": true, - "node": true - }, - "rules": { - "prettier/prettier": "error" - }, - "plugins": ["prettier"] -} diff --git a/package.json b/package.json index f0025ed..1ae90a9 100644 --- a/package.json +++ b/package.json @@ -10,9 +10,9 @@ "astro": "astro", "format": "prettier --write --editorconfig ." }, - "dependencies": {}, "devDependencies": { "@astrojs/tailwind": "^3.1.2", + "@astrojs/ts-plugin": "^1.0.6", "@catppuccin/tailwindcss": "^0.1.1", "astro": "^2.4.5", "autoprefixer": "^10.4.14", @@ -25,5 +25,31 @@ "prettier-plugin-astro": "^0.8.1", "sass": "^1.62.1", "tailwindcss": "^3.3.2" + }, + "eslintConfig": { + "extends": [ + "eslint:recommended", + "plugin:prettier/recommended" + ], + "env": { + "es6": true, + "node": true + }, + "rules": { + "prettier/prettier": "error" + }, + "parserOptions": { + "sourceType": "module" + }, + "plugins": [ + "prettier" + ] + }, + "postcss": { + "plugins": { + "postcss-import": {}, + "tailwindcss": {}, + "autoprefixer": {} + } } } diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index a026589..262bc25 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -4,6 +4,9 @@ devDependencies: "@astrojs/tailwind": specifier: ^3.1.2 version: 3.1.2(astro@2.4.5)(tailwindcss@3.3.2) + "@astrojs/ts-plugin": + specifier: ^1.0.6 + version: 1.0.6 "@catppuccin/tailwindcss": specifier: ^0.1.1 version: 0.1.1 @@ -164,6 +167,16 @@ packages: - supports-color dev: true + /@astrojs/ts-plugin@1.0.6: + resolution: + { + integrity: sha512-1fx9Dtfowklhphva/PeijdDoYvUBPYwkCk7dqk04xAjwmv6tWrrsU8xZMfQ1JWUtT2RnciaSagggP6w0PFb1Ig==, + } + dependencies: + "@astrojs/compiler": 1.4.2 + "@jridgewell/trace-mapping": 0.3.18 + dev: true + /@astrojs/webapi@2.1.1: resolution: { diff --git a/postcss.config.cjs b/postcss.config.cjs deleted file mode 100644 index 7648842..0000000 --- a/postcss.config.cjs +++ /dev/null @@ -1,7 +0,0 @@ -module.exports = { - plugins: { - "postcss-import": {}, - tailwindcss: {}, - autoprefixer: {}, - }, -}; -- cgit v1.2.3