AdguardTeam / AdguardTeam/AGLint
Add configuration to `unknown-preprocessor-directives` and `unknown-hints-and-platforms` rules
オープン
enhancement
Priority: P4
T: Linter rule
- 主要言語
- TypeScript
- スター
- 70
- フォーク
- 4
- PR マージ指標
- 30日以内にマージされた PR はありません
説明
Currently, supported directive names, hints and platforms are [just burned](https://github.com/AdguardTeam/AGLint/blob/31c3ab68f2fddb8515451a762e899ad3c823529d/src/linter/rules/unknown-hints-and-platforms.ts#L18-L30) into these rules.
It would be good to make them configurable, for example like this:
```yaml
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
コントリビューションガイド
評価
この issue はまだ評価されていません。