@archoleat/prettier-define-config 1.0.2 → 1.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.
Files changed (3) hide show
  1. package/README.md +3 -4
  2. package/index.d.ts +1 -1
  3. package/package.json +11 -12
package/README.md CHANGED
@@ -29,13 +29,12 @@ bun i -D @archoleat/prettier-define-config
29
29
 
30
30
  See [Prettier Configuration](https://prettier.io/docs/en/options.html).
31
31
 
32
+ Add the following code to the `prettier.config.js` file:
33
+
32
34
  ```js
33
- // prettier.config.js
34
35
  import { defineConfig } from '@archoleat/prettier-define-config';
35
36
 
36
- export default defineConfig({
37
- // Your options
38
- })
37
+ export default defineConfig({})
39
38
  ```
40
39
 
41
40
  ## Contributing
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,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.2",
4
+ "version": "1.1.0",
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": "https://github.com/archoleat/prettier-define-config.git"
14
+ "url": "git+https://github.com/archoleat/prettier-define-config.git"
15
15
  },
16
16
  "bugs": {
17
17
  "url": "https://github.com/archoleat/prettier-define-config/issues"
@@ -36,7 +36,7 @@
36
36
  "type": "module",
37
37
  "types": "index.d.ts",
38
38
  "imports": {
39
- "#app": "./src/app.ts"
39
+ "#index": "./src/index.ts"
40
40
  },
41
41
  "exports": {
42
42
  ".": "./index.js"
@@ -46,19 +46,18 @@
46
46
  "index.js"
47
47
  ],
48
48
  "scripts": {
49
- "init": "pnpm i && husky",
50
- "build": "rollup -c rollup.config.ts --configPlugin typescript"
49
+ "init": "pnpm i && husky"
51
50
  },
52
51
  "peerDependencies": {
53
52
  "prettier": "^3.3.3"
54
53
  },
55
54
  "devDependencies": {
56
- "@archoleat/commitlint-define-config": "^1.0.10",
57
- "@archoleat/eslint-flat-compatibility": "^1.1.7",
55
+ "@archoleat/commitlint-define-config": "^1.0.11",
56
+ "@archoleat/eslint-flat-compatibility": "^1.1.8",
58
57
  "@archoleat/prettier-define-config": "file:",
59
- "@archoleat/semantic-release-define-config": "^1.1.15",
60
- "@commitlint/cli": "^19.4.0",
61
- "@commitlint/config-conventional": "^19.2.2",
58
+ "@archoleat/semantic-release-define-config": "^1.1.16",
59
+ "@commitlint/cli": "^19.4.1",
60
+ "@commitlint/config-conventional": "^19.4.1",
62
61
  "@commitlint/types": "^19.0.3",
63
62
  "@rollup/plugin-typescript": "^11.1.6",
64
63
  "@semantic-release/changelog": "^6.0.3",
@@ -79,14 +78,14 @@
79
78
  "git-pull-run": "^1.4.0",
80
79
  "globals": "^15.9.0",
81
80
  "husky": "^9.1.5",
82
- "lint-staged": "^15.2.9",
81
+ "lint-staged": "^15.2.10",
83
82
  "prettier": "^3.3.3",
84
83
  "remark": "15.0.1",
85
84
  "remark-cli": "^12.0.1",
86
85
  "remark-preset-lint-consistent": "^6.0.0",
87
86
  "remark-preset-lint-markdown-style-guide": "^6.0.0",
88
87
  "remark-preset-lint-recommended": "^7.0.0",
89
- "rollup": "^4.21.1",
88
+ "rollup": "^4.21.2",
90
89
  "rollup-plugin-dts": "^6.1.1",
91
90
  "rollup-plugin-esbuild": "^6.1.1",
92
91
  "semantic-release": "^24.1.0",