@archoleat/prettier-define-config 1.0.0 → 1.0.2

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/README.md +3 -14
  2. package/index.d.ts +1 -1
  3. package/package.json +15 -27
package/README.md CHANGED
@@ -10,7 +10,7 @@
10
10
  ![Editorconfig](https://img.shields.io/github/actions/workflow/status/archoleat/prettier-define-config/editorconfig.yaml?label=Editorconfig)
11
11
  ![Prettier](https://img.shields.io/github/actions/workflow/status/archoleat/prettier-define-config/prettier.yaml?label=Prettier)
12
12
  ![ESLint](https://img.shields.io/github/actions/workflow/status/archoleat/prettier-define-config/eslint.yaml?label=ESLint)
13
- ![Markdown](https://img.shields.io/github/actions/workflow/status/archoleat/prettier-define-config/markdown.yaml?label=Markdown)
13
+ ![Remark](https://img.shields.io/github/actions/workflow/status/archoleat/prettier-define-config/remark.yaml?label=Remark)
14
14
 
15
15
  ## Table of Contents
16
16
 
@@ -22,18 +22,7 @@
22
22
  ## Installation
23
23
 
24
24
  ```shell
25
- # pnpm
26
- pnpm i -D @archoleat/prettier-define-config
27
- ```
28
-
29
- ```shell
30
- # npm
31
- npm i -D @archoleat/prettier-define-config
32
- ```
33
-
34
- ```shell
35
- # yarn
36
- yarn add -D @archoleat/prettier-define-config
25
+ bun i -D @archoleat/prettier-define-config
37
26
  ```
38
27
 
39
28
  ## Usage
@@ -41,7 +30,7 @@ yarn add -D @archoleat/prettier-define-config
41
30
  See [Prettier Configuration](https://prettier.io/docs/en/options.html).
42
31
 
43
32
  ```js
44
- // prettier.config.js or prettier.config.ts
33
+ // prettier.config.js
45
34
  import { defineConfig } from '@archoleat/prettier-define-config';
46
35
 
47
36
  export default defineConfig({
package/index.d.ts CHANGED
@@ -3,7 +3,7 @@ import { Config } from 'prettier';
3
3
  /**
4
4
  * Define an Prettier config.
5
5
  *
6
- * @param {object} config Prettier config.
6
+ * @param {object} config Prettier.
7
7
  *
8
8
  * @returns Prettier config.
9
9
  */
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@archoleat/prettier-define-config",
3
3
  "description": "Provide a defineConfig function for Prettier",
4
- "version": "1.0.0",
4
+ "version": "1.0.2",
5
5
  "license": "MIT",
6
6
  "author": {
7
7
  "email": "archoleat@gmail.com",
@@ -11,7 +11,7 @@
11
11
  "homepage": "https://github.com/archoleat/prettier-define-config#readme",
12
12
  "repository": {
13
13
  "type": "git",
14
- "url": "git+https://github.com/archoleat/prettier-define-config.git"
14
+ "url": "https://github.com/archoleat/prettier-define-config.git"
15
15
  },
16
16
  "bugs": {
17
17
  "url": "https://github.com/archoleat/prettier-define-config/issues"
@@ -28,19 +28,15 @@
28
28
  "prettier",
29
29
  "typescript"
30
30
  ],
31
- "packageManager": "pnpm@9.4.0",
31
+ "packageManager": "pnpm@9.7.0",
32
32
  "engines": {
33
33
  "node": ">=20.0.0",
34
34
  "pnpm": ">=9.0.0"
35
35
  },
36
- "volta": {
37
- "node": "20.16.0",
38
- "pnpm": "9.4.0"
39
- },
40
36
  "type": "module",
41
37
  "types": "index.d.ts",
42
38
  "imports": {
43
- "#src": "./src/index.ts"
39
+ "#app": "./src/app.ts"
44
40
  },
45
41
  "exports": {
46
42
  ".": "./index.js"
@@ -51,24 +47,16 @@
51
47
  ],
52
48
  "scripts": {
53
49
  "init": "pnpm i && husky",
54
- "spec": "vitest",
55
- "spec:coverage": "vitest run --coverage",
56
- "build": "rollup -c rollup.config.ts --configPlugin typescript",
57
- "release": "semantic-release",
58
- "lint:editorconfig": "editorconfig-checker",
59
- "lint:formatting": "prettier . --check",
60
- "lint:md": "remark . --quiet --frail",
61
- "lint:ts": "eslint src/index.ts --fix",
62
- "prettify": "prettier . --write",
63
- "commit": "cz"
50
+ "build": "rollup -c rollup.config.ts --configPlugin typescript"
64
51
  },
65
52
  "peerDependencies": {
66
53
  "prettier": "^3.3.3"
67
54
  },
68
55
  "devDependencies": {
69
- "@archoleat/commitlint-define-config": "^1.0.8",
70
- "@archoleat/eslint-flat-compatibility": "^1.1.6",
71
- "@archoleat/semantic-release-define-config": "^1.1.13",
56
+ "@archoleat/commitlint-define-config": "^1.0.10",
57
+ "@archoleat/eslint-flat-compatibility": "^1.1.7",
58
+ "@archoleat/prettier-define-config": "file:",
59
+ "@archoleat/semantic-release-define-config": "^1.1.15",
72
60
  "@commitlint/cli": "^19.4.0",
73
61
  "@commitlint/config-conventional": "^19.2.2",
74
62
  "@commitlint/types": "^19.0.3",
@@ -79,29 +67,29 @@
79
67
  "@typescript-eslint/parser": "^7.18.0",
80
68
  "@vitest/coverage-v8": "^2.0.5",
81
69
  "conventional-changelog-conventionalcommits": "^8.0.0",
82
- "cz-conventional-changelog": "^3.3.0",
83
70
  "editorconfig-checker": "^5.1.8",
84
71
  "eslint": "^8.57.0",
72
+ "eslint-config-airbnb": "^19.0.4",
85
73
  "eslint-config-airbnb-typescript": "^18.0.0",
86
74
  "eslint-config-prettier": "^9.1.0",
87
75
  "eslint-define-config": "^2.1.0",
88
- "eslint-import-resolver-typescript": "^3.6.1",
76
+ "eslint-import-resolver-typescript": "^3.6.3",
89
77
  "eslint-plugin-import": "^2.29.1",
90
78
  "eslint-plugin-unicorn": "^55.0.0",
91
79
  "git-pull-run": "^1.4.0",
92
80
  "globals": "^15.9.0",
93
- "husky": "^9.1.4",
94
- "lint-staged": "^15.2.8",
81
+ "husky": "^9.1.5",
82
+ "lint-staged": "^15.2.9",
95
83
  "prettier": "^3.3.3",
96
84
  "remark": "15.0.1",
97
85
  "remark-cli": "^12.0.1",
98
86
  "remark-preset-lint-consistent": "^6.0.0",
99
87
  "remark-preset-lint-markdown-style-guide": "^6.0.0",
100
88
  "remark-preset-lint-recommended": "^7.0.0",
101
- "rollup": "^4.20.0",
89
+ "rollup": "^4.21.1",
102
90
  "rollup-plugin-dts": "^6.1.1",
103
91
  "rollup-plugin-esbuild": "^6.1.1",
104
- "semantic-release": "^24.0.0",
92
+ "semantic-release": "^24.1.0",
105
93
  "typescript": "^5.5.4",
106
94
  "vitest": "^2.0.5"
107
95
  }