File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed
lib/node_modules/@stdlib/_tools/eslint/rules/repl-namespace-order/lib Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -39,7 +39,6 @@ var OPTS_COMPARE = {
3939function main ( context ) {
4040 var expressions ;
4141 var prevAlias ;
42- var sorted ;
4342
4443 expressions = [ ] ;
4544
@@ -84,19 +83,20 @@ function main( context ) {
8483 * Reports the error message.
8584 *
8685 * @private
87- * @param {string } current - name of first package
88- * @param {string } last - name of second package
86+ * @param {string } last - name of first package
87+ * @param {string } current - name of second package
8988 * @param {ASTNode } node - node to report
9089 */
91- function report ( current , last , node ) {
90+ function report ( last , current , node ) {
9291 context . report ( {
9392 'node' : node ,
94- 'message' : '"' + last + '" should come before "' + current + '"' ,
93+ 'message' : '"' + current + '" should come before "' + last + '"' ,
9594 'fix' : fix
9695 } ) ;
9796
9897 /**
9998 * Fixes the lint error by reordering the packages.
99+ *
100100 * @private
101101 * @param {Function } fixer - ESLint fixer
102102 * @returns {(Object|null) } fix or null
@@ -105,6 +105,7 @@ function main( context ) {
105105 var replacingText ;
106106 var startRange ;
107107 var endRange ;
108+ var sorted ;
108109 var source ;
109110 var txt ;
110111 var i ;
You can’t perform that action at this time.
0 commit comments