@nilmuse/biome-config 0.0.0-stage → 0.1.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 (4) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +36 -2
  3. package/biome.json +46 -0
  4. package/package.json +50 -4
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Maxim
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,3 +1,37 @@
1
- # Temporary Holding Version
1
+ # @nilmuse/biome-config
2
2
 
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.
3
+ Shared [Biome](https://biomejs.dev) configuration for the `nilmuse` npm portfolio. Encodes the
4
+ single linter/formatter standard (`assembly.md` §4.8/§7) so every package inherits it via `extends`.
5
+
6
+ ---
7
+
8
+ ## Installation
9
+
10
+ ```bash
11
+ npm install -D @nilmuse/biome-config @biomejs/biome
12
+ ```
13
+
14
+ ---
15
+
16
+ ## Usage
17
+
18
+ In a package `biome.json`:
19
+
20
+ ```json
21
+ {
22
+ "extends": ["@nilmuse/biome-config/biome"]
23
+ }
24
+ ```
25
+
26
+ Biome resolves the package from `node_modules` (Biome 2.4+). Paths and globs in the consuming
27
+ config stay relative to that consuming `biome.json`.
28
+
29
+ The shared config sets the formatter (2-space, width 100, `lf`, single quotes, always semicolons,
30
+ trailing commas) and the recommended linter rules plus `noUnusedVariables`, `noExplicitAny` (warn)
31
+ and `noUselessTypeConstraint`. Override per package as needed after the `extends`.
32
+
33
+ ---
34
+
35
+ ## License
36
+
37
+ MIT
package/biome.json ADDED
@@ -0,0 +1,46 @@
1
+ {
2
+ "$schema": "https://biomejs.dev/schemas/2.4.16/schema.json",
3
+ "vcs": {
4
+ "enabled": true,
5
+ "clientKind": "git",
6
+ "useIgnoreFile": true
7
+ },
8
+ "formatter": {
9
+ "enabled": true,
10
+ "indentStyle": "space",
11
+ "indentWidth": 2,
12
+ "lineWidth": 100,
13
+ "lineEnding": "lf"
14
+ },
15
+ "linter": {
16
+ "enabled": true,
17
+ "rules": {
18
+ "recommended": true,
19
+ "correctness": {
20
+ "noUnusedVariables": "error"
21
+ },
22
+ "suspicious": {
23
+ "noExplicitAny": "warn"
24
+ },
25
+ "complexity": {
26
+ "noUselessTypeConstraint": "error"
27
+ }
28
+ }
29
+ },
30
+ "javascript": {
31
+ "formatter": {
32
+ "quoteStyle": "single",
33
+ "semicolons": "always",
34
+ "trailingCommas": "all",
35
+ "arrowParentheses": "always"
36
+ }
37
+ },
38
+ "assist": {
39
+ "enabled": true,
40
+ "actions": {
41
+ "source": {
42
+ "organizeImports": "on"
43
+ }
44
+ }
45
+ }
46
+ }
package/package.json CHANGED
@@ -1,6 +1,52 @@
1
1
  {
2
2
  "name": "@nilmuse/biome-config",
3
- "version": "0.0.0-stage",
4
- "stub": true,
5
- "description": "Temporary package placeholder for staged publishing"
6
- }
3
+ "version": "0.1.2",
4
+ "description": "Shared Biome configuration for the nilmuse npm portfolio (assembly.md §4.8/§7).",
5
+ "type": "module",
6
+ "author": "Maxim <m@nilmuse.com>",
7
+ "license": "MIT",
8
+ "repository": {
9
+ "type": "git",
10
+ "url": "git+https://github.com/nilmuse/biome-config.git"
11
+ },
12
+ "bugs": {
13
+ "url": "https://github.com/nilmuse/biome-config/issues"
14
+ },
15
+ "homepage": "https://github.com/nilmuse/biome-config",
16
+ "packageManager": "npm@10.9.3",
17
+ "engines": {
18
+ "node": ">=20.19.0"
19
+ },
20
+ "exports": {
21
+ "./biome": "./biome.json"
22
+ },
23
+ "scripts": {
24
+ "test:smoke": "node --test \"tests/**/*.js\"",
25
+ "pack:check": "npm pack --dry-run && publint",
26
+ "verify": "npm run test:smoke && npm run pack:check",
27
+ "prepublishOnly": "npm run verify"
28
+ },
29
+ "files": [
30
+ "biome.json",
31
+ "README.md",
32
+ "LICENSE"
33
+ ],
34
+ "publishConfig": {
35
+ "access": "public"
36
+ },
37
+ "peerDependencies": {
38
+ "@biomejs/biome": ">=2.4.0"
39
+ },
40
+ "devDependencies": {
41
+ "@biomejs/biome": "2.4.16",
42
+ "publint": "^0.3.21"
43
+ },
44
+ "keywords": [
45
+ "biome",
46
+ "biome-config",
47
+ "linter",
48
+ "formatter",
49
+ "config",
50
+ "nilmuse"
51
+ ]
52
+ }