@antelopejs/tooling-configs 0.0.7 → 0.0.8

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
@@ -156,6 +156,10 @@ Import order is not part of it: `perfectionist/sort-imports` owns that on the li
156
156
  Enabling oxfmt's `sortImports` as well would have two tools sorting the same imports
157
157
  differently, each undoing the other on every save.
158
158
 
159
+ The preset also leaves `CHANGELOG.md` alone. changelogen writes it during a release and
160
+ the release commit lands unformatted, so checking it would turn the default branch red
161
+ after every release with a breaking change.
162
+
159
163
  Extra ignores are **added** to the shared ones rather than replacing them, so a repository
160
164
  adopting oxfmt in stages can park a directory without losing the rest:
161
165
 
package/dist/oxc/fmt.mjs CHANGED
@@ -17,6 +17,12 @@ const ANTELOPE_STYLE = {
17
17
  trailingComma: "all"
18
18
  };
19
19
  /**
20
+ * Files that release tooling writes and commits without formatting them.
21
+ * changelogen puts two spaces after the ⚠️ of a breaking change, so the first
22
+ * release with one leaves the default branch failing `oxfmt --check`.
23
+ */
24
+ const GENERATED_IGNORE_PATTERNS = ["**/CHANGELOG.md"];
25
+ /**
20
26
  * The shared AntelopeJS oxfmt preset.
21
27
  *
22
28
  * Import order is deliberately absent: `perfectionist/sort-imports` owns it on
@@ -44,6 +50,7 @@ function antelopeFmtPreset(options = {}) {
44
50
  ignorePatterns: [
45
51
  ...IGNORE_PATTERNS,
46
52
  ...AGENT_IGNORE_PATTERNS,
53
+ ...GENERATED_IGNORE_PATTERNS,
47
54
  ...ignorePatterns
48
55
  ]
49
56
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@antelopejs/tooling-configs",
3
- "version": "0.0.7",
3
+ "version": "0.0.8",
4
4
  "description": "Shared tooling presets for AntelopeJS projects: oxlint (incl. vendored anti-slop) and Knip",
5
5
  "keywords": [
6
6
  "antelopejs",