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 configuration to unknown-preprocessor-directives and unknown-hints-and-platforms rules #201

Open
scripthunter7 opened this issue Jan 27, 2024 · 0 comments
Assignees
Labels
enhancement New feature or request Priority: P4 T: Linter rule Linter rule related

Comments

@scripthunter7
Copy link
Member

scripthunter7 commented Jan 27, 2024

Currently, supported directive names, hints and platforms are just burned into these rules.

It would be good to make them configurable, for example like this:

rules:
  unknown-hints-and-platforms: ["error", { "supportedPlatforms": ["windows", "mac", ... ], "supportedHints": ["PLATFORM", ...] }]
  unknown-preprocessor-directives: ["error", { "supportedDirectives": ["if", "endif", ... ] }]

Also, it would be good to put a "no-" prefix in front of their names

@scripthunter7 scripthunter7 added enhancement New feature or request T: Linter rule Linter rule related labels Jan 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request Priority: P4 T: Linter rule Linter rule related
Projects
None yet
Development

No branches or pull requests

3 participants