Skip to content

Commit f3240e1

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

File tree

1 file changed

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

1 file changed

+3
-6
lines changed

lib/node_modules/@stdlib/_tools/eslint/rules/no-unnecessary-nested-functions/README.md

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -122,12 +122,9 @@ var Linter = require( 'eslint' ).Linter;
122122
var rule = require( '@stdlib/_tools/eslint/rules/no-unnecessary-nested-functions' );
123123

124124
var linter = new Linter();
125-
var code;
126-
var config;
127-
var out;
128125

129126
// Generate source code containing nested function without dependencies:
130-
code = [
127+
var code = [
131128
'function outer() {',
132129
' function inner() {',
133130
' return 42;',
@@ -137,7 +134,7 @@ code = [
137134
].join( '\n' );
138135

139136
// Define the ESLint configuration:
140-
config = {
137+
var config = {
141138
'rules': {
142139
'no-unnecessary-nested-functions': 'error'
143140
}
@@ -147,7 +144,7 @@ config = {
147144
linter.defineRule( 'no-unnecessary-nested-functions', rule );
148145

149146
// Lint the code:
150-
out = linter.verify( code, config );
147+
var out = linter.verify( code, config );
151148
console.log( out );
152149
/* =>
153150
[

0 commit comments

Comments
 (0)