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
message: 'for..in loops iterate over the entire prototype chain, which is virtually never what you want. Use Object.{keys,values,entries}, and iterate over the resulting array.',
1001
+
message:
1002
+
'for..in loops iterate over the entire prototype chain, which is virtually never what you want. Use Object.{keys,values,entries}, and iterate over the resulting array.',
1002
1003
},
1003
1004
{
1004
1005
selector: 'ForOfStatement',
1005
-
message: 'iterators/generators require regenerator-runtime, which is too heavyweight for this guide to allow them. Separately, loops should be avoided in favor of array iterations.',
1006
+
message:
1007
+
'iterators/generators require regenerator-runtime, which is too heavyweight for this guide to allow them. Separately, loops should be avoided in favor of array iterations.',
1006
1008
},
1007
1009
{
1008
1010
selector: 'LabeledStatement',
1009
-
message: 'Labels are a form of GOTO; using them makes code confusing and hard to maintain and understand.',
1011
+
message:
1012
+
'Labels are a form of GOTO; using them makes code confusing and hard to maintain and understand.',
1010
1013
},
1011
1014
{
1012
1015
selector: 'WithStatement',
1013
-
message: '`with` is disallowed in strict mode because it makes code impossible to predict and optimize.',
1016
+
message:
1017
+
'`with` is disallowed in strict mode because it makes code impossible to predict and optimize.',
1014
1018
},
1015
1019
],
1016
1020
@@ -1425,7 +1429,12 @@ const defaultConfig = {
1425
1429
1426
1430
// Enforce spaces before the closing bracket of self-closing JSX elements
0 commit comments