@rrlab/biome-config 0.0.1-git-87d22db.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/README.md ADDED
@@ -0,0 +1,36 @@
1
+ # @rrlab/biome-config
2
+
3
+ Shared [Biome](https://biomejs.dev) preset for projects using [`@rrlab/plugin-biome`](https://npmjs.com/package/@rrlab/plugin-biome).
4
+
5
+ ## Install
6
+
7
+ If you use [`@rrlab/cli`](https://npmjs.com/package/@rrlab/cli):
8
+
9
+ ```sh
10
+ rr plugins add biome
11
+ ```
12
+
13
+ Scaffolds a `biome.json` extending this config (with your confirmation).
14
+
15
+ If you don't, install manually:
16
+
17
+ ```sh
18
+ pnpm add -D @rrlab/biome-config @biomejs/biome
19
+ ```
20
+
21
+ …and create a `biome.json`:
22
+
23
+ ```json
24
+ {
25
+ "$schema": "https://biomejs.dev/schemas/2.4.4/schema.json",
26
+ "extends": ["@rrlab/biome-config"]
27
+ }
28
+ ```
29
+
30
+ ## Override
31
+
32
+ Local keys in your `biome.json` win over the preset. Add `linter.rules`, `formatter`, `files.includes`, etc. to taste. If you want to chain another shared config on top, append it to the `extends` array — entries later in the array override earlier ones, so the user's preferences and local overrides win over our base.
33
+
34
+ ## Peer dependencies
35
+
36
+ - `@biomejs/biome >= 2.0.0` — the `$schema` URL is tied to a biome major and the rule set evolves between majors.
package/package.json ADDED
@@ -0,0 +1,35 @@
1
+ {
2
+ "name": "@rrlab/biome-config",
3
+ "version": "0.0.1-git-87d22db.0",
4
+ "description": "Shared Biome preset used by @rrlab/plugin-biome.",
5
+ "homepage": "https://github.com/variableland/dx/tree/main/run-run/biome-config#readme",
6
+ "bugs": {
7
+ "url": "https://github.com/variableland/dx/issues"
8
+ },
9
+ "repository": {
10
+ "type": "git",
11
+ "url": "git+https://github.com/variableland/dx.git",
12
+ "directory": "run-run/biome-config"
13
+ },
14
+ "license": "MIT",
15
+ "author": "rcrd <rcrd@variable.land>",
16
+ "keywords": [
17
+ "biome",
18
+ "config",
19
+ "presets",
20
+ "rrlab"
21
+ ],
22
+ "type": "module",
23
+ "exports": {
24
+ ".": "./src/config.json"
25
+ },
26
+ "files": [
27
+ "src"
28
+ ],
29
+ "publishConfig": {
30
+ "access": "public"
31
+ },
32
+ "peerDependencies": {
33
+ "@biomejs/biome": ">=2.0.0"
34
+ }
35
+ }
@@ -0,0 +1,54 @@
1
+ {
2
+ "$schema": "https://biomejs.dev/schemas/2.4.4/schema.json",
3
+ "files": {
4
+ "ignoreUnknown": true
5
+ },
6
+ "vcs": {
7
+ "enabled": true,
8
+ "clientKind": "git",
9
+ "useIgnoreFile": true,
10
+ "defaultBranch": "main"
11
+ },
12
+ "assist": {
13
+ "actions": {
14
+ "source": {
15
+ "organizeImports": "on"
16
+ }
17
+ }
18
+ },
19
+ "linter": {
20
+ "enabled": true,
21
+ "rules": {
22
+ "recommended": true,
23
+ "a11y": {
24
+ "noSvgWithoutTitle": "off"
25
+ },
26
+ "complexity": {
27
+ "noStaticOnlyClass": "off"
28
+ },
29
+ "correctness": {
30
+ "useImportExtensions": "error"
31
+ }
32
+ }
33
+ },
34
+ "formatter": {
35
+ "enabled": true,
36
+ "indentStyle": "space",
37
+ "lineWidth": 130,
38
+ "formatWithErrors": true
39
+ },
40
+ "javascript": {
41
+ "formatter": {
42
+ "quoteStyle": "double",
43
+ "semicolons": "always"
44
+ }
45
+ },
46
+ "css": {
47
+ "formatter": {
48
+ "enabled": true
49
+ },
50
+ "parser": {
51
+ "tailwindDirectives": true
52
+ }
53
+ }
54
+ }