@storm-software/prettier 0.1.0 → 0.2.1

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/CHANGELOG.md CHANGED
@@ -1,8 +1,24 @@
1
- ## 0.1.0 (2024-06-05)
1
+ ## 0.2.1 (2024-06-10)
2
+
3
+
4
+ ### 🩹 Fixes
5
+
6
+ - **deps:** pin dependencies ([e2f9fcbc](https://github.com/storm-software/storm-ops/commit/e2f9fcbc))
7
+
8
+ ## 0.2.0 (2024-06-05)
2
9
 
10
+ ### 🚀 Features
11
+
12
+ - **eslint-plugin:** Added the `apply` helper function
13
+ ([ab919d5e](https://github.com/storm-software/storm-ops/commit/ab919d5e))
14
+
15
+ ## 0.1.0 (2024-06-05)
3
16
 
4
17
  ### 🚀 Features
5
18
 
6
- - **eslint-plugin:** Added the `eslint` and `prittier` base packages ([b2d63d0f](https://github.com/storm-software/storm-ops/commit/b2d63d0f))
19
+ - **eslint-plugin:** Added the `eslint` and `prittier` base packages
20
+ ([b2d63d0f](https://github.com/storm-software/storm-ops/commit/b2d63d0f))
7
21
 
8
- - **workspace-tools:** Update `preset` generator with Storm `eslint-plugin` and `prettier` config ([24ae7683](https://github.com/storm-software/storm-ops/commit/24ae7683))
22
+ - **workspace-tools:** Update `preset` generator with Storm `eslint-plugin` and
23
+ `prettier` config
24
+ ([24ae7683](https://github.com/storm-software/storm-ops/commit/24ae7683))
package/index.cjs ADDED
@@ -0,0 +1,65 @@
1
+ // packages/prettier/src/index.ts
2
+ module.exports = {
3
+ "proseWrap": "always",
4
+ "trailingComma": "none",
5
+ "tabWidth": 2,
6
+ "semi": true,
7
+ "singleQuote": false,
8
+ "quoteProps": "preserve",
9
+ "insertPragma": false,
10
+ "bracketSameLine": true,
11
+ "printWidth": 80,
12
+ "bracketSpacing": true,
13
+ "arrowParens": "avoid",
14
+ "endOfLine": "lf",
15
+ "overrides": [
16
+ {
17
+ "files": "*.md{,x}",
18
+ "options": {
19
+ "semi": false,
20
+ "trailingComma": "none"
21
+ }
22
+ },
23
+ {
24
+ "files": "*.svg",
25
+ "options": {
26
+ "parser": "html"
27
+ }
28
+ },
29
+ { "files": "*.json", "options": { "trailingComma": "none" } },
30
+ {
31
+ "files": "**/*.hbs",
32
+ "options": {
33
+ "parser": "html"
34
+ }
35
+ },
36
+ {
37
+ "files": "**/*.acid",
38
+ "options": {
39
+ "parser": "prisma-parse"
40
+ }
41
+ },
42
+ {
43
+ "files": "**/*.acidic",
44
+ "options": {
45
+ "parser": "prisma-parse"
46
+ }
47
+ }
48
+ ],
49
+ "plugins": [
50
+ "prettier-plugin-sh",
51
+ "prettier-plugin-pkg",
52
+ "@ianvs/prettier-plugin-sort-imports",
53
+ "prettier-plugin-prisma",
54
+ "prettier-plugin-tailwindcss"
55
+ ],
56
+ "importOrder": [
57
+ "^react(-dom)?$",
58
+ "^next(/.*|$)",
59
+ "<THIRD_PARTY_MODULES>",
60
+ "^(@|\\d|_)",
61
+ "^(?=\\.+)(.(?!\\.(graphql|css|png|svg|jpe?g|webp|avif|wasm|mp4|webm)))+$",
62
+ "^.+\\.(graphql|css|png|svg|jpe?g|webp|avif|wasm|mp4|webm)$"
63
+ ],
64
+ "importOrderParserPlugins": ["typescript", "jsx", "decorators-legacy"]
65
+ };
package/meta.json CHANGED
@@ -1 +1 @@
1
- {"inputs":{"packages/prettier/src/config.json":{"bytes":1392,"imports":[]},"packages/prettier/src/index.ts":{"bytes":68,"imports":[{"path":"packages/prettier/src/config.json","kind":"import-statement","original":"./config.json"}],"format":"esm"}},"outputs":{"dist/packages/prettier/index.js":{"imports":[],"exports":["default"],"entryPoint":"packages/prettier/src/index.ts","inputs":{"packages/prettier/src/config.json":{"bytesInOutput":1344},"packages/prettier/src/index.ts":{"bytesInOutput":34}},"bytes":1487}}}
1
+ {"inputs":{"packages/prettier/src/index.ts":{"bytes":1410,"imports":[],"format":"cjs"}},"outputs":{"dist/packages/prettier/index.cjs":{"imports":[],"exports":[],"entryPoint":"packages/prettier/src/index.ts","inputs":{"packages/prettier/src/index.ts":{"bytesInOutput":1410}},"bytes":1444}}}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@storm-software/prettier",
3
- "version": "0.1.0",
3
+ "version": "0.2.1",
4
4
  "type": "commonjs",
5
5
  "description": "⚡ A package containing the base Prettier configuration used by Storm Software across many projects.",
6
6
  "repository": {
@@ -21,7 +21,8 @@
21
21
  "license": "Apache-2.0",
22
22
  "private": false,
23
23
  "exports": {
24
- ".": "./index.js",
24
+ ".": "./index.cjs",
25
+ "./index": "./index.cjs",
25
26
  "./.prettierignore": "./.prettierignore",
26
27
  "./config.json": "./config.json",
27
28
  "./package.json": "./package.json"
@@ -38,13 +39,13 @@
38
39
  },
39
40
  "dependencies": {
40
41
  "@ianvs/prettier-plugin-sort-imports": "4.2.1",
41
- "prettier-plugin-pkg": "^0.18.0",
42
- "prettier-plugin-prisma": "^5.0.0",
43
- "prettier-plugin-sh": "^0.14.0",
44
- "prettier-plugin-tailwindcss": "^0.6.1"
42
+ "prettier-plugin-pkg": "0.18.1",
43
+ "prettier-plugin-prisma": "5.0.0",
44
+ "prettier-plugin-sh": "0.14.0",
45
+ "prettier-plugin-tailwindcss": "0.6.1"
45
46
  },
46
47
  "devDependencies": {
47
- "@types/prettier": "^3.0.0"
48
+ "@types/prettier": "3.0.0"
48
49
  },
49
50
  "publishConfig": {
50
51
  "access": "public"
package/index.js DELETED
@@ -1,71 +0,0 @@
1
- // packages/prettier/src/config.json
2
- var config_default = {
3
- proseWrap: "always",
4
- trailingComma: "none",
5
- tabWidth: 2,
6
- semi: true,
7
- singleQuote: false,
8
- quoteProps: "preserve",
9
- insertPragma: false,
10
- bracketSameLine: true,
11
- printWidth: 80,
12
- bracketSpacing: true,
13
- arrowParens: "avoid",
14
- endOfLine: "lf",
15
- overrides: [
16
- {
17
- files: "*.md{,x}",
18
- options: {
19
- semi: false,
20
- trailingComma: "none"
21
- }
22
- },
23
- {
24
- files: "*.svg",
25
- options: {
26
- parser: "html"
27
- }
28
- },
29
- { files: "*.json", options: { trailingComma: "none" } },
30
- {
31
- files: "**/*.hbs",
32
- options: {
33
- parser: "html"
34
- }
35
- },
36
- {
37
- files: "**/*.acid",
38
- options: {
39
- parser: "prisma-parse"
40
- }
41
- },
42
- {
43
- files: "**/*.acidic",
44
- options: {
45
- parser: "prisma-parse"
46
- }
47
- }
48
- ],
49
- plugins: [
50
- "prettier-plugin-sh",
51
- "prettier-plugin-pkg",
52
- "@ianvs/prettier-plugin-sort-imports",
53
- "prettier-plugin-prisma",
54
- "prettier-plugin-tailwindcss"
55
- ],
56
- importOrder: [
57
- "^react(-dom)?$",
58
- "^next(/.*|$)",
59
- "<THIRD_PARTY_MODULES>",
60
- "^(@|\\d|_)",
61
- "^(?=\\.+)(.(?!\\.(graphql|css|png|svg|jpe?g|webp|avif|wasm|mp4|webm)))+$",
62
- "^.+\\.(graphql|css|png|svg|jpe?g|webp|avif|wasm|mp4|webm)$"
63
- ],
64
- importOrderParserPlugins: ["typescript", "jsx", "decorators-legacy"]
65
- };
66
-
67
- // packages/prettier/src/index.ts
68
- var src_default = config_default;
69
- export {
70
- src_default as default
71
- };