@archoleat/prettier-define-config 1.0.3 → 1.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.
Files changed (3) hide show
  1. package/README.md +2 -3
  2. package/index.d.ts +1 -1
  3. package/package.json +35 -37
package/README.md CHANGED
@@ -2,9 +2,6 @@
2
2
 
3
3
  ![NPM Version](https://img.shields.io/npm/v/%40archoleat%2Fprettier-define-config)
4
4
  ![NPM Downloads](https://img.shields.io/npm/dm/%40archoleat%2Fprettier-define-config)
5
- ![ESM](https://img.shields.io/badge/ESM-fe0)
6
- ![Provenance](https://img.shields.io/badge/Provenance-fo0)
7
- ![CodeQL](https://img.shields.io/github/actions/workflow/status/archoleat/prettier-define-config/codeql.yaml?label=CodeQL)
8
5
  ![Specs](https://img.shields.io/github/actions/workflow/status/archoleat/prettier-define-config/spec.yaml?label=Specs)
9
6
  ![Commitlint](https://img.shields.io/github/actions/workflow/status/archoleat/prettier-define-config/commitlint.yaml?label=Commitlint)
10
7
  ![Editorconfig](https://img.shields.io/github/actions/workflow/status/archoleat/prettier-define-config/editorconfig.yaml?label=Editorconfig)
@@ -19,6 +16,8 @@
19
16
  - [Contributing](#contributing)
20
17
  - [License](#license)
21
18
 
19
+ Provide a defineConfig function for Prettier.
20
+
22
21
  ## Installation
23
22
 
24
23
  ```shell
package/index.d.ts CHANGED
@@ -5,7 +5,7 @@ import { Config } from 'prettier';
5
5
  *
6
6
  * @param {object} config Prettier.
7
7
  *
8
- * @returns Prettier config.
8
+ * @return Prettier config.
9
9
  */
10
10
  declare const defineConfig: (config: Config) => Config;
11
11
 
package/package.json CHANGED
@@ -1,10 +1,10 @@
1
1
  {
2
2
  "name": "@archoleat/prettier-define-config",
3
3
  "description": "Provide a defineConfig function for Prettier",
4
- "version": "1.0.3",
4
+ "version": "1.2.0",
5
5
  "license": "MIT",
6
6
  "author": {
7
- "email": "archoleat@gmail.com",
7
+ "email": "nikkeyl.me@gmail.com",
8
8
  "name": "Archoleat",
9
9
  "url": "https://github.com/archoleat"
10
10
  },
@@ -28,15 +28,13 @@
28
28
  "prettier",
29
29
  "typescript"
30
30
  ],
31
- "packageManager": "pnpm@9.7.0",
32
31
  "engines": {
33
- "node": ">=20.0.0",
34
- "pnpm": ">=9.0.0"
32
+ "bun": ">=1.0.0"
35
33
  },
36
34
  "type": "module",
37
35
  "types": "index.d.ts",
38
36
  "imports": {
39
- "#index": "./src/index.ts"
37
+ "#src/*": "./src/*"
40
38
  },
41
39
  "exports": {
42
40
  ".": "./index.js"
@@ -46,51 +44,51 @@
46
44
  "index.js"
47
45
  ],
48
46
  "scripts": {
49
- "init": "pnpm i && husky",
50
- "build": "rollup -c rollup.config.ts --configPlugin typescript"
47
+ "init": "bun i && husky"
51
48
  },
52
49
  "peerDependencies": {
53
50
  "prettier": "^3.3.3"
54
51
  },
55
52
  "devDependencies": {
56
- "@archoleat/commitlint-define-config": "^1.0.11",
57
- "@archoleat/eslint-flat-compatibility": "^1.1.8",
53
+ "@archoleat/commitlint-define-config": "^1.1.0",
54
+ "@archoleat/eslint-flat-compatibility": "^1.2.1",
58
55
  "@archoleat/prettier-define-config": "file:",
59
- "@archoleat/semantic-release-define-config": "^1.1.16",
60
- "@commitlint/cli": "^19.4.1",
61
- "@commitlint/config-conventional": "^19.4.1",
62
- "@commitlint/types": "^19.0.3",
63
- "@rollup/plugin-typescript": "^11.1.6",
56
+ "@archoleat/semantic-release-define-config": "^1.2.0",
57
+ "@commitlint/cli": "^19.8.1",
58
+ "@commitlint/config-conventional": "^19.8.1",
59
+ "@commitlint/types": "^19.8.1",
60
+ "@rollup/plugin-typescript": "^12.1.4",
64
61
  "@semantic-release/changelog": "^6.0.3",
65
62
  "@semantic-release/git": "^10.0.1",
63
+ "@types/bun": "^1.2.20",
66
64
  "@typescript-eslint/eslint-plugin": "^7.18.0",
67
65
  "@typescript-eslint/parser": "^7.18.0",
68
- "@vitest/coverage-v8": "^2.0.5",
69
- "conventional-changelog-conventionalcommits": "^8.0.0",
70
- "editorconfig-checker": "^5.1.8",
71
- "eslint": "^8.57.0",
66
+ "conventional-changelog-conventionalcommits": "^9.1.0",
67
+ "editorconfig-checker": "^6.1.0",
68
+ "eslint": "^8.57.1",
72
69
  "eslint-config-airbnb": "^19.0.4",
73
70
  "eslint-config-airbnb-typescript": "^18.0.0",
74
- "eslint-config-prettier": "^9.1.0",
71
+ "eslint-config-prettier": "^10.1.8",
75
72
  "eslint-define-config": "^2.1.0",
76
- "eslint-import-resolver-typescript": "^3.6.3",
77
- "eslint-plugin-import": "^2.29.1",
78
- "eslint-plugin-unicorn": "^55.0.0",
79
- "git-pull-run": "^1.4.0",
80
- "globals": "^15.9.0",
81
- "husky": "^9.1.5",
82
- "lint-staged": "^15.2.10",
83
- "prettier": "^3.3.3",
73
+ "eslint-import-resolver-typescript": "^4.4.4",
74
+ "eslint-plugin-import": "^2.32.0",
75
+ "eslint-plugin-simple-import-sort": "^12.1.1",
76
+ "eslint-plugin-unicorn": "^60.0.0",
77
+ "expect-type": "^1.2.2",
78
+ "git-pull-run": "^1.6.2",
79
+ "globals": "^16.3.0",
80
+ "husky": "^9.1.7",
81
+ "lint-staged": "^16.1.5",
82
+ "prettier": "^3.6.2",
84
83
  "remark": "15.0.1",
85
84
  "remark-cli": "^12.0.1",
86
- "remark-preset-lint-consistent": "^6.0.0",
87
- "remark-preset-lint-markdown-style-guide": "^6.0.0",
88
- "remark-preset-lint-recommended": "^7.0.0",
89
- "rollup": "^4.21.2",
90
- "rollup-plugin-dts": "^6.1.1",
91
- "rollup-plugin-esbuild": "^6.1.1",
92
- "semantic-release": "^24.1.0",
93
- "typescript": "^5.5.4",
94
- "vitest": "^2.0.5"
85
+ "remark-preset-lint-consistent": "^6.0.1",
86
+ "remark-preset-lint-markdown-style-guide": "^6.0.1",
87
+ "remark-preset-lint-recommended": "^7.0.1",
88
+ "rollup": "^4.46.2",
89
+ "rollup-plugin-dts": "^6.2.1",
90
+ "rollup-plugin-esbuild": "^6.2.1",
91
+ "semantic-release": "^24.2.7",
92
+ "tslib": "^2.8.1"
95
93
  }
96
94
  }