Skip to content
This repository has been archived by the owner on Dec 8, 2022. It is now read-only.

Commit

Permalink
Fixed linting suggestions.
Browse files Browse the repository at this point in the history
  • Loading branch information
Bobby Earl committed Dec 3, 2018
1 parent 4f79df2 commit d45847a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions cli/generate.js
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ export class ${name} {
}
`;

safeFileWrite(pathParts, fileName + '.ts', fileContent, force);
safeFileWrite(pathParts, `${fileName}.ts`, fileContent, force);
}

function generateComponentSpec(pathParts, fileName, name, nameSnakeCase, force) {
Expand Down Expand Up @@ -118,15 +118,15 @@ describe('${nameWithSpaces} component', () => {
});
`;

safeFileWrite(pathParts, fileName + '.spec.ts', fileContent, force);
safeFileWrite(pathParts, `${fileName}.spec.ts`, fileContent, force);
}

function generateComponentHtml(pathParts, fileName, force) {
safeFileWrite(pathParts, fileName + '.html', '', force);
safeFileWrite(pathParts, `${fileName}.html`, '', force);
}

function generateComponentScss(pathParts, fileName, force) {
safeFileWrite(pathParts, fileName + '.scss', '', force);
safeFileWrite(pathParts, `${fileName}.scss`, '', force);
}

function getPathParts(name) {
Expand Down

0 comments on commit d45847a

Please sign in to comment.