@quentinhsu/biome-config 0.1.0 → 0.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.
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2025 QuentinHsu
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md CHANGED
@@ -1,17 +1,23 @@
1
1
  # @quentinhsu/biome-config
2
2
 
3
+ [![npm version](https://img.shields.io/npm/v/@quentinhsu/biome-config?style=flat-square)](https://www.npmjs.com/package/@quentinhsu/biome-config)
4
+ [![npm downloads](https://img.shields.io/npm/dm/@quentinhsu/biome-config?style=flat-square)](https://www.npmjs.com/package/@quentinhsu/biome-config)
5
+ [![Node.js](https://img.shields.io/badge/node-%3E%3D18-green?style=flat-square)](https://nodejs.org/)
6
+ [![license](https://img.shields.io/npm/l/@quentinhsu/biome-config?style=flat-square)](LICENSE)
7
+
3
8
  A modular Biome configuration preset collection built with Rslib. Includes a comprehensive base configuration with framework-specific overlays (React, Next.js, Vue, Nuxt), ultimately generating `biome.jsonc` files in the `dist/` directory that can be directly extended in projects.
4
9
 
5
- ## Development
10
+ ## Usage
11
+
12
+ ### Installation
13
+
14
+ Install this package in your project:
6
15
 
7
16
  ```bash
8
- pnpm install
9
- pnpm build
17
+ pnpm add -D @quentinhsu/biome-config
10
18
  ```
11
19
 
12
- The build process first compiles TypeScript modules to `dist/` via Rslib, then executes `dist/build.mjs` to output each preset as a JSONC file.
13
-
14
- ## Available Presets
20
+ ### Available Presets
15
21
 
16
22
  | Preset | Description | Export |
17
23
  | --- | --- | --- |
@@ -23,16 +29,6 @@ The build process first compiles TypeScript modules to `dist/` via Rslib, then e
23
29
 
24
30
  Each preset inherits from and extends the base configuration with framework-specific file patterns, globals, and linter rules.
25
31
 
26
- ## Usage
27
-
28
- ### Installation
29
-
30
- Install this package in your project:
31
-
32
- ```bash
33
- pnpm add -D @quentinhsu/biome-config
34
- ```
35
-
36
32
  ### Basic Setup
37
33
 
38
34
  Create or update your `biome.json` (or `biome.jsonc`) file to use the base configuration:
@@ -134,5 +130,29 @@ pnpm biome check .
134
130
  pnpm biome lint . --fix
135
131
  ```
136
132
 
133
+ ## Development
134
+
135
+ ### Setup
136
+
137
+ ```bash
138
+ pnpm install
139
+ pnpm build
140
+ ```
141
+
142
+ The build process first compiles TypeScript modules to `dist/` via Rslib, then executes `dist/build.mjs` to output each preset as a JSONC file.
143
+
144
+ ### Publishing
145
+
146
+ For instructions on how to release a new version, see [PUBLISHING.md](PUBLISHING.md).
147
+
148
+ ## Contributing
149
+
150
+ Found an issue or have a suggestion? Please open an [issue](https://github.com/QuentinHsu/biome-config/issues) on GitHub.
151
+
152
+ ## License
153
+
154
+ This project is licensed under the MIT License. See the [LICENSE](LICENSE) file for details.
155
+
156
+
137
157
 
138
158
 
package/dist/build.mjs CHANGED
@@ -88,6 +88,12 @@ const indexConfig = {
88
88
  ':PATH:'
89
89
  ]
90
90
  }
91
+ },
92
+ useSortedAttributes: {
93
+ level: 'on',
94
+ options: {
95
+ sortOrder: 'natural'
96
+ }
91
97
  }
92
98
  }
93
99
  }
package/dist/index.jsonc CHANGED
@@ -41,6 +41,12 @@
41
41
  ":PATH:"
42
42
  ]
43
43
  }
44
+ },
45
+ "useSortedAttributes": {
46
+ "level": "on",
47
+ "options": {
48
+ "sortOrder": "natural"
49
+ }
44
50
  }
45
51
  }
46
52
  }
package/dist/index.mjs CHANGED
@@ -85,6 +85,12 @@ const indexConfig = {
85
85
  ':PATH:'
86
86
  ]
87
87
  }
88
+ },
89
+ useSortedAttributes: {
90
+ level: 'on',
91
+ options: {
92
+ sortOrder: 'natural'
93
+ }
88
94
  }
89
95
  }
90
96
  }
package/dist/next.jsonc CHANGED
@@ -44,6 +44,12 @@
44
44
  ":PATH:"
45
45
  ]
46
46
  }
47
+ },
48
+ "useSortedAttributes": {
49
+ "level": "on",
50
+ "options": {
51
+ "sortOrder": "natural"
52
+ }
47
53
  }
48
54
  }
49
55
  }
package/dist/nuxt.jsonc CHANGED
@@ -45,6 +45,12 @@
45
45
  ":PATH:"
46
46
  ]
47
47
  }
48
+ },
49
+ "useSortedAttributes": {
50
+ "level": "on",
51
+ "options": {
52
+ "sortOrder": "natural"
53
+ }
48
54
  }
49
55
  }
50
56
  }
package/dist/react.jsonc CHANGED
@@ -42,6 +42,12 @@
42
42
  ":PATH:"
43
43
  ]
44
44
  }
45
+ },
46
+ "useSortedAttributes": {
47
+ "level": "on",
48
+ "options": {
49
+ "sortOrder": "natural"
50
+ }
45
51
  }
46
52
  }
47
53
  }
@@ -0,0 +1,6 @@
1
+ #!/usr/bin/env tsx
2
+ /**
3
+ * Generate CHANGELOG.md by analyzing git changes with AI
4
+ * Usage: tsx scripts/generate-changelog.ts [from-tag] [to-tag]
5
+ */
6
+ export {};
package/dist/vue.jsonc CHANGED
@@ -43,6 +43,12 @@
43
43
  ":PATH:"
44
44
  ]
45
45
  }
46
+ },
47
+ "useSortedAttributes": {
48
+ "level": "on",
49
+ "options": {
50
+ "sortOrder": "natural"
51
+ }
46
52
  }
47
53
  }
48
54
  }
package/package.json CHANGED
@@ -1,10 +1,14 @@
1
1
  {
2
2
  "name": "@quentinhsu/biome-config",
3
- "version": "0.1.0",
3
+ "version": "0.2.0",
4
4
  "author": "QuentinHsu",
5
- "repository": "https://github.com/QuentinHsu/biome-config",
5
+ "repository": {
6
+ "type": "git",
7
+ "url": "git+https://github.com/QuentinHsu/biome-config.git"
8
+ },
6
9
  "description": "Modular Biome configuration presets.",
7
10
  "type": "module",
11
+ "packageManager": "pnpm@9.15.0",
8
12
  "files": [
9
13
  "dist"
10
14
  ],
@@ -17,6 +21,7 @@
17
21
  },
18
22
  "scripts": {
19
23
  "generate:types": "tsx scripts/generate-biome-types.ts",
24
+ "generate:changelog": "tsx scripts/generate-changelog.ts",
20
25
  "prebuild": "pnpm run generate:types",
21
26
  "build": "rslib build && node dist/build.mjs",
22
27
  "lint": "npx biome check ."
@@ -28,6 +33,7 @@
28
33
  "formatter"
29
34
  ],
30
35
  "publishConfig": {
36
+ "provenance": true,
31
37
  "access": "public"
32
38
  },
33
39
  "devDependencies": {