@archoleat/prettier-define-config 1.2.2 → 1.2.4

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 (2) hide show
  1. package/README.md +14 -2
  2. package/package.json +31 -34
package/README.md CHANGED
@@ -8,15 +8,21 @@
8
8
  ![Prettier](https://img.shields.io/github/actions/workflow/status/archoleat/prettier-define-config/prettier.yaml?label=Prettier)
9
9
  ![ESLint](https://img.shields.io/github/actions/workflow/status/archoleat/prettier-define-config/eslint.yaml?label=ESLint)
10
10
  ![Remark](https://img.shields.io/github/actions/workflow/status/archoleat/prettier-define-config/remark.yaml?label=Remark)
11
+ ![Zero Deps](https://img.shields.io/badge/zero_dependencies-blue)
11
12
 
12
13
  ## Table of Contents
13
14
 
14
15
  - [Installation](#installation)
16
+ - [Runtime](#runtime)
15
17
  - [Usage](#usage)
16
18
  - [Contributing](#contributing)
17
19
  - [License](#license)
18
20
 
19
- Provide a defineConfig function for Prettier.
21
+ Use `defineConfig` for completion and option checking in an ESM Prettier
22
+ configuration. It returns the object unchanged; native JSDoc typing with
23
+ `import('prettier').Config` or TypeScript `satisfies Config` provides the same
24
+ checks without this helper. The declared peer range is Prettier `^3.3.3`;
25
+ this package does not validate configuration at runtime.
20
26
 
21
27
  ## Installation
22
28
 
@@ -24,6 +30,12 @@ Provide a defineConfig function for Prettier.
24
30
  bun i -D @archoleat/prettier-define-config
25
31
  ```
26
32
 
33
+ ## Runtime
34
+
35
+ This ES module is loaded by the host tool's configuration loader. Follow
36
+ the Node.js requirements of that tool. Bun is used for repository tooling,
37
+ not required to call the published helper.
38
+
27
39
  ## Usage
28
40
 
29
41
  See [Prettier Configuration](https://prettier.io/docs/en/options.html).
@@ -33,7 +45,7 @@ Add the following code to the `prettier.config.js` file:
33
45
  ```js
34
46
  import { defineConfig } from '@archoleat/prettier-define-config';
35
47
 
36
- export default defineConfig({})
48
+ export default defineConfig({});
37
49
  ```
38
50
 
39
51
  ## Contributing
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.2.2",
4
+ "version": "1.2.4",
5
5
  "license": "MIT",
6
6
  "author": {
7
7
  "email": "nikkeyl.me@gmail.com",
@@ -17,20 +17,11 @@
17
17
  "url": "https://github.com/archoleat/prettier-define-config/issues"
18
18
  },
19
19
  "keywords": [
20
- "archoleat-prettier-define-config",
21
20
  "archoleat",
22
- "config",
23
- "configuration",
24
- "define-config",
25
- "plugin",
26
- "prettier-config",
27
21
  "prettier-define-config",
28
22
  "prettier",
29
23
  "typescript"
30
24
  ],
31
- "engines": {
32
- "bun": ">=1.0.0"
33
- },
34
25
  "type": "module",
35
26
  "types": "index.d.ts",
36
27
  "imports": {
@@ -50,42 +41,48 @@
50
41
  "prettier": "^3.3.3"
51
42
  },
52
43
  "devDependencies": {
53
- "@archoleat/commitlint-define-config": "^1.1.0",
44
+ "@archoleat/commitlint-define-config": "^1.1.2",
54
45
  "@archoleat/prettier-define-config": "file:",
55
- "@archoleat/semantic-release-define-config": "^1.2.0",
56
- "@commitlint/cli": "^20.1.0",
57
- "@commitlint/config-conventional": "^20.3.0",
58
- "@commitlint/types": "^20.2.0",
59
- "@rollup/plugin-typescript": "^12.1.4",
46
+ "@archoleat/semantic-release-define-config": "^1.3.2",
47
+ "@commitlint/cli": "^21.2.0",
48
+ "@commitlint/config-conventional": "^21.2.0",
49
+ "@commitlint/types": "^21.2.0",
50
+ "@rollup/plugin-typescript": "^12.3.0",
60
51
  "@semantic-release/changelog": "^6.0.3",
61
52
  "@semantic-release/git": "^10.0.1",
62
- "@types/bun": "^1.2.21",
63
- "@typescript-eslint/eslint-plugin": "^8.48.0",
64
- "@typescript-eslint/parser": "^8.51.0",
65
- "conventional-changelog-conventionalcommits": "^9.1.0",
66
- "editorconfig-checker": "^6.1.0",
67
- "eslint": "^9.39.1",
53
+ "@types/bun": "^1.3.14",
54
+ "@typescript-eslint/eslint-plugin": "^8.62.1",
55
+ "@typescript-eslint/parser": "^8.62.1",
56
+ "conventional-changelog-conventionalcommits": "^9.3.1",
57
+ "editorconfig-checker": "^7.0.0",
58
+ "eslint": "^10.6.0",
68
59
  "eslint-config-prettier": "^10.1.8",
69
60
  "eslint-define-config": "^2.1.0",
70
- "eslint-import-resolver-typescript": "^4.4.4",
61
+ "eslint-import-resolver-typescript": "^4.4.5",
71
62
  "eslint-plugin-import": "^2.32.0",
72
- "eslint-plugin-simple-import-sort": "^12.1.1",
73
- "eslint-plugin-unicorn": "^62.0.0",
74
- "expect-type": "^1.3.0",
75
- "git-pull-run": "^1.6.2",
76
- "globals": "^16.3.0",
63
+ "eslint-plugin-simple-import-sort": "^13.0.0",
64
+ "eslint-plugin-unicorn": "^70.0.0",
65
+ "expect-type": "^1.4.0",
66
+ "globals": "^17.7.0",
77
67
  "husky": "^9.1.7",
78
- "lint-staged": "^16.1.6",
79
- "prettier": "^3.6.2",
68
+ "lint-staged": "^17.0.8",
69
+ "prettier": "^3.9.4",
80
70
  "remark": "15.0.1",
81
71
  "remark-cli": "^12.0.1",
82
72
  "remark-preset-lint-consistent": "^6.0.1",
83
73
  "remark-preset-lint-markdown-style-guide": "^6.0.1",
84
74
  "remark-preset-lint-recommended": "^7.0.1",
85
- "rollup": "^4.50.0",
86
- "rollup-plugin-dts": "^6.3.0",
75
+ "rollup": "^4.62.2",
76
+ "rollup-plugin-dts": "^6.4.1",
87
77
  "rollup-plugin-esbuild": "^6.2.1",
88
- "semantic-release": "^25.0.2",
89
- "tslib": "^2.8.1"
78
+ "semantic-release": "^25.0.5",
79
+ "tslib": "^2.8.1",
80
+ "typescript": "^6.0.2"
81
+ },
82
+ "patchedDependencies": {
83
+ "glob@10.5.0": "patches/glob@10.5.0.patch",
84
+ "minimatch@9.0.9": "patches/minimatch@9.0.9.patch",
85
+ "minimatch@10.2.6": "patches/minimatch@10.2.6.patch",
86
+ "npm@11.21.2": "patches/npm@11.21.2.patch"
90
87
  }
91
88
  }