Skip to content

Add stylelinter

Add stylelinter #1

Workflow file for this run

---
on: # yamllint disable-line rule:truthy
workflow_call:
inputs:
repository:
description: 'The repository that needs linting'
type: string
default: ${{ github.repository }}
required: false
ref:
description: 'The branch, tag or SHA that needs linting'
type: string
required: false
default: ${{ github.ref }}
jobs:
linter:
runs-on: ubuntu-latest
steps:
- name: Install NodeJS
- uses: actions/setup-node@v4
with:
node-version: latest
- name: Install ESLint
run: npm ci
- name: Checkout Code
uses: actions/checkout@v4
with:
fetch-depth: 0
repository: ${{ inputs.repository }}
ref: ${{ inputs.ref }}
- name: Lint ECMAScript
uses: sibiraj-s/action-eslint@v3
with:
all-files: true