Skip to content

Commit e864d4a

Browse files
committed
Refactor code style and enhance CI workflow
- Standardize code formatting and improve readability in multiple files. - Enhance CI workflow by adding steps for `pnpm` installation. - Clarify intent in the helper utilities with enhanced comments and consistent type definitions. Signed-off-by: katsumata <12413150+winor30@users.noreply.github.com>
1 parent 5f8165d commit e864d4a

File tree

5 files changed

+1305
-478
lines changed

5 files changed

+1305
-478
lines changed

.github/workflows/ci.yml

+6-3
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,8 @@ jobs:
1717
uses: actions/setup-node@v4
1818
with:
1919
node-version: 20
20-
20+
- name: Install pnpm
21+
run: npm install -g pnpm
2122
- name: Install dependencies
2223
run: pnpm install --frozen-lockfile
2324

@@ -34,7 +35,8 @@ jobs:
3435
uses: actions/setup-node@v4
3536
with:
3637
node-version: 20
37-
38+
- name: Install pnpm
39+
run: npm install -g pnpm
3840
- name: Install dependencies
3941
run: pnpm install --frozen-lockfile
4042

@@ -51,7 +53,8 @@ jobs:
5153
uses: actions/setup-node@v4
5254
with:
5355
node-version: 20
54-
56+
- name: Install pnpm
57+
run: npm install -g pnpm
5558
- name: Install dependencies
5659
run: pnpm install --frozen-lockfile
5760

.prettierrc

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@
44
"useTabs": false,
55
"trailingComma": "all",
66
"printWidth": 80
7-
}
7+
}

eslint.config.js

+7-8
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,12 @@
1-
import globals from "globals";
2-
import pluginJs from "@eslint/js";
3-
import tseslint from "typescript-eslint";
4-
1+
import globals from 'globals'
2+
import pluginJs from '@eslint/js'
3+
import tseslint from 'typescript-eslint'
54

65
/** @type {import('eslint').Linter.Config[]} */
76
export default [
8-
{files: ["**/*.{js,mjs,cjs,ts}"]},
9-
{ignores: ["node_modules/**", "build/**"]},
10-
{languageOptions: { globals: globals.browser }},
7+
{ files: ['**/*.{js,mjs,cjs,ts}'] },
8+
{ ignores: ['node_modules/**', 'build/**'] },
9+
{ languageOptions: { globals: globals.browser } },
1110
pluginJs.configs.recommended,
1211
...tseslint.configs.recommended,
13-
];
12+
]

0 commit comments

Comments
 (0)