@alint-js/config 0.0.10 → 0.0.12

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/README.md +44 -0
  2. package/package.json +2 -2
package/README.md ADDED
@@ -0,0 +1,44 @@
1
+ # `@alint-js/config`
2
+
3
+ Config loading and setup-file utilities for `alint`.
4
+
5
+ ## What it does
6
+
7
+ This package owns the file-system side of configuration:
8
+
9
+ - loads `alint.config.ts`
10
+ - resolves global and project setup TOML paths
11
+ - parses and stringifies setup TOML
12
+ - merges setup layers
13
+ - writes provider setup files
14
+ - exports built-in ignore pattern groups
15
+
16
+ It is used by `@alint-js/cli` and is useful for tools that need to inspect or prepare an `alint` project without running the linter.
17
+
18
+ ## How to use
19
+
20
+ ```ts
21
+ import {
22
+ getGlobalSetupConfigPath,
23
+ loadAlintConfig,
24
+ loadSetupConfig,
25
+ writeSetupConfig,
26
+ } from '@alint-js/config'
27
+
28
+ const setupPath = getGlobalSetupConfigPath()
29
+ const setup = await loadSetupConfig({ cwd: process.cwd() })
30
+ const config = await loadAlintConfig({ cwd: process.cwd() })
31
+
32
+ await writeSetupConfig(setupPath, setup)
33
+ ```
34
+
35
+ ## When to use
36
+
37
+ - You are building CLI commands, editors, or automation around `alint` config.
38
+ - You need to read or write provider setup TOML.
39
+ - You need the same ignore defaults as the official CLI.
40
+
41
+ ## When not to use
42
+
43
+ - Use `@alint-js/cli` when you only need the `alint` command.
44
+ - Use `@alint-js/core` when you need the rule DSL, source runtime, model resolution, or run engine.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@alint-js/config",
3
3
  "type": "module",
4
- "version": "0.0.10",
4
+ "version": "0.0.12",
5
5
  "exports": {
6
6
  ".": {
7
7
  "types": "./dist/index.d.mts",
@@ -17,7 +17,7 @@
17
17
  "pathe": "^2.0.3",
18
18
  "smol-toml": "^1.7.0",
19
19
  "xdg-basedir": "^5.1.0",
20
- "@alint-js/core": "0.0.10"
20
+ "@alint-js/core": "0.0.12"
21
21
  },
22
22
  "devDependencies": {
23
23
  "@types/node": "^26.0.1",