@tractorbeam/prettier-config 0.1.1 → 0.2.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/CHANGELOG.md ADDED
@@ -0,0 +1,22 @@
1
+ # @tractorbeam/prettier-config
2
+
3
+ ## 0.2.0
4
+
5
+ ### Minor Changes
6
+
7
+ - 3d1f5e6: **Deprecated.** This is the final release of `@tractorbeam/prettier-config`. Migrate to Oxfmt with `@tractorbeam/oxfmt-config`, and lint with Oxlint using `@tractorbeam/oxlint-config`.
8
+
9
+ Update bundled plugins to `prettier-plugin-packagejson` 3, `prettier-plugin-tailwindcss` 0.8, and `@ianvs/prettier-plugin-sort-imports` 4.7.1.
10
+
11
+ ## 0.1.2
12
+
13
+ ### Patch Changes
14
+
15
+ - 91e3bdf: resolve issues, update dependencies
16
+ - 0f492e9: remove typescript to eliminate build step and improve downstream compatibility
17
+
18
+ ## 0.1.1
19
+
20
+ ### Patch Changes
21
+
22
+ - ff0f768: docs: add MIT license and metadata in package.json config
package/README.md CHANGED
@@ -1,5 +1,8 @@
1
1
  # @tractorbeam/prettier-config
2
2
 
3
+ > [!WARNING]
4
+ > **Deprecated.** This package receives no further updates. Format with [Oxfmt](https://oxc.rs/docs/guide/usage/formatter) using [`@tractorbeam/oxfmt-config`](https://www.npmjs.com/package/@tractorbeam/oxfmt-config) instead, and lint with [Oxlint](https://oxc.rs/docs/guide/usage/linter) using [`@tractorbeam/oxlint-config`](https://www.npmjs.com/package/@tractorbeam/oxlint-config).
5
+
3
6
  Shared Prettier configuration for Tractorbeam projects.
4
7
 
5
8
  ## Install
package/main.cjs ADDED
@@ -0,0 +1,25 @@
1
+ /**
2
+ * @type {import("prettier").Config}
3
+ */
4
+ module.exports = {
5
+ plugins: [
6
+ require.resolve("@ianvs/prettier-plugin-sort-imports"),
7
+ require.resolve("prettier-plugin-packagejson"),
8
+ require.resolve("prettier-plugin-tailwindcss"),
9
+ ],
10
+ importOrder: [
11
+ "^(@/env)$",
12
+ "",
13
+ "^(react/(.*)$)|^(react$)",
14
+ "^(next/(.*)$)|^(next$)",
15
+ "<THIRD_PARTY_MODULES>",
16
+ "",
17
+ "^types$",
18
+ "@tractorbeam/(.*)$",
19
+ "@/components/ui/(.*)$",
20
+ "^@/(.*)$",
21
+ "",
22
+ "^[./]",
23
+ ],
24
+ importOrderParserPlugins: ["typescript", "jsx"],
25
+ };
package/package.json CHANGED
@@ -1,58 +1,38 @@
1
1
  {
2
2
  "name": "@tractorbeam/prettier-config",
3
- "version": "0.1.1",
4
- "description": "Shared Prettier configuration for Tractorbeam projects",
3
+ "version": "0.2.0",
4
+ "description": "Deprecated: use @tractorbeam/oxfmt-config (Oxfmt) instead. Shared Prettier configuration for Tractorbeam projects",
5
5
  "keywords": [
6
- "tractorbeam",
7
- "tractorbeamai",
8
6
  "prettier",
9
- "prettierconfig",
10
7
  "prettier-config",
8
+ "prettierconfig",
9
+ "sort-imports",
11
10
  "tailwind",
12
- "sort-imports"
11
+ "tractorbeam",
12
+ "tractorbeamai"
13
13
  ],
14
14
  "homepage": "https://github.com/tractorbeamai/reusables/tree/main/packages/prettier-config#readme",
15
15
  "bugs": {
16
16
  "url": "https://github.com/tractorbeamai/reusables/issues"
17
17
  },
18
+ "license": "MIT",
18
19
  "repository": {
19
20
  "type": "git",
20
21
  "url": "git+https://github.com/tractorbeamai/reusables.git",
21
22
  "directory": "packages/prettier-config"
22
23
  },
23
- "license": "MIT",
24
24
  "type": "module",
25
- "exports": {
26
- ".": {
27
- "types": "./dist/index.d.ts",
28
- "default": "./dist/index.js"
29
- }
30
- },
31
- "files": [
32
- "dist/**",
33
- "README.md"
34
- ],
35
- "dependencies": {
36
- "@ianvs/prettier-plugin-sort-imports": "^4.7.0",
37
- "prettier-plugin-packagejson": "^2.5.19",
38
- "prettier-plugin-tailwindcss": "^0.6.14"
39
- },
40
- "devDependencies": {
41
- "prettier": "^3.5.3",
42
- "typescript": "^5.9.3",
43
- "@tractorbeam/typescript-config": "0.1.1"
44
- },
45
- "peerDependencies": {
46
- "prettier": ">=3.0.0"
47
- },
25
+ "main": "./main.cjs",
48
26
  "publishConfig": {
49
27
  "access": "public",
50
28
  "provenance": true
51
29
  },
52
- "scripts": {
53
- "build": "tsc -p tsconfig.build.json",
54
- "clean": "rm -rf dist *.tsbuildinfo",
55
- "postinstall": "pnpm run build",
56
- "lint:types": "tsc --noEmit"
30
+ "dependencies": {
31
+ "@ianvs/prettier-plugin-sort-imports": "4.7.1",
32
+ "prettier-plugin-packagejson": "3.0.2",
33
+ "prettier-plugin-tailwindcss": "0.8.1"
34
+ },
35
+ "peerDependencies": {
36
+ "prettier": "^3.0.0"
57
37
  }
58
38
  }
package/dist/index.d.ts DELETED
@@ -1,4 +0,0 @@
1
- import type { Config } from "prettier";
2
- declare const config: Config;
3
- export default config;
4
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAEvC,QAAA,MAAM,MAAM,EAAE,MAsBb,CAAC;AAEF,eAAe,MAAM,CAAC"}
package/dist/index.js DELETED
@@ -1,24 +0,0 @@
1
- const config = {
2
- plugins: [
3
- "@ianvs/prettier-plugin-sort-imports",
4
- "prettier-plugin-packagejson",
5
- "prettier-plugin-tailwindcss",
6
- ],
7
- importOrder: [
8
- "^(@/env)$",
9
- "",
10
- "^(react/(.*)$)|^(react$)",
11
- "^(next/(.*)$)|^(next$)",
12
- "<THIRD_PARTY_MODULES>",
13
- "",
14
- "^types$",
15
- "@tractorbeam/(.*)$",
16
- "@/components/ui/(.*)$",
17
- "^@/(.*)$",
18
- "",
19
- "^[./]",
20
- ],
21
- importOrderParserPlugins: ["typescript", "jsx", "decorators-legacy"],
22
- };
23
- export default config;
24
- //# sourceMappingURL=index.js.map
package/dist/index.js.map DELETED
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAEA,MAAM,MAAM,GAAW;IACrB,OAAO,EAAE;QACP,qCAAqC;QACrC,6BAA6B;QAC7B,6BAA6B;KAC9B;IACD,WAAW,EAAE;QACX,WAAW;QACX,EAAE;QACF,0BAA0B;QAC1B,wBAAwB;QACxB,uBAAuB;QACvB,EAAE;QACF,SAAS;QACT,oBAAoB;QACpB,uBAAuB;QAEvB,UAAU;QACV,EAAE;QACF,OAAO;KACR;IACD,wBAAwB,EAAE,CAAC,YAAY,EAAE,KAAK,EAAE,mBAAmB,CAAC;CACrE,CAAC;AAEF,eAAe,MAAM,CAAC"}