diff --git a/.prettierrc b/.prettierrc deleted file mode 100644 index 7440eb6..0000000 --- a/.prettierrc +++ /dev/null @@ -1,10 +0,0 @@ -{ - "useTabs": true, - "singleQuote": true, - "semi": false, - "trailingComma": "none", - "printWidth": 100, - "plugins": ["prettier-plugin-svelte"], - "pluginSearchDirs": ["."], - "overrides": [{ "files": "*.svelte", "options": { "parser": "svelte" } }] -} diff --git a/package.json b/package.json index 8e9a458..85a9429 100644 --- a/package.json +++ b/package.json @@ -54,6 +54,7 @@ "@fontsource/ibm-plex-mono": "^5.0.7", "clsx": "^2.0.0", "interactjs": "^1.10.18", + "prettier-plugin-tailwindcss": "^0.4.1", "remeda": "^1.24.0", "simplex-noise": "^4.0.1", "svelte-inview": "^4.0.1", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 02b0daa..956336d 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -20,6 +20,9 @@ dependencies: interactjs: specifier: ^1.10.18 version: 1.10.18 + prettier-plugin-tailwindcss: + specifier: ^0.4.1 + version: 0.4.1(prettier-plugin-svelte@3.0.3)(prettier@3.0.1) remeda: specifier: ^1.24.0 version: 1.24.0 @@ -1984,7 +1987,62 @@ packages: dependencies: prettier: 3.0.1 svelte: 4.1.2 - dev: true + + /prettier-plugin-tailwindcss@0.4.1(prettier-plugin-svelte@3.0.3)(prettier@3.0.1): + resolution: {integrity: sha512-hwn2EiJmv8M+AW4YDkbjJ6HlZCTzLyz1QlySn9sMuKV/Px0fjwldlB7tol8GzdgqtkdPtzT3iJ4UzdnYXP25Ag==} + engines: {node: '>=12.17.0'} + peerDependencies: + '@ianvs/prettier-plugin-sort-imports': '*' + '@prettier/plugin-pug': '*' + '@shopify/prettier-plugin-liquid': '*' + '@shufo/prettier-plugin-blade': '*' + '@trivago/prettier-plugin-sort-imports': '*' + prettier: ^2.2 || ^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.1 + prettier-plugin-svelte: 3.0.3(prettier@3.0.1)(svelte@4.1.2) + dev: false /prettier@2.8.8: resolution: {integrity: sha512-tdN8qQGvNjw4CHbY+XXk0JgCXn9QiF21a55rBe5LJAU+kDyC4WQn4+awm2Xfk2lQMk5fKup9XgzTZtGkjBdP9Q==} @@ -1996,7 +2054,6 @@ packages: resolution: {integrity: sha512-fcOWSnnpCrovBsmFZIGIy9UqK2FaI7Hqax+DIO0A9UxeVoY4iweyaFjS5TavZN97Hfehph0nhsZnjlVKzEQSrQ==} engines: {node: '>=14'} hasBin: true - dev: true /prompts@2.4.2: resolution: {integrity: sha512-NxNv/kLguCA7p3jE8oL2aEBsrJWgAakBpgmgK6lpPWV+WuOmY6r2/zbAVnP+T8bQlA0nzHXSJSJW0Hq7ylaD2Q==} diff --git a/prettier.config.cjs b/prettier.config.cjs new file mode 100644 index 0000000..09d42c1 --- /dev/null +++ b/prettier.config.cjs @@ -0,0 +1,10 @@ +module.exports = { + useTabs: true, + singleQuote: true, + semi: false, + trailingComma: 'none', + printWidth: 100, + plugins: ['prettier-plugin-svelte', 'prettier-plugin-tailwindcss'], + tailwindFunctions: ['clsx'], + overrides: [{ files: '*.svelte', options: { parser: 'svelte' } }] +} diff --git a/src/lib/components/Footer.svelte b/src/lib/components/Footer.svelte index 8d0e8e1..7f04a41 100644 --- a/src/lib/components/Footer.svelte +++ b/src/lib/components/Footer.svelte @@ -15,10 +15,10 @@