You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
|[yaml-eslint-parser](https://github.com/ota-meshi/yaml-eslint-parser)| 1.2 | Yes | Yes | ESTree-compatible AST on top of eemeli/yaml; used by eslint-plugin-yml |
113
112
114
113
The parser must:
115
114
1. Produce a traversable AST with location info for every node.
@@ -149,6 +148,8 @@ Following the direction of the project — which is [moving away from formatting
149
148
|---|---|---|
150
149
| `no-duplicate-keys` | Disallow duplicate keys in mappings | No |
151
150
| `no-empty-keys` | Disallow empty string keys | No |
151
+
| `no-empty-values` | Disallow empty mapping values | No |
152
+
| `no-empty-sequence-entry` | Disallow empty sequence entries | No |
152
153
| `no-unsafe-values` | Disallow unquoted values that would be interpreted differently between YAML 1.1 and 1.2 (e.g. `yes`, `no`, `on`, `off` are booleans in 1.1 but plain strings in 1.2) | No |
153
154
154
155
**Additional (not in recommended, opt-in):**
@@ -235,7 +236,7 @@ export default defineConfig([
235
236
2. **Parser choice:** Which YAML parser best balances maintainability, comment support, location accuracy, and license compatibility? (See parser comparison table above.)
236
237
3. **Initial rule set:** Are the proposed rules the right starting point? Should any be added or removed for v1?
237
238
4. **Collaboration model:** Should the team formally invite @ota-meshi or other community maintainers as collaborators on the new repo?
238
-
5. **Anchor / alias handling:** How deeply should v1 resolve anchors and aliases in the AST? Full resolution enables more rules but adds complexity.
239
+
5. **Anchor / alias handling:** How deeply should v1 resolve anchors and aliases in the AST? Full resolution enables more rules but adds complexity. One approach is a `sourceCode.resolveAnchor(aliasNode)` method that keeps resolution opt-in for rule authors without complicating the AST.
0 commit comments