0
0
mirror of https://github.com/openwrt/luci.git synced 2025-07-23 19:31:44 +00:00
Files
luci/.github/workflows/eslint.yml
Yanase Yuki 98e71acd06 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>
2025-06-08 20:41:25 +02:00

34 lines
657 B
YAML

---
name: "LuCI repo ESLint JSON Analysis"
on:
push:
branches: [ "master" ]
path:
- '**/*.json'
pull_request:
branches: [ "master" ]
path:
- '**/*.json'
permissions: {}
jobs:
eslint:
runs-on: ubuntu-latest
steps:
- name: Check out repository
uses: actions/checkout@v4
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: latest
- name: Install ESLint
run: npm install --no-audit --no-fund --save-dev eslint@latest @eslint/json@latest
# Currently, we lint JSON only.
- name: Run ESLint
run: npx eslint **/*.json