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
|[avoid-autoplay](docs/rules/avoid-autoplay.md)| Avoid autoplay for videos and audio content | ✅ |
115
+
|[avoid-brightness-override](docs/rules/avoid-brightness-override.md)| Should avoid to override brightness | ✅ |
116
+
|[avoid-css-animations](docs/rules/avoid-css-animations.md)| Avoid usage of CSS animations | ✅ |
117
+
|[avoid-getting-size-collection-in-loop](docs/rules/avoid-getting-size-collection-in-loop.md)| Avoid getting the size/length of the collection in loops and callbacks. Assign it to a variable before the loop/callback.| ✅ |
118
+
|[avoid-high-accuracy-geolocation](docs/rules/avoid-high-accuracy-geolocation.md)| Avoid using high accuracy geolocation in web applications | ✅ |
Copy file name to clipboardExpand all lines: eslint-plugin/docs/rules/avoid-getting-size-collection-in-loop.md
+5-1Lines changed: 5 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,4 +1,8 @@
1
-
# Should avoid getting the collection size in loop
1
+
# Avoid getting the size/length of the collection in loops and callbacks. Assign it to a variable before the loop/callback (`@creedengo/avoid-getting-size-collection-in-loop`)
2
+
3
+
⚠️ This rule _warns_ in the following configs: ✅ `flat/recommended`, ✅ `recommended`.
0 commit comments