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
Parses the meta.schema field of the eslint rule to code generate the
structs and enums needed for the rule. It also adds the derive
attributes so that documentation code generation can read the struct
shape and `from_configuration` can easily deserialize.
Improvements that I would prefer to tackle for follow up PRs:
- Resolve the schema value in javascript (a la `tasks/lint_rules`
package), then parse in rust
- Parse other parts of the json schema for validation, like `minItems`
and `maximum`, and use a validation crate in `from_configuration`
- Support json schema constants like `true`, number literals like `1`
and `null`
- Support other json schema concepts like `allOf`, `not`,
`patternProperties`, `additionalProperties`, and others
- Support migrating existing rules to this new format
- Use configs in `oxlintrc.json` schema generation for lsps to validate
in the editor
---------
Co-authored-by: Cameron Clark <cameron.clark@hey.com>
0 commit comments