@greenymcgee/tailwind-prettier-config 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/README.md +30 -0
  2. package/index.mjs +7 -0
  3. package/package.json +13 -0
package/README.md ADDED
@@ -0,0 +1,30 @@
1
+ # @greenymcgee/tailwind-prettier-config
2
+
3
+ My Prettier config for TailwindCSS projects.
4
+
5
+ ## Installation
6
+
7
+ Install the config and its peer dependencies.
8
+ ```bash
9
+ # npm
10
+ npm install -D @greenymcgee/tailwind-prettier-config prettier prettier-plugin-tailwindcss
11
+
12
+ # pnpm
13
+ pnpm add -D @greenymcgee/tailwind-prettier-config prettier prettier-plugin-tailwindcss
14
+ ```
15
+
16
+ ## Usage
17
+
18
+ ```javascript
19
+ // .prettierrc.json
20
+ import greenymcgeeConfig from '@greenymcgee/tailwind-prettier-config'
21
+
22
+ export default {
23
+ ...greenymcgeeConfig,
24
+
25
+ // Override or add rules as needed
26
+ {
27
+ printWidth: 120,
28
+ },
29
+ }
30
+ ```
package/index.mjs ADDED
@@ -0,0 +1,7 @@
1
+ export default {
2
+ plugins: ['prettier-plugin-tailwindcss'],
3
+ printWidth: 80,
4
+ semi: false,
5
+ singleQuote: true,
6
+ trailingComma: 'all',
7
+ }
package/package.json ADDED
@@ -0,0 +1,13 @@
1
+ {
2
+ "name": "@greenymcgee/tailwind-prettier-config",
3
+ "version": "0.1.0",
4
+ "type": "module",
5
+ "main": "./index.mjs",
6
+ "exports": {
7
+ ".": "./index.mjs"
8
+ },
9
+ "peerDependencies": {
10
+ "prettier": "^3.8.0",
11
+ "prettier-plugin-tailwindcss": "^0.7.0"
12
+ }
13
+ }