mirror of
https://github.com/openwrt/luci.git
synced 2025-12-21 17:04:35 +04:00
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:
13
eslint.config.mjs
Normal file
13
eslint.config.mjs
Normal 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"],
|
||||
},
|
||||
]);
|
||||
|
||||
Reference in New Issue
Block a user