AGLint icon indicating copy to clipboard operation
AGLint copied to clipboard

Add configuration to `unknown-preprocessor-directives` and `unknown-hints-and-platforms` rules

Open scripthunter7 opened this issue 1 year ago • 0 comments

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 avatar Jan 27 '24 16:01 scripthunter7