You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+26Lines changed: 26 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -237,6 +237,32 @@ This difference can lead to false positives. For example:
237
237
238
238
Therefore, you might encounter situations where the compiled output is actually compatible with your target browsers, but this plugin still reports errors due to this granularity mismatch.
239
239
240
+
#### Solutions
241
+
242
+
There are several ways to handle these false positives:
243
+
244
+
1. **Manually set higher ecmaVersion**
245
+
246
+
You can manually set a higher `ecmaVersion` in the plugin configuration:
247
+
248
+
```ts
249
+
pluginCheckSyntax({
250
+
ecmaVersion: 2016, // or higher version
251
+
});
252
+
```
253
+
254
+
This can immediately resolve false positive issues, but it may miss some real compatibility issues for your target browsers.
255
+
256
+
2. **Use the exclude option**
257
+
258
+
If you are confident that certain files are safe, you can exclude them from checking:
0 commit comments