mirror of
				https://git.openwrt.org/project/luci.git
				synced 2025-10-31 10:49:03 +08:00 
			
		
		
		
	 4617b9fd2e
			
		
	
	4617b9fd2e
	
	
	
		
			
			checkout to v5 setup-node to v5 peaceiris/actions-gh-pages to v4 Signed-off-by: Paul Donald <newtwen+github@gmail.com>
		
			
				
	
	
		
			34 lines
		
	
	
		
			657 B
		
	
	
	
		
			YAML
		
	
	
	
	
	
			
		
		
	
	
			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@v5
 | |
| 
 | |
|       - name: Set up Node.js
 | |
|         uses: actions/setup-node@v5
 | |
|         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
 | |
| 
 |