Fix ESLint errors in lib/compiler/passes/generate-js.js

Fix the following errors:

   65:11  error  Unexpected trailing comma  comma-dangle
  211:40  error  Unexpected trailing comma  comma-dangle
  223:27  error  Unexpected trailing comma  comma-dangle
  233:27  error  Unexpected trailing comma  comma-dangle
redux
David Majda 9 years ago
parent 768ece28e6
commit 88c957c9e8

@ -62,7 +62,7 @@ function generateJS(ast, options) {
'', '',
'if (cached) {', 'if (cached) {',
' peg$currPos = cached.nextPos;', ' peg$currPos = cached.nextPos;',
'', ''
].join('\n')); ].join('\n'));
if (options.trace) { if (options.trace) {
@ -208,7 +208,7 @@ function generateJS(ast, options) {
' return bc;', ' return bc;',
'}', '}',
'', '',
'function peg$parseRule(index) {', 'function peg$parseRule(index) {'
].join('\n')); ].join('\n'));
if (options.trace) { if (options.trace) {
@ -220,7 +220,7 @@ function generateJS(ast, options) {
' ends = [],', ' ends = [],',
' stack = [],', ' stack = [],',
' startPos = peg$currPos,', ' startPos = peg$currPos,',
' params, i;', ' params, i;'
].join('\n')); ].join('\n'));
} else { } else {
parts.push([ parts.push([
@ -230,7 +230,7 @@ function generateJS(ast, options) {
' end = bc.length,', ' end = bc.length,',
' ends = [],', ' ends = [],',
' stack = [],', ' stack = [],',
' params, i;', ' params, i;'
].join('\n')); ].join('\n'));
} }

Loading…
Cancel
Save