File tree Expand file tree Collapse file tree 1 file changed +3
-6
lines changed
lib/node_modules/@stdlib/_tools/eslint/rules/no-unnecessary-nested-functions Expand file tree Collapse file tree 1 file changed +3
-6
lines changed Original file line number Diff line number Diff line change @@ -122,12 +122,9 @@ var Linter = require( 'eslint' ).Linter;
122122var rule = require ( ' @stdlib/_tools/eslint/rules/no-unnecessary-nested-functions' );
123123
124124var 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 = {
147144linter .defineRule ( ' no-unnecessary-nested-functions' , rule );
148145
149146// Lint the code:
150- out = linter .verify ( code, config );
147+ var out = linter .verify ( code, config );
151148console .log ( out );
152149/* =>
153150 [
You can’t perform that action at this time.
0 commit comments