ci: lint JSON files using ESLint

Add GitHub Actions CI which lints json files
using official ESLint json plugin.

Signed-off-by: Yanase Yuki <dev@zpc.st>
This commit is contained in:
Yanase Yuki
2025-06-03 19:04:56 +09:00
committed by Paul Donald
parent a6d5ffd6df
commit 98e71acd06
3 changed files with 48 additions and 1 deletions

13
eslint.config.mjs Normal file
View File

@@ -0,0 +1,13 @@
import { defineConfig } from "eslint/config";
import json from "@eslint/json";
export default defineConfig([
{
files: ["**/*.json"],
ignores: ["package-lock.json"],
plugins: { json },
language: "json/json",
extends: ["json/recommended"],
},
]);