Skip to content

Commit 253efbc

Browse files
authored
docs: move variable declarations
Signed-off-by: Athan <[email protected]>
1 parent f3240e1 commit 253efbc

File tree

1 file changed

+3
-6
lines changed
  • lib/node_modules/@stdlib/_tools/eslint/rules/no-unnecessary-nested-functions/examples

1 file changed

+3
-6
lines changed

lib/node_modules/@stdlib/_tools/eslint/rules/no-unnecessary-nested-functions/examples/index.js

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,9 @@ var Linter = require( 'eslint' ).Linter;
2222
var rule = require( './../lib' );
2323

2424
var linter = new Linter();
25-
var code;
26-
var config;
27-
var out;
2825

2926
// Generate source code containing nested function without dependencies:
30-
code = [
27+
var code = [
3128
'function outer() {',
3229
' function inner() {',
3330
' return 42;',
@@ -37,7 +34,7 @@ code = [
3734
].join( '\n' );
3835

3936
// Define the ESLint configuration:
40-
config = {
37+
var config = {
4138
'rules': {
4239
'no-unnecessary-nested-functions': 'error'
4340
}
@@ -47,7 +44,7 @@ config = {
4744
linter.defineRule( 'no-unnecessary-nested-functions', rule );
4845

4946
// Lint the code:
50-
out = linter.verify( code, config );
47+
var out = linter.verify( code, config );
5148
console.log( out );
5249
/* =>
5350
[

0 commit comments

Comments
 (0)