toko-atlas 0.1.0 → 0.2.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 +6 -0
- package/data/api-index.json +1 -1
- package/dist/src/check.js +2 -1
- package/dist/src/cli.js +8 -3
- package/dist/src/index-checks.js +20 -20
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -31,6 +31,12 @@ From a clone, `npm install && npm run build && npm link` does the same. The buil
|
|
|
31
31
|
|
|
32
32
|
All three take `--json`. `check` also takes `--manifest <file>`, for paths only. Every command exits 2 on a usage error or a path that doesn't exist. `check` also exits 2 when it couldn't check a file, such as one it can't read or a named file that isn't JS/TS or HTML (it lists them on stderr), or when it found no JS/TS or HTML files at all. An incomplete check isn't a clean one. `lookup` accepts names as code writes them, such as `figma.loadFontAsync()` or `selection[0].fills`.
|
|
33
33
|
|
|
34
|
+
`check` labels each finding with its rule, such as `[sync-get-node-by-id]` for a field-notes rule. The typings checks use three labels:
|
|
35
|
+
|
|
36
|
+
- `[unknown-api]`: the typings don't have it, such as `figma.variables.getVariableByName`.
|
|
37
|
+
- `[throws-under-dynamic-page]`: deprecated, and the typings say it will throw when the manifest has `"documentAccess": "dynamic-page"`, such as `figma.variables.getVariableById`. With no manifest, as for a script on stdin, `check` assumes `dynamic-page`, like field-notes' linter. `lookup` marks these members, and single overloads like the string-ID form of `createVariable`, with "throws under dynamic-page".
|
|
38
|
+
- `[deprecated-api]`: any other deprecated call, such as `figma.getSlideGrid`. It still works, but has a replacement.
|
|
39
|
+
|
|
34
40
|
- [Vision and prototype results](docs/2026-12-05-vision.md)
|
|
35
41
|
- [Spike 00: index and search prototype](spikes/00-index-prototype/)
|
|
36
42
|
- [Spec: files and roles](spec/files-and-roles.md), meaning which code `atlas_check` checks and as what
|