@peerigon/configs 14.0.7 → 14.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/CHANGELOG.md CHANGED
@@ -1,3 +1,11 @@
1
+ ## [14.0.8](https://github.com/peerigon/configs/compare/v14.0.7...v14.0.8) (2026-02-12)
2
+
3
+ ### Bug Fixes
4
+
5
+ - Do not try to publish unscoped packages on Github ([99c5846](https://github.com/peerigon/configs/commit/99c5846a7b130e6e8355781a82bc4f1cc1b4daca))
6
+ - Remove [@ts-self-types](https://github.com/ts-self-types) annotation ([9590c6f](https://github.com/peerigon/configs/commit/9590c6f12a434f17eb9c71d9096a7698e83b0212))
7
+ - Restore original jsr.json config ([7c3e1d5](https://github.com/peerigon/configs/commit/7c3e1d568b8f783ed8afad8d4894a64aa30a9f27))
8
+
1
9
  ## [14.0.7](https://github.com/peerigon/configs/compare/v14.0.6...v14.0.7) (2026-02-10)
2
10
 
3
11
  ### Bug Fixes
@@ -1,3 +1,4 @@
1
+ // @ts-self-types="./javascript-browser.d.ts"
1
2
  import eslintConfigPrettier from "eslint-config-prettier";
2
3
  import { base } from "../rules/base.js";
3
4
  import { browser } from "../rules/browser.js";
@@ -1,3 +1,4 @@
1
+ // @ts-self-types="./javascript-node.d.ts"
1
2
  import eslintConfigPrettier from "eslint-config-prettier";
2
3
  import { base } from "../rules/base.js";
3
4
  import { javascript } from "../rules/javascript.js";
@@ -1,3 +1,4 @@
1
+ // @ts-self-types="./typescript-node.d.ts"
1
2
  import eslintConfigPrettier from "eslint-config-prettier";
2
3
  import { base } from "../rules/base.js";
3
4
  import { javascript } from "../rules/javascript.js";
@@ -1,3 +1,4 @@
1
+ // @ts-self-types="./typescript-react.d.ts"
1
2
  import eslintConfigPrettier from "eslint-config-prettier";
2
3
  import { base } from "../rules/base.js";
3
4
  import { browser } from "../rules/browser.js";
@@ -1,3 +1,4 @@
1
+ // @ts-self-types="./typescript.d.ts"
1
2
  import eslintConfigPrettier from "eslint-config-prettier";
2
3
  import { base } from "../rules/base.js";
3
4
  import { javascript } from "../rules/javascript.js";
@@ -1,3 +1,4 @@
1
+ // @ts-self-types="./base.d.ts"
1
2
  import fs from "node:fs";
2
3
  import path from "node:path";
3
4
  import { includeIgnoreFile } from "@eslint/compat";
@@ -1,3 +1,4 @@
1
+ // @ts-self-types="./browser.d.ts"
1
2
  import globals from "globals";
2
3
  /** @type {import("eslint").Linter.Config[]} */
3
4
  export const browser = [
@@ -1,3 +1,4 @@
1
+ // @ts-self-types="./javascript.d.ts"
1
2
  import js from "@eslint/js";
2
3
  import noOnlyTests from "eslint-plugin-no-only-tests";
3
4
  import unicornPlugin from "eslint-plugin-unicorn";
@@ -1,3 +1,4 @@
1
+ // @ts-self-types="./node.d.ts"
1
2
  import globals from "globals";
2
3
  /** @type {import("eslint").Linter.Config[]} */
3
4
  export const node = [
@@ -1,3 +1,4 @@
1
+ // @ts-self-types="./playwright.d.ts"
1
2
  import pluginPlaywright from "eslint-plugin-playwright";
2
3
  import { globPatterns } from "../lib/glob-patterns.js";
3
4
  const files = globPatterns.tests;
@@ -1,3 +1,4 @@
1
+ // @ts-self-types="./react.d.ts"
1
2
  import reactPlugin2 from "@eslint-react/eslint-plugin";
2
3
  import jsxA11yPlugin from "eslint-plugin-jsx-a11y";
3
4
  import reactPlugin from "eslint-plugin-react";
@@ -1,3 +1,4 @@
1
+ // @ts-self-types="./tanstack-query.d.ts"
1
2
  import pluginQuery from "@tanstack/eslint-plugin-query";
2
3
  import { globPatterns } from "../lib/glob-patterns.js";
3
4
  const files = [
@@ -1,3 +1,4 @@
1
+ // @ts-self-types="./typescript.d.ts"
1
2
  import preferArrow from "eslint-plugin-prefer-arrow";
2
3
  import tsEslint from "typescript-eslint";
3
4
  import { globPatterns } from "../lib/glob-patterns.js";
@@ -1,3 +1,4 @@
1
+ // @ts-self-types="./vitest.d.ts"
1
2
  import vitestPlugin from "@vitest/eslint-plugin";
2
3
  import { globPatterns } from "../lib/glob-patterns.js";
3
4
  const files = globPatterns.tests;
@@ -1,3 +1,4 @@
1
+ // @ts-self-types="./jsx-no-literals.d.ts"
1
2
  import { globPatterns } from "../lib/glob-patterns.js";
2
3
  /** @type {import("eslint").Linter.Config[]} */
3
4
  export const jsxNoLiterals = [
@@ -1,3 +1,4 @@
1
+ // @ts-self-types="./no-default-export.d.ts"
1
2
  import { globPatterns } from "../lib/glob-patterns.js";
2
3
  /** @type {import("eslint").Linter.Config[]} */
3
4
  export const noDefaultExport = [
@@ -1,3 +1,4 @@
1
+ // @ts-self-types="./no-null.d.ts"
1
2
  /** @type {import("eslint").Linter.Config[]} */
2
3
  export const noNull = [
3
4
  {
@@ -1,3 +1,4 @@
1
+ // @ts-self-types="./prefer-array-shorthand.d.ts"
1
2
  /** @type {import("eslint").Linter.Config[]} */
2
3
  export const preferArrayShorthand = [
3
4
  {
@@ -1,3 +1,4 @@
1
+ // @ts-self-types="./prefer-interface.d.ts"
1
2
  /** @type {import("eslint").Linter.Config[]} */
2
3
  export const preferInterface = [
3
4
  {
@@ -1,3 +1,4 @@
1
+ // @ts-self-types="./base.d.ts"
1
2
  /**
2
3
  * ## Base config for Prettier.
3
4
  *
@@ -1,3 +1,4 @@
1
+ // @ts-self-types="./base.d.ts"
1
2
  /**
2
3
  * Generic semantic-release config shape for portable declaration output.
3
4
  *
@@ -1,3 +1,6 @@
1
+ // @ts-self-types="./cross-publish.d.ts"
2
+ import { readFileSync } from "node:fs";
3
+ import { resolve } from "node:path";
1
4
  import { config as baseConfig } from "./base.js";
2
5
  /**
3
6
  * Generic semantic-release config shape for portable declaration output.
@@ -11,7 +14,10 @@ import { config as baseConfig } from "./base.js";
11
14
  * @param {{ github: boolean; jsr: boolean }} options?
12
15
  * @returns {SemanticReleaseConfig}
13
16
  */
14
- export function config({ github = false, jsr = false } = { github: true, jsr: true }) {
17
+ export function config({ github = defaultGithub, jsr = false } = {
18
+ github: defaultGithub,
19
+ jsr: true,
20
+ }) {
15
21
  /** @type {unknown[]} */
16
22
  const plugins = [];
17
23
  if (baseConfig.plugins) {
@@ -40,4 +46,20 @@ export function config({ github = false, jsr = false } = { github: true, jsr: tr
40
46
  plugins,
41
47
  };
42
48
  }
49
+ const defaultGithub = (() => {
50
+ try {
51
+ const packageJsonPath = resolve(process.cwd(), "package.json");
52
+ const packageJsonContent = readFileSync(packageJsonPath, "utf8");
53
+ const packageJson = JSON.parse(packageJsonContent);
54
+ if (typeof packageJson !== "object" || packageJson === null) {
55
+ return false;
56
+ }
57
+ const typedPackageJson = /** @type {{ name?: unknown }} */ (packageJson);
58
+ const name = typedPackageJson.name;
59
+ return typeof name === "string" && name.startsWith("@");
60
+ }
61
+ catch {
62
+ return false;
63
+ }
64
+ })();
43
65
  export default config();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@peerigon/configs",
3
- "version": "14.0.7",
3
+ "version": "14.0.8",
4
4
  "description": "Configs for ESLint, Prettier, TypeScript & friends",
5
5
  "keywords": [
6
6
  "eslint",