@apitree.cz/prettier-config 0.1.0-next.313a279
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 +25 -0
- package/dist/config.d.ts +2 -0
- package/dist/config.js +11 -0
- package/dist/config.js.map +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +2 -0
- package/dist/index.js.map +1 -0
- package/package.json +37 -0
package/README.md
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
<div align="center">
|
|
2
|
+
|
|
3
|
+
<a href="https://github.com/ApiTreeCZ">
|
|
4
|
+
<img alt="ApiTree s.r.o." src="https://www.apitree.cz/static/images/logo-header.svg" width="120" />
|
|
5
|
+
</a>
|
|
6
|
+
|
|
7
|
+
# Prettier Config
|
|
8
|
+
|
|
9
|
+
### [Prettier](https://prettier.io) configuration for ApiTree projects
|
|
10
|
+
|
|
11
|
+
</div>
|
|
12
|
+
|
|
13
|
+
## Installation
|
|
14
|
+
|
|
15
|
+
```bash
|
|
16
|
+
pnpm add --save-dev @apitree.cz/prettier-config prettier
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
## Usage
|
|
20
|
+
|
|
21
|
+
Add the following configuration to your `prettier.config.js`:
|
|
22
|
+
|
|
23
|
+
```javascript
|
|
24
|
+
export { config as default } from '@apitree.cz/prettier-config';
|
|
25
|
+
```
|
package/dist/config.d.ts
ADDED
package/dist/config.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"config.js","sourceRoot":"","sources":["../src/config.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,MAAM,GAAY;IAC7B,WAAW,EAAE,QAAQ;IACrB,cAAc,EAAE,IAAI;IACpB,OAAO,EAAE,CAAC,6BAA6B,CAAC;IACxC,IAAI,EAAE,IAAI;IACV,WAAW,EAAE,IAAI;IACjB,QAAQ,EAAE,CAAC;IACX,aAAa,EAAE,KAAK;IACpB,OAAO,EAAE,KAAK;CACf,CAAC"}
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './config.js';
|
package/dist/index.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAC"}
|
package/package.json
ADDED
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@apitree.cz/prettier-config",
|
|
3
|
+
"version": "0.1.0-next.313a279",
|
|
4
|
+
"description": "Prettier configuration for ApiTree projects.",
|
|
5
|
+
"repository": {
|
|
6
|
+
"type": "git",
|
|
7
|
+
"url": "https://github.com/ApiTreeCZ/toolbox",
|
|
8
|
+
"directory": "packages/prettier-config"
|
|
9
|
+
},
|
|
10
|
+
"sideEffects": false,
|
|
11
|
+
"type": "module",
|
|
12
|
+
"exports": "./dist/index.js",
|
|
13
|
+
"files": [
|
|
14
|
+
"dist"
|
|
15
|
+
],
|
|
16
|
+
"dependencies": {
|
|
17
|
+
"prettier-plugin-packagejson": "^2.4.6"
|
|
18
|
+
},
|
|
19
|
+
"devDependencies": {
|
|
20
|
+
"prettier": "^3.0.3",
|
|
21
|
+
"typescript": "^5.2.2"
|
|
22
|
+
},
|
|
23
|
+
"peerDependencies": {
|
|
24
|
+
"prettier": "^3.0.3"
|
|
25
|
+
},
|
|
26
|
+
"scripts": {
|
|
27
|
+
"build": "tsc --build tsconfig.build.json",
|
|
28
|
+
"cleanup": "rimraf .eslintcache .turbo tsconfig.tsbuildinfo tsconfig.build.tsbuildinfo dist node_modules",
|
|
29
|
+
"fix": "run-p ts format:fix lint:fix",
|
|
30
|
+
"format": "prettier --check \"./**/*.{json,md}\"",
|
|
31
|
+
"format:fix": "pnpm run format --write",
|
|
32
|
+
"lint": "eslint --cache --ext cjs,js,ts .",
|
|
33
|
+
"lint:fix": "pnpm run lint --fix",
|
|
34
|
+
"qa": "run-p ts format lint",
|
|
35
|
+
"ts": "tsc --build tsconfig.json"
|
|
36
|
+
}
|
|
37
|
+
}
|