From 79d63fc40b23b1b6ad8246a97f040b2c5b3a9584 Mon Sep 17 00:00:00 2001 From: Naoki_Ito <117070296+naoki-00-ito@users.noreply.github.com> Date: Tue, 16 Dec 2025 17:56:08 +0900 Subject: [PATCH 1/3] =?UTF-8?q?=E2=9C=A8=20feat(#126):=20ls-lint?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .ls-lint.yml | 26 +++++++++++++++++++ package.json | 2 ++ pnpm-lock.yaml | 13 +++++++++- ...y_repo.md => codeblue2025-summary-repo.md} | 0 ...oc_read_01.md => mitmproxy-doc-read-01.md} | 0 5 files changed, 40 insertions(+), 1 deletion(-) create mode 100644 .ls-lint.yml rename src/content/blog/{codeblue2025_summary_repo.md => codeblue2025-summary-repo.md} (100%) rename src/content/blog/{mitmproxy_doc_read_01.md => mitmproxy-doc-read-01.md} (100%) diff --git a/.ls-lint.yml b/.ls-lint.yml new file mode 100644 index 0000000..75da117 --- /dev/null +++ b/.ls-lint.yml @@ -0,0 +1,26 @@ +ls: + dir: kebab-case + .md: SCREAMING_SNAKE_CASE + .ts: camelCase + .tsx: PascalCase + .astro: PascalCase + .github: + workflows: + .yml: kebab-case + ISSUE_TEMPLATE: + .md: snake_case + src: + content: + .md: kebab-case + pages: + .astro: kebab-case + types: + .ts: PascalCase + +ignore: + - .git + - .vscode + - node_modules + - src/pages/**/*/\[slug\].astro + - src/pages/**/*/\[name\].astro + - src/pages/**/*/\[tag\].astro diff --git a/package.json b/package.json index 26696a9..9b320c2 100644 --- a/package.json +++ b/package.json @@ -14,6 +14,7 @@ "preview": "astro preview", "astro": "astro", "check": "astro check", + "ls-lint": "npx ls-lint -debug", "format": "prettier --write .", "format:check": "prettier . --check", "set-nodebrew": "nodebrew use $(cat .nvmrc)", @@ -27,6 +28,7 @@ "@astrojs/tailwind": "^6.0.2", "@fontsource-variable/inter": "^5.0.18", "@fontsource-variable/noto-sans-jp": "^5.0.19", + "@ls-lint/ls-lint": "^2.3.1", "@radix-ui/react-aspect-ratio": "^1.0.3", "@radix-ui/react-avatar": "^1.0.4", "@radix-ui/react-dropdown-menu": "^2.0.6", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 348aad8..b329f86 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -32,6 +32,9 @@ importers: '@fontsource-variable/noto-sans-jp': specifier: ^5.0.19 version: 5.2.5 + '@ls-lint/ls-lint': + specifier: ^2.3.1 + version: 2.3.1 '@radix-ui/react-aspect-ratio': specifier: ^1.0.3 version: 1.1.7(@types/react-dom@18.3.7(@types/react@18.3.22))(@types/react@18.3.22)(react-dom@18.3.1(react@18.3.1))(react@18.3.1) @@ -803,6 +806,12 @@ packages: resolution: {integrity: sha512-n5JEf16Wr4mdkRMZ8wMP/wN9/sHmTjRPbouXjJH371mZ2LEGDl72t8tEsMRNFerQN/QJtivOxqK1frdGa4QK5Q==} engines: {node: '>=10'} + '@ls-lint/ls-lint@2.3.1': + resolution: {integrity: sha512-vPe6IDByQnQRTxcAYjTxrmga/tSIui50VBFTB5KIJWY3OOFmxE2VtymjeSEfQfiMbhZV/ZPAqYy2lt8pZFQ0Rw==} + cpu: [x64, arm64, s390x, ppc64le] + os: [darwin, linux, win32] + hasBin: true + '@nodelib/fs.scandir@2.1.5': resolution: {integrity: sha512-vq24Bq3ym5HEQm2NKCr3yXDwjc7vTsEThRDnkp2DK9p1uqLR+DHurm/NOTo0KG7HYHU7eppKZj3MyqYuMBf62g==} engines: {node: '>= 8'} @@ -1320,7 +1329,7 @@ packages: resolution: {integrity: sha512-5EdhGZtnu3V88ces7s53hhfK5KSASnJZv8Lulpc04cWO3REESroJXg73DFsOmgbU2BhwV0E20bu2IDZb3VKW4Q==} engines: {node: '>=14.0.0'} peerDependencies: - rollup: ^1.20.0||^2.0.0||^3.0.0||^4.0.0 + rollup: npm:@rollup/wasm-node@^4.41.1 peerDependenciesMeta: rollup: optional: true @@ -4173,6 +4182,8 @@ snapshots: '@jsdevtools/rehype-toc@3.0.2': {} + '@ls-lint/ls-lint@2.3.1': {} + '@nodelib/fs.scandir@2.1.5': dependencies: '@nodelib/fs.stat': 2.0.5 diff --git a/src/content/blog/codeblue2025_summary_repo.md b/src/content/blog/codeblue2025-summary-repo.md similarity index 100% rename from src/content/blog/codeblue2025_summary_repo.md rename to src/content/blog/codeblue2025-summary-repo.md diff --git a/src/content/blog/mitmproxy_doc_read_01.md b/src/content/blog/mitmproxy-doc-read-01.md similarity index 100% rename from src/content/blog/mitmproxy_doc_read_01.md rename to src/content/blog/mitmproxy-doc-read-01.md From a3325d02b1fe2949d1db854e02d6cf259fa8011c Mon Sep 17 00:00:00 2001 From: Naoki_Ito <117070296+naoki-00-ito@users.noreply.github.com> Date: Tue, 16 Dec 2025 17:58:34 +0900 Subject: [PATCH 2/3] =?UTF-8?q?=F0=9F=90=8E=20ci(#126):=20ver=20up=20&=20l?= =?UTF-8?q?s-lint?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/test.yml | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 0d75f5e..08bd853 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -1,4 +1,4 @@ -name: 'Test' +name: "Test" on: pull_request: @@ -11,18 +11,22 @@ jobs: timeout-minutes: 60 runs-on: ubuntu-latest steps: - - uses: actions/checkout@v4.1.1 - - uses: pnpm/action-setup@v3 + - uses: actions/checkout@v6 + - uses: pnpm/action-setup@v4 with: version: 8 - name: Use Node.js - uses: actions/setup-node@v4 + uses: actions/setup-node@v6 with: - node-version-file: '.nvmrc' - cache: 'pnpm' + node-version-file: ".nvmrc" + cache: "pnpm" - name: Install dependencies run: pnpm install - name: Check with Prettier run: pnpm run format:check - name: Check with Astro run: pnpm run check + - name: Check with ls-lint + uses: ls-lint/action@v2 + with: + debug: true From f8cdf302bd9eb5933e243aef709ce37f02e727ef Mon Sep 17 00:00:00 2001 From: Naoki_Ito <117070296+naoki-00-ito@users.noreply.github.com> Date: Tue, 16 Dec 2025 18:03:33 +0900 Subject: [PATCH 3/3] =?UTF-8?q?=F0=9F=8C=88=20style(#126):=20quote?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/test.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 08bd853..986f537 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -1,4 +1,4 @@ -name: "Test" +name: 'Test' on: pull_request: @@ -18,8 +18,8 @@ jobs: - name: Use Node.js uses: actions/setup-node@v6 with: - node-version-file: ".nvmrc" - cache: "pnpm" + node-version-file: '.nvmrc' + cache: 'pnpm' - name: Install dependencies run: pnpm install - name: Check with Prettier