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

Commit d45847a

Browse files
author
Bobby Earl
committed
Fixed linting suggestions.
1 parent 4f79df2 commit d45847a

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

cli/generate.js

+4-4
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ export class ${name} {
7474
}
7575
`;
7676

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

8080
function generateComponentSpec(pathParts, fileName, name, nameSnakeCase, force) {
@@ -118,15 +118,15 @@ describe('${nameWithSpaces} component', () => {
118118
});
119119
`;
120120

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

124124
function generateComponentHtml(pathParts, fileName, force) {
125-
safeFileWrite(pathParts, fileName + '.html', '', force);
125+
safeFileWrite(pathParts, `${fileName}.html`, '', force);
126126
}
127127

128128
function generateComponentScss(pathParts, fileName, force) {
129-
safeFileWrite(pathParts, fileName + '.scss', '', force);
129+
safeFileWrite(pathParts, `${fileName}.scss`, '', force);
130130
}
131131

132132
function getPathParts(name) {

0 commit comments

Comments
 (0)