@manufac/prettier-config 1.2.0 → 1.4.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/index.js +28 -0
  2. package/package.json +6 -2
  3. package/index.json +0 -20
package/index.js ADDED
@@ -0,0 +1,28 @@
1
+ /**
2
+ * @type {import("prettier").Config}
3
+ */
4
+ const config = {
5
+ "arrowParens": "always",
6
+ "endOfLine": "lf",
7
+ "bracketSpacing": true,
8
+ "bracketSameLine": false,
9
+ "printWidth": 120,
10
+ "semi": true,
11
+ "singleQuote": false,
12
+ "tabWidth": 2,
13
+ "useTabs": false,
14
+ "overrides": [{
15
+ "files": "*.tsx",
16
+ "options": {
17
+ "printWidth": 100
18
+ }
19
+ }, {
20
+ "files": "*.svelte",
21
+ "options": {
22
+ "parser": "svelte" // Ref: https://github.com/sveltejs/prettier-plugin-svelte?tab=readme-ov-file#setup
23
+ }
24
+ }],
25
+ plugins: ["prettier-plugin-svelte"],
26
+ }
27
+
28
+ export default config;
package/package.json CHANGED
@@ -1,7 +1,8 @@
1
1
  {
2
2
  "name": "@manufac/prettier-config",
3
- "version": "1.2.0",
4
- "main": "index.json",
3
+ "version": "1.4.0",
4
+ "type": "module",
5
+ "exports": "./index.js",
5
6
  "repository": "https://github.com/manufac-analytics/prettier-config.git",
6
7
  "author": "Maneet Goyal <mgoyal@manufacanalytics.com>",
7
8
  "license": "MIT",
@@ -29,5 +30,8 @@
29
30
  ],
30
31
  "engines": {
31
32
  "node": ">=22.0.0"
33
+ },
34
+ "dependencies": {
35
+ "prettier-plugin-svelte": "^3.4.0"
32
36
  }
33
37
  }
package/index.json DELETED
@@ -1,20 +0,0 @@
1
- {
2
- "arrowParens": "always",
3
- "endOfLine": "lf",
4
- "bracketSpacing": true,
5
- "bracketSameLine": false,
6
- "printWidth": 120,
7
- "semi": true,
8
- "singleQuote": false,
9
- "tabWidth": 2,
10
- "useTabs": false,
11
- "overrides": [
12
- {
13
- "files": "*.tsx",
14
- "options": {
15
- "printWidth": 100
16
- }
17
- }
18
- ]
19
- }
20
-