From 9f1e5bcb60d536b58534ceb3f2c0c8ad58223536 Mon Sep 17 00:00:00 2001 From: Nulo Date: Mon, 28 Aug 2023 10:35:05 -0300 Subject: [PATCH] prettier, tailwind --- package.json | 2 ++ pnpm-lock.yaml | 67 +++++++++++++++++++++++++++++++++++++++++++++ postcss.config.js | 6 ++++ prettier.config.cjs | 2 ++ tailwind.config.js | 8 ++++++ 5 files changed, 85 insertions(+) create mode 100644 postcss.config.js create mode 100644 prettier.config.cjs create mode 100644 tailwind.config.js diff --git a/package.json b/package.json index e0c9655..0f39606 100644 --- a/package.json +++ b/package.json @@ -17,6 +17,8 @@ "@vitejs/plugin-basic-ssl": "^1.0.1", "autoprefixer": "^10.4.15", "postcss": "^8.4.28", + "prettier": "^3.0.2", + "prettier-plugin-tailwindcss": "^0.5.3", "prosemirror-commands": "~1.3.1", "prosemirror-dropcursor": "~1.6.1", "prosemirror-gapcursor": "~1.3.1", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index c602922..4884ab8 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -58,6 +58,12 @@ devDependencies: postcss: specifier: ^8.4.28 version: 8.4.28 + prettier: + specifier: ^3.0.2 + version: 3.0.2 + prettier-plugin-tailwindcss: + specifier: ^0.5.3 + version: 0.5.3(prettier@3.0.2) prosemirror-commands: specifier: ~1.3.1 version: 1.3.1 @@ -1158,6 +1164,67 @@ packages: source-map-js: 1.0.2 dev: true + /prettier-plugin-tailwindcss@0.5.3(prettier@3.0.2): + resolution: {integrity: sha512-M5K80V21yM+CTm/FEFYRv9/9LyInYbCSXpIoPAKMm8zy89IOwdiA2e4JVbcO7tvRtAQWz32zdj7/WKcsmFyAVg==} + engines: {node: '>=14.21.3'} + peerDependencies: + '@ianvs/prettier-plugin-sort-imports': '*' + '@prettier/plugin-pug': '*' + '@shopify/prettier-plugin-liquid': '*' + '@shufo/prettier-plugin-blade': '*' + '@trivago/prettier-plugin-sort-imports': '*' + prettier: ^3.0 + prettier-plugin-astro: '*' + prettier-plugin-css-order: '*' + prettier-plugin-import-sort: '*' + prettier-plugin-jsdoc: '*' + prettier-plugin-marko: '*' + prettier-plugin-organize-attributes: '*' + prettier-plugin-organize-imports: '*' + prettier-plugin-style-order: '*' + prettier-plugin-svelte: '*' + prettier-plugin-twig-melody: '*' + peerDependenciesMeta: + '@ianvs/prettier-plugin-sort-imports': + optional: true + '@prettier/plugin-pug': + optional: true + '@shopify/prettier-plugin-liquid': + optional: true + '@shufo/prettier-plugin-blade': + optional: true + '@trivago/prettier-plugin-sort-imports': + optional: true + prettier-plugin-astro: + optional: true + prettier-plugin-css-order: + optional: true + prettier-plugin-import-sort: + optional: true + prettier-plugin-jsdoc: + optional: true + prettier-plugin-marko: + optional: true + prettier-plugin-organize-attributes: + optional: true + prettier-plugin-organize-imports: + optional: true + prettier-plugin-style-order: + optional: true + prettier-plugin-svelte: + optional: true + prettier-plugin-twig-melody: + optional: true + dependencies: + prettier: 3.0.2 + dev: true + + /prettier@3.0.2: + resolution: {integrity: sha512-o2YR9qtniXvwEZlOKbveKfDQVyqxbEIWn48Z8m3ZJjBjcCmUy3xZGIv+7AkaeuaTr6yPXJjwv07ZWlsWbEy1rQ==} + engines: {node: '>=14'} + hasBin: true + dev: true + /prosemirror-commands@1.3.1: resolution: {integrity: sha512-XTporPgoECkOQACVw0JTe3RZGi+fls3/byqt+tXwGTkD7qLuB4KdVrJamDMJf4kfKga3uB8hZ+kUUyZ5oWpnfg==} dependencies: diff --git a/postcss.config.js b/postcss.config.js new file mode 100644 index 0000000..2e7af2b --- /dev/null +++ b/postcss.config.js @@ -0,0 +1,6 @@ +export default { + plugins: { + tailwindcss: {}, + autoprefixer: {}, + }, +} diff --git a/prettier.config.cjs b/prettier.config.cjs new file mode 100644 index 0000000..440c0e6 --- /dev/null +++ b/prettier.config.cjs @@ -0,0 +1,2 @@ +module.exports = { + plugins: ['prettier-plugin-tailwindcss'],}; diff --git a/tailwind.config.js b/tailwind.config.js new file mode 100644 index 0000000..e2df113 --- /dev/null +++ b/tailwind.config.js @@ -0,0 +1,8 @@ +/** @type {import('tailwindcss').Config} */ +export default { + content: ["./index.html", "./src/**/*.{js,ts,jsx,tsx,svelte}"], + theme: { + extend: {}, + }, + plugins: [], +};