@nesvet/biome-config 2.0.4 → 3.0.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 CHANGED
@@ -5,7 +5,9 @@
5
5
 
6
6
  My [Biome](https://biomejs.dev/) config. Tabs, double quotes, `type` over `interface`, no trailing commas, almost no wrapping (`lineWidth: 320`).
7
7
 
8
- Needs `@biomejs/biome` `^2.5.0`.
8
+ Needs `@biomejs/biome` `^2.6.4`.
9
+
10
+ Markdown and YAML are in the same check. GitHub Flavored Markdown stays, including a leading `---` frontmatter block. Ordinary YAML strings use double quotes. Fenced JavaScript is formatted like the rest of your code, and those snippets are not linted. Paragraphs stay on the lines you wrote. Table columns are aligned.
9
11
 
10
12
  ```sh
11
13
  bun add -d @nesvet/biome-config @biomejs/biome
package/biome.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "$schema": "https://biomejs.dev/schemas/2.5.10/schema.json",
2
+ "$schema": "https://biomejs.dev/schemas/2.6.4/schema.json",
3
3
  "files": {
4
4
  "ignoreUnknown": true
5
5
  },
@@ -28,6 +28,30 @@
28
28
  "enabled": true
29
29
  }
30
30
  },
31
+ "markdown": {
32
+ "formatter": {
33
+ "enabled": true,
34
+ "formatEmbeds": true,
35
+ "proseWrap": "preserve"
36
+ },
37
+ "linter": {
38
+ "enabled": true
39
+ },
40
+ "parser": {
41
+ "frontmatter": true,
42
+ "gfm": true
43
+ },
44
+ "analyzeEmbeds": false
45
+ },
46
+ "yaml": {
47
+ "formatter": {
48
+ "enabled": true,
49
+ "quoteStyle": "double"
50
+ },
51
+ "linter": {
52
+ "enabled": true
53
+ }
54
+ },
31
55
  "assist": {
32
56
  "enabled": true,
33
57
  "actions": {
@@ -56,11 +80,11 @@
56
80
  "noFloatingPromises": "error",
57
81
  "noImpliedEval": "error",
58
82
  "noInvalidPropertyInitValue": "error",
59
- "noLoopFunc": "warn",
60
83
  "noMisusedPromises": "error",
61
84
  "useAwaitThenable": "error",
62
- "useDomNodeTextContent": "warn",
63
- "useMathMinMax": "warn"
85
+ "useConsistentHeadingLevel": "warn",
86
+ "useFencedCodeLanguage": "warn",
87
+ "useSingleTopLevelHeading": "warn"
64
88
  },
65
89
  "security": {
66
90
  "noGlobalEval": "error"
@@ -159,6 +183,7 @@
159
183
  "noDefaultExport": "warn"
160
184
  },
161
185
  "suspicious": {
186
+ "noLoopFunc": "warn",
162
187
  "noConsole": {
163
188
  "level": "warn",
164
189
  "options": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nesvet/biome-config",
3
- "version": "2.0.4",
3
+ "version": "3.0.0",
4
4
  "description": "Shareable Biome config: formatter, linter, import organization, type-aware rules",
5
5
  "keywords": [
6
6
  "biome",
@@ -43,10 +43,10 @@
43
43
  "check:tests": "bun scripts/verify-fixtures.ts"
44
44
  },
45
45
  "peerDependencies": {
46
- "@biomejs/biome": "^2.5.0"
46
+ "@biomejs/biome": "^2.6.4"
47
47
  },
48
48
  "devDependencies": {
49
- "@biomejs/biome": "^2.5.10"
49
+ "@biomejs/biome": "^2.6.4"
50
50
  },
51
- "packageManager": "bun@1.4.0"
51
+ "packageManager": "bun@1.4.4"
52
52
  }
package/presets/node.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "$schema": "https://biomejs.dev/schemas/2.5.10/schema.json",
2
+ "$schema": "https://biomejs.dev/schemas/2.6.4/schema.json",
3
3
  "extends": ["../biome.json"],
4
4
  "linter": {
5
5
  "rules": {