AdguardTeam / AdguardTeam/AGLint

Validate JS injection rules body

未關閉
#256 1 則留言 0 個 reaction 已指派 1 人 已被 @maximtop 認領 在 GitHub 檢視
Priority: P4 T: Linter rule
主要語言
TypeScript
星號
71
分支
4
PR 合併指標
30 天內沒有已合併 PR

描述

Validate JS injection rules body with [acorn](https://www.npmjs.com/package/acorn).

So, from

```adblock
example.org#%#window.__gaq = undefined;
```

validate
```js
window.__gaq = undefined;
```

If this part is syntactically incorrect, acorn will simply throw an error.

ref: https://github.com/AdguardTeam/AGLint/issues/13#issuecomment-1420559391

貢獻指南

開啟貢獻指南

評估

這個 Issue 還沒有評估資料。

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。