Skip to content

Commit 0579649

Browse files
authored
chore: format the code (#48)
1 parent 47aaa8c commit 0579649

File tree

6 files changed

+15
-10
lines changed

6 files changed

+15
-10
lines changed

.github/workflows/test.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,5 +32,8 @@ jobs:
3232
- name: Install Dependencies
3333
run: pnpm install
3434

35+
- name: Run Lint
36+
run: pnpm run lint
37+
3538
- name: Run Test
3639
run: pnpm run test

client/reactRefresh.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,13 @@ function refresh(moduleId, webpackHot) {
1414
if (typeof __react_refresh_test__ !== 'undefined') {
1515
testMode = __react_refresh_test__;
1616
}
17-
RefreshUtils.executeRuntime(exports, moduleId, webpackHot, errorOverlay, testMode);
17+
RefreshUtils.executeRuntime(
18+
exports,
19+
moduleId,
20+
webpackHot,
21+
errorOverlay,
22+
testMode,
23+
);
1824
};
1925
if (typeof Promise !== 'undefined' && currentExports instanceof Promise) {
2026
currentExports.then(fn);

exports/index.d.mts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { ReactRefreshRspackPlugin, type PluginOptions } from '../dist/index.js';
1+
import { type PluginOptions, ReactRefreshRspackPlugin } from '../dist/index.js';
22

33
export type { PluginOptions };
44
export { ReactRefreshRspackPlugin };

package.json

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,7 @@
2626
"test": "jest --colors",
2727
"release": "node ./scripts/release.mjs"
2828
},
29-
"files": [
30-
"client",
31-
"dist",
32-
"exports"
33-
],
29+
"files": ["client", "dist", "exports"],
3430
"simple-git-hooks": {
3531
"pre-commit": "npx nano-staged"
3632
},

test/fixtures/custom/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
require("foo");
1+
require('foo');

test/fixtures/default/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
require("foo");
2-
module.exports = "default";
1+
require('foo');
2+
module.exports = 'default';

0 commit comments

Comments
 (0)