Skip to content

Commit

Permalink
correct linting
Browse files Browse the repository at this point in the history
  • Loading branch information
Ben Siggery committed Nov 27, 2024
1 parent 644f2e2 commit 97fa689
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions packages/tools/generator-pie-component/src/app/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,9 @@ export default class extends Generator {
}

async writing () {
const { fileName, componentPath, storyPath, testStoryPath } = this.props;
const {
fileName, componentPath, storyPath, testStoryPath,
} = this.props;
const processDestinationPath = (filePath: string) => filePath.replace(/\b(placeholder)\b/g, fileName).replace(/__/g, '');

this.fs.copyTpl(
Expand All @@ -54,12 +56,12 @@ export default class extends Generator {
);

this.fs.copyTpl(
this.templatePath('**/pie-placeholder.__test__.__stories__.ts'),
this.destinationPath(testStoryPath),
this.props,
undefined,
{ processDestinationPath },
);
this.templatePath('**/pie-placeholder.__test__.__stories__.ts'),
this.destinationPath(testStoryPath),
this.props,
undefined,
{ processDestinationPath },
);

// Update YAML and config files
this._addPercyTokenEnvVar();
Expand Down

0 comments on commit 97fa689

Please sign in to comment.