-
-
Notifications
You must be signed in to change notification settings - Fork 664
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
Linter for AssemblyScript #991
Comments
Should we also consider publishing other things such as the loader with the same namespace? |
loader already published under |
Oh didn't know that. Cool! |
The commit https://github.com/confio/cosmwasm/pull/118/commits/d0e1a2ca6b7eb0d3fb34aac23b225f36af25d664 contains an AssemblyScript setup with eslint + prettier + eslint-plugin-simple-import-sort. |
I imagine such linter would be used to port existing TypeScript code to make it AssemblyScript compatible. Do others believe this to be something that the linter should do? What are some of the most important rules needed? I imagine the number one feature for the config would be to blacklist incompatible type signatures or perhaps even whitelist existing ones. This config could then be used together with any existing TypeScript eslint configurations that provide stylistic and other rules that are not specific to AssemblyScript code. |
How do you handle usage of annotations? They seems to be causing eslint parser errors |
I cannot run Prettier on AssemblyScript
I have tried
but none of these directives help. I have resorted to commenting out all of my |
With TS to AS linter you could things like |
@HerrCai0907 made this. It fixes the problem of prettier :) |
On recent bi-weekly meeting we talked about lint system. Currently we have very basic rules for ts-lint but first of all it only for internal usage and development process, secondary it pretty basic and don't cover all special cases and finally it based on ts-lint which not so powerful as eslint which already supported by typescript. So basic plan:
@assemblyscript/linter
?The text was updated successfully, but these errors were encountered: