Skip to content

Commit

Permalink
chore: update import statements to use .jsx extension and improve ESL…
Browse files Browse the repository at this point in the history
…int compliance
  • Loading branch information
lgersman committed Nov 13, 2024
1 parent 10acd41 commit 4162513
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 8 deletions.
9 changes: 4 additions & 5 deletions packages/wp-plugin/test-plugin/src/index.js
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
import { __ } from "@wordpress/i18n";
// eslint-disable-next-line import/no-unresolved
import { __ } from '@wordpress/i18n';

import { hello as hello_from_lib } from "@ionos-wordpress/test-lib";
import { hello as hello_from_lib } from '@ionos-wordpress/test-lib';

export function hello() {

hello_from_lib();

console.log(__("hello from packages/wp-plugin/test-plugin/src/index.js", "test-plugin"));
console.log(__('hello from packages/wp-plugin/test-plugin/src/index.js', 'test-plugin'));
}


hello();
2 changes: 1 addition & 1 deletion stories/Button.stories.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { fn } from '@storybook/test';

import { Button } from './Button';
import { Button } from './Button.jsx';

// More on how to set up stories at: https://storybook.js.org/docs/writing-stories#default-export
export default {
Expand Down
2 changes: 1 addition & 1 deletion stories/Header.stories.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { fn } from '@storybook/test';

import { Header } from './Header';
import { Header } from './Header.jsx';

export default {
title: 'Example/Header',
Expand Down
2 changes: 1 addition & 1 deletion stories/Page.stories.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { expect, userEvent, within } from '@storybook/test';

import { Page } from './Page';
import { Page } from './Page.jsx';

export default {
title: 'Example/Page',
Expand Down

0 comments on commit 4162513

Please sign in to comment.