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: docs-docusaurus/docs/advanced.md
+17-14Lines changed: 17 additions & 14 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,10 +1,10 @@
1
-
# Node
1
+
# Advanced
2
2
3
-
## Node Plugin Configuration
3
+
## Advanced Plugin Configuration
4
4
5
-
To enhance code quality, maintainability, and enforce best practices in your Node projects, the Eslint Plugin Hub provides several Node.js-focused rules. These rules help manage code complexity and promote efficient memory usage patterns critical for server-side applications.
5
+
To enhance code quality, maintainability, and enforce best practices in your projects, the Eslint Plugin Hub provides several advanced rules. These rules help manage code complexity and promote efficient memory usage patterns critical for server-side applications.
You can extend a pre-defined Node.js configuration from the plugin or configure rules manually.
29
+
You can extend a pre-defined advanced configuration from the plugin or configure rules manually.
30
30
31
31
```javascript
32
32
// eslint.config.js
@@ -106,7 +106,7 @@ export default [
106
106
];
107
107
```
108
108
109
-
## Node.js Rule Details
109
+
## Advanced Rule Details
110
110
111
111
### 1. minimize-complexflows
112
112
@@ -374,9 +374,9 @@ Encourages efficient memory management by discouraging the creation of new commo
374
374
375
375
Okay, I understand! You want the documentation for avoid-runtime-heap-allocation formatted precisely like the Docusaurus-style Markdown you provided for the minimize-complex-flows rule.
376
376
377
-
Here's the documentation for node/avoid-runtime-heap-allocation in that format:
377
+
Here's the documentation for advanced/avoid-runtime-heap-allocation in that format:
378
378
379
-
node/avoid-runtime-heap-allocation
379
+
advanced/avoid-runtime-heap-allocation
380
380
Description:
381
381
Encourages efficient memory management by discouraging the creation of new common data structures (arrays [], objects {}, new Map(), new Set(), etc.) directly within function bodies, and especially inside loops. This practice helps to reduce garbage collection pressure and improve performance.
382
382
@@ -525,7 +525,7 @@ function processBatchWithLoopCheck(batch) {
525
525
`ESLint Warning: Runtime allocation of 'Object' ({ id: batch[i].id }) detected inside a loop within function processBatchWithLoopCheck. This can severely impact performance. Pre-allocate and reuse this structure.`
0 commit comments