@tractorbeam/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.
- package/README.md +27 -0
- package/dist/index.d.ts +4 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +24 -0
- package/dist/index.js.map +1 -0
- package/package.json +35 -0
package/README.md
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
# @tractorbeam/prettier-config
|
|
2
|
+
|
|
3
|
+
Shared Prettier configuration for Tractorbeam projects.
|
|
4
|
+
|
|
5
|
+
## Install
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
pnpm add -D @tractorbeam/prettier-config prettier
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
## Usage
|
|
12
|
+
|
|
13
|
+
### `prettier.config.js` (ESM)
|
|
14
|
+
|
|
15
|
+
```js
|
|
16
|
+
import config from "@tractorbeam/prettier-config";
|
|
17
|
+
|
|
18
|
+
export default config;
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
### `package.json`
|
|
22
|
+
|
|
23
|
+
```json
|
|
24
|
+
{
|
|
25
|
+
"prettier": "@tractorbeam/prettier-config"
|
|
26
|
+
}
|
|
27
|
+
```
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
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
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
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
|
|
@@ -0,0 +1 @@
|
|
|
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"}
|
package/package.json
ADDED
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@tractorbeam/prettier-config",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"description": "Shared Prettier configuration for Tractorbeam projects",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"exports": {
|
|
7
|
+
".": {
|
|
8
|
+
"types": "./dist/index.d.ts",
|
|
9
|
+
"default": "./dist/index.js"
|
|
10
|
+
}
|
|
11
|
+
},
|
|
12
|
+
"files": [
|
|
13
|
+
"dist/**",
|
|
14
|
+
"README.md"
|
|
15
|
+
],
|
|
16
|
+
"dependencies": {
|
|
17
|
+
"@ianvs/prettier-plugin-sort-imports": "^4.7.0",
|
|
18
|
+
"prettier-plugin-packagejson": "^2.5.19",
|
|
19
|
+
"prettier-plugin-tailwindcss": "^0.6.14"
|
|
20
|
+
},
|
|
21
|
+
"devDependencies": {
|
|
22
|
+
"prettier": "^3.5.3",
|
|
23
|
+
"typescript": "^5.9.3",
|
|
24
|
+
"@tractorbeam/typescript-config": "0.1.0"
|
|
25
|
+
},
|
|
26
|
+
"peerDependencies": {
|
|
27
|
+
"prettier": ">=3.0.0"
|
|
28
|
+
},
|
|
29
|
+
"scripts": {
|
|
30
|
+
"build": "tsc -p tsconfig.build.json",
|
|
31
|
+
"clean": "rm -rf dist *.tsbuildinfo",
|
|
32
|
+
"postinstall": "pnpm run build",
|
|
33
|
+
"lint:types": "tsc --noEmit"
|
|
34
|
+
}
|
|
35
|
+
}
|