@ultimatelemon-eu/prettier-config 1.0.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.
package/README.md ADDED
@@ -0,0 +1,29 @@
1
+ # @ultimatelemon-eu/prettier-config
2
+
3
+ Single quotes, semicolons, no trailing commas, two spaces, 80 columns.
4
+
5
+ ```bash
6
+ npm install -D @ultimatelemon-eu/prettier-config
7
+ ```
8
+
9
+ ```json
10
+ {
11
+ "prettier": "@ultimatelemon-eu/prettier-config"
12
+ }
13
+ ```
14
+
15
+ With Tailwind class sorting, which needs `prettier-plugin-tailwindcss`:
16
+
17
+ ```json
18
+ {
19
+ "prettier": "@ultimatelemon-eu/prettier-config/tailwind"
20
+ }
21
+ ```
22
+
23
+ To override a single option, point at the package from a `.prettierrc.mjs`:
24
+
25
+ ```js
26
+ import base from '@ultimatelemon-eu/prettier-config' with { type: 'json' };
27
+
28
+ export default { ...base, printWidth: 100 };
29
+ ```
package/index.json ADDED
@@ -0,0 +1,7 @@
1
+ {
2
+ "singleQuote": true,
3
+ "semi": true,
4
+ "trailingComma": "none",
5
+ "tabWidth": 2,
6
+ "printWidth": 80
7
+ }
package/package.json ADDED
@@ -0,0 +1,32 @@
1
+ {
2
+ "name": "@ultimatelemon-eu/prettier-config",
3
+ "version": "1.0.0",
4
+ "description": "Shared Prettier configuration for UltimateLemon projects.",
5
+ "license": "MIT",
6
+ "repository": {
7
+ "type": "git",
8
+ "url": "git+https://github.com/ultimatelemon/packages.git",
9
+ "directory": "packages/prettier-config"
10
+ },
11
+ "main": "index.json",
12
+ "exports": {
13
+ ".": "./index.json",
14
+ "./tailwind": "./tailwind.json"
15
+ },
16
+ "files": [
17
+ "index.json",
18
+ "tailwind.json"
19
+ ],
20
+ "peerDependencies": {
21
+ "prettier": ">=3",
22
+ "prettier-plugin-tailwindcss": ">=0.6"
23
+ },
24
+ "peerDependenciesMeta": {
25
+ "prettier-plugin-tailwindcss": {
26
+ "optional": true
27
+ }
28
+ },
29
+ "publishConfig": {
30
+ "access": "public"
31
+ }
32
+ }
package/tailwind.json ADDED
@@ -0,0 +1,8 @@
1
+ {
2
+ "singleQuote": true,
3
+ "semi": true,
4
+ "trailingComma": "none",
5
+ "tabWidth": 2,
6
+ "printWidth": 80,
7
+ "plugins": ["prettier-plugin-tailwindcss"]
8
+ }