Skip to content

Commit

Permalink
Fix linting
Browse files Browse the repository at this point in the history
  • Loading branch information
sheerun committed Jan 5, 2019
1 parent 5e12f13 commit 09c7dad
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions src/language-js/printer-estree.js
Original file line number Diff line number Diff line change
Expand Up @@ -917,7 +917,7 @@ function printPathNoParens(path, options, print, args) {

if (n.delegate) {
if (options.standard) {
parts.push(" ")
parts.push(" ");
}
parts.push("*");
}
Expand Down Expand Up @@ -4232,7 +4232,7 @@ function printFunctionDeclaration(path, print, options) {

if (n.generator) {
if (options.standard) {
parts.push(" ")
parts.push(" ");
}
parts.push("*");
}
Expand Down Expand Up @@ -4284,7 +4284,7 @@ function printObjectMethod(path, options, print) {
} else {
parts.push(key);
if (options.standard) {
parts.push(" ")
parts.push(" ");
}
}

Expand Down
6 changes: 3 additions & 3 deletions src/main/ast-to-doc.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,9 @@ const docUtils = doc.utils;
*/
function printAstToDoc(ast, options, alignmentSize = 0) {
if (options.standard) {
options.semi = false
options.singleQuote = true
options.jsxSingleQuote = true
options.semi = false;
options.singleQuote = true;
options.jsxSingleQuote = true;
}

const printer = options.printer;
Expand Down

0 comments on commit 09c7dad

Please sign in to comment.