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

Add jsdoc type annotation to rules #516

Merged
merged 1 commit into from Nov 11, 2021
Merged

Conversation

bmish
Copy link
Collaborator

@bmish bmish commented Nov 11, 2021

Supported by VSCode/Webstorm/other code editors. Uses TypeScript declaration to give JavaScript hints so code editors can provide information/autocomplete about various rule fields.

https://www.typescriptlang.org/docs/handbook/jsdoc-supported-types.html#type

Idea from: eslint/generator-eslint#113

133895350-a19d0daf-593e-44b9-835f-bebf8b6a3d30

@bmish bmish added the internal Internal changes which do not affect consumers label Nov 11, 2021
@bmish bmish merged commit 7ebb102 into square:master Nov 11, 2021
@bmish bmish deleted the rule-type-jsdoc branch November 11, 2021 18:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
internal Internal changes which do not affect consumers
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant