@alint-js/config 0.0.33 → 0.0.35

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 (2) hide show
  1. package/dist/index.mjs +2 -2
  2. package/package.json +3 -3
package/dist/index.mjs CHANGED
@@ -3,7 +3,7 @@ import { loadConfig } from "c12";
3
3
  import { createJiti } from "jiti/static";
4
4
  import { createHash, randomUUID } from "node:crypto";
5
5
  import { access, mkdir, open, readFile, readdir, realpath, rename, rm, stat, writeFile } from "node:fs/promises";
6
- import { array, boolean, check, description, literal, looseObject, number, object, optional, parse, picklist, pipe, record, strictObject, string, tuple, union, unknown, variant } from "valibot";
6
+ import { array, boolean, check, description, literal, looseObject, number, object, optional, parse, picklist, pipe, record, strictObject, string, tupleWithRest, union, unknown, variant } from "valibot";
7
7
  import process from "node:process";
8
8
  import { homedir } from "node:os";
9
9
  import { dirname as dirname$1, extname, join as join$1, normalize as normalize$1 } from "pathe";
@@ -1010,7 +1010,7 @@ const ruleSeveritySchema = picklist([
1010
1010
  "off",
1011
1011
  "warn"
1012
1012
  ]);
1013
- const ruleConfigEntrySchema = union([ruleSeveritySchema, tuple([ruleSeveritySchema])]);
1013
+ const ruleConfigEntrySchema = union([ruleSeveritySchema, tupleWithRest([ruleSeveritySchema], unknown())]);
1014
1014
  const staticConfigItemSchema = looseObject({
1015
1015
  agent: optional(unknown()),
1016
1016
  basePath: optional(string()),
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@alint-js/config",
3
3
  "type": "module",
4
- "version": "0.0.33",
4
+ "version": "0.0.35",
5
5
  "exports": {
6
6
  ".": {
7
7
  "types": "./dist/index.d.mts",
@@ -27,8 +27,8 @@
27
27
  "tar-stream": "^3.2.0",
28
28
  "valibot": "^1.4.2",
29
29
  "xdg-basedir": "^5.1.0",
30
- "@alint-js/tools-fs": "0.0.33",
31
- "@alint-js/core": "0.0.33"
30
+ "@alint-js/core": "0.0.35",
31
+ "@alint-js/tools-fs": "0.0.35"
32
32
  },
33
33
  "devDependencies": {
34
34
  "@types/tar-stream": "^3.1.4",