amilajack / amilajack/eslint-plugin-compat

Property-specific polyfill configurations broken for "URL" APIs

オープン
#397 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る
主要言語
TypeScript
スター
3.2k
フォーク
115
PR マージ指標
30日以内にマージされた PR はありません

説明

Currently using v3.8.0 of eslint-plugin-compat with the following .eslintrc settings:
```
{
"extends": [
"plugin:compat/recommended"
],
"env": {
"browser": true
},
"parserOptions": {
"ecmaVersion": 6
},
"settings": {
"polyfills": [
"URL.createObjectURL"
]
}
}
```

Here are the contents of my .browserslistrc file:
```
last 2 firefox versions
last 2 chrome versions
last 2 safari versions
last 2 edge versions
last 2 opera versions
ie 11
```

To reproduce, create a JS file with the following code:
```
URL.createObjectURL("")
```
The linter will fail with `error URL is not supported in IE 11 compat/compat`.

This works fine in v3.7.0, so this regression must have been introduced in the latest version release.

コントリビューションガイド

コントリビューションガイドを開く

評価

この issue はまだ評価されていません。

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

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