denoland / denoland/std

suggestion: Deno Style Guide lint plugin

Open
#6,551 3 comments 3 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
3.6k
Forks
681
PR merge metrics
No merged PRs in 30d

Description

I suggest we create a lint plugin to enforce the rules of the [Deno Style Guide](https://docs.deno.com/runtime/contributing/style_guide/). `std` can be the project used to quickly iterate on this until maturity. Then, we could create a `@deno/style-guide-lint-plugin` package for internal and user Deno projects to use.

The following rules can each correspond to a lint rule:
- [x] Exported functions: max 2 args, put the rest into an options object (#6561)
- [ ] Export all interfaces that are used as parameters to an exported member
- [x] Top-level functions should not use arrow syntax (#6558)
- [x] Error Messages (#6553)
- [x] Do not depend on external code (#6562)
- [x] Prefer # over private keyword (#6550)
- [x] Naming convention (#6559)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.