AdguardTeam / AdguardTeam/AGLint
Validate JS injection rules body
未關閉
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 還沒有評估資料。