| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 8f96d73 commit a2e858f
7 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -260,6 +260,7 @@ module.exports = { | |||
| 260 | 260 | 'no-useless-concat': 'error', | |
| 261 | 261 | 'no-useless-constructor': 'error', | |
| 262 | 262 | 'no-useless-return': 'error', | |
| 263 | + 'no-var': 'error', | ||
| 263 | 264 | 'no-void': 'error', | |
| 264 | 265 | 'no-whitespace-before-property': 'error', | |
| 265 | 266 | 'object-curly-newline': 'error', | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -5,5 +5,4 @@ env: | |||
| 5 | 5 | es6: true | |
| 6 | 6 | ||
| 7 | 7 | rules: | |
| 8 | - no-var: error | ||
| 9 | 8 | prefer-arrow-callback: error | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -9,7 +9,6 @@ rules: | |||
| 9 | 9 | symbol-description: off | |
| 10 | 10 | ||
| 11 | 11 | # Add new ECMAScript features gradually | |
| 12 | - no-var: error | ||
| 13 | 12 | prefer-const: error | |
| 14 | 13 | prefer-rest-params: error | |
| 15 | 14 | prefer-template: error | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -196,6 +196,7 @@ function emitInitNative(asyncId, type, triggerAsyncId, resource) { | |||
| 196 | 196 | try { | |
| 197 | 197 | // Using var here instead of let because "for (var ...)" is faster than let. | |
| 198 | 198 | // Refs: https://github.com/nodejs/node/pull/30380#issuecomment-552948364 | |
| 199 | + // eslint-disable-next-line no-var | ||
| 199 | 200 | for (var i = 0; i < active_hooks.array.length; i++) { | |
| 200 | 201 | if (typeof active_hooks.array[i][init_symbol] === 'function') { | |
| 201 | 202 | active_hooks.array[i][init_symbol]( | |
@@ -228,6 +229,7 @@ function emitHook(symbol, asyncId) { | |||
| 228 | 229 | try { | |
| 229 | 230 | // Using var here instead of let because "for (var ...)" is faster than let. | |
| 230 | 231 | // Refs: https://github.com/nodejs/node/pull/30380#issuecomment-552948364 | |
| 232 | + // eslint-disable-next-line no-var | ||
| 231 | 233 | for (var i = 0; i < active_hooks.array.length; i++) { | |
| 232 | 234 | if (typeof active_hooks.array[i][symbol] === 'function') { | |
| 233 | 235 | active_hooks.array[i][symbol](asyncId); | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -171,6 +171,7 @@ class JSStreamSocket extends Socket { | |||
| 171 | 171 | ||
| 172 | 172 | this.stream.cork(); | |
| 173 | 173 | // Use `var` over `let` for performance optimization. | |
| 174 | + // eslint-disable-next-line no-var | ||
| 174 | 175 | for (var i = 0; i < bufs.length; ++i) | |
| 175 | 176 | this.stream.write(bufs[i], done); | |
| 176 | 177 | this.stream.uncork(); | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -6,7 +6,6 @@ env: | |||
| 6 | 6 | ||
| 7 | 7 | rules: | |
| 8 | 8 | multiline-comment-style: [error, separate-lines] | |
| 9 | - no-var: error | ||
| 10 | 9 | prefer-const: error | |
| 11 | 10 | symbol-description: off | |
| 12 | 11 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -12,4 +12,3 @@ rules: | |||
| 12 | 12 | - error | |
| 13 | 13 | - args: after-used | |
| 14 | 14 | prefer-arrow-callback: error | |
| 15 | - no-var: error | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments