Skip to content

Commit

Permalink
Fix linting errors
Browse files Browse the repository at this point in the history
  • Loading branch information
jorge-ramirez-arredondo committed Jun 3, 2024
1 parent 1083378 commit fc55065
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/create.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@
/* eslint-disable no-console */
import prompts from 'prompts';
import { run as setupDefaultContent } from './generators/default-content/index.js';
import { run as setupD2ldev } from './generators/d2ldev/index.js';

Check failure on line 6 in src/create.js

View workflow job for this annotation

GitHub Actions / Test

Imports should be sorted alphabetically
import { run as setupDemo } from './generators/demo/index.js';
import { run as setupElement } from './generators/wc-lit-element/index.js';
import { run as setupLocalization } from './generators/localization/index.js';
import { run as setupRelease } from './generators/release/index.js';
import { run as setupTestUnit } from './generators/test-unit/index.js';
import { run as setupTestVdiff } from './generators/test-vdiff/index.js';
import { run as setupD2ldev } from './generators/d2ldev/index.js';

const generatorTypes = {
component: 'component',
Expand Down
7 changes: 6 additions & 1 deletion src/generators/d2ldev/index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
import {
copyAndProcessDir,
getDestinationPath,
movePlugin,
replaceTextPlugin
} from '../../helper.js';
import path from 'path';
import { copyAndProcessDir, getDestinationPath, replaceTextPlugin, movePlugin } from '../../helper.js';

export function run(templateData) {
const templateRoot = path.join(__dirname, 'templates');
Expand Down
2 changes: 1 addition & 1 deletion src/helper.js
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ export function replaceTextPlugin(perFileReplacements = {}) {
const { relativePath, fileName } = context;
const replacements = normalizedPerFileReplacements[path.join(relativePath, fileName)];
if (replacements) {
replaceText(destination, replacements)
replaceText(destination, replacements);
}
}
};
Expand Down

0 comments on commit fc55065

Please sign in to comment.