microsoft / microsoft/fluentui-contrib

[Feature]: Implement Rule to Ban Enums and Artificial Syntax in TypeScript

Open
#320 3 comments 1 reaction 1 assignee View on GitHub

@dmytrokirpa is already working on this.

Since Feb 28, 2025.

enhancement
Dominant language
TypeScript
Stars
56
Forks
62
Avg merge
3d 2h
Merged PRs (30d)
1

Description

Implement a rule to ban the use of enums and other artificial syntax structures in our codebase. This can be achieved through one of the following approaches:

  1. Use Existing Tools:

  2. Port Existing Rules:

    • We can port the existing rules under the fluent project to our codebase.
  3. Build Custom Rule:

    • We can develop a custom rule called no-artificial-syntax to ban enums and other artificial syntax structures by default, with an option to configure opt-outs for specific syntax structures.

Implementing this rule will help us maintain a cleaner and more manageable codebase. We welcome feedback and suggestions from the team on this proposal.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.