AdguardTeam / AdguardTeam/AGLint

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

オープン
#201 コメント 0 件 リアクション 0 件 担当者 1 名 @maximtop が担当を希望しています GitHub で見る
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 はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。