Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ast-tester should validate individual Node type #1009

Open
2 tasks
azu opened this issue Jan 25, 2023 · 0 comments
Open
2 tasks

ast-tester should validate individual Node type #1009

azu opened this issue Jan 25, 2023 · 0 comments
Labels
Status: PR Welcome Welcome to Pull Request Status: Proposal Request for comments

Comments

@azu
Copy link
Member

azu commented Jan 25, 2023

We have introduced individual Node type definitions.
However, current @textlint/ast-tester only support TxtNode/TxtParentNode/TxtTextNode.

We want to get more validation based on individual Node types.

TODO

  • Generate validator from TypeScript types using ts-json-schema-generator like create-validator-ts
  • Add option for test function
    • Probably, some plugin can not to be passed this spec
    • strict option? (or strcitNodeType: ["Paragraph", ....])
    • require flexibility
@azu azu added Status: Proposal Request for comments Status: PR Welcome Welcome to Pull Request labels Jan 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: PR Welcome Welcome to Pull Request Status: Proposal Request for comments
Projects
None yet
Development

No branches or pull requests

1 participant