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
-The `ecmaFeatures` property is now under a top-level `parserOptions` property.
93
-
-All ECMAScript 6 `ecmaFeatures` flags have been removed in favor of a `ecmaVersion` property under `parserOptions` that can be set to 3, 5 (default), or 6.
94
-
-The `ecmaFeatures.modules` flag has been replaced by a `sourceType` property under `parserOptions` which can be set to `"script"` (default) or`"module"` for ES6 modules.
**To address:** If you are using any ECMAScript 6 feature flags in `ecmaFeatures`, you'll need to use `ecmaVersion: 6` instead. The ECMAScript 6 feature flags are:
**To address:** If you don't want to be notified by those rules, you can simply disable those rules.
209
+
解决方案:如果你不想使用这些规则,只需要将这些规则警告级别设置为0,如下:
215
210
216
211
```
217
212
{
@@ -233,7 +228,7 @@ In 2.0.0, the following 11 rules were added to `"eslint:recommended"`.
233
228
234
229
```
235
230
236
-
## Scope Analysis Changes
231
+
## 作用域解析的变化
237
232
238
233
We found some bugs in our scope analysis that needed to be addressed. Specifically, we were not properly accounting for global variables in all the ways they are defined.
0 commit comments