CoolFace
Apppublic

vortex123/Titanium

sourceHugging Faceupdated 2y agoView on Hugging Face
0likes
eslint.yml51 linesDownload Raw Back to workflows
1# This workflow uses actions that are not certified by GitHub.2# They are provided by a third-party and are governed by3# separate terms of service, privacy policy, and support4# documentation.5# ESLint is a tool for identifying and reporting on patterns6# found in ECMAScript/JavaScript code.7# More details at https://github.com/eslint/eslint8# and https://eslint.org9 10# https://github.com/actions/starter-workflows/blob/main/code-scanning/eslint.yml11 12name: ESLint13 14on:15  push:16    branches: ["main"]17  pull_request:18    branches: ["main"]19  schedule:20    - cron: "30 12 * * 0" # Run once every Sunday21 22jobs:23  eslint:24    name: Run eslint scanning25    runs-on: ubuntu-latest26    permissions:27      contents: read28      security-events: write29      actions: read # only required for a private repository by github/codeql-action/upload-sarif to get the Action run status30    steps:31      - name: Checkout code32        uses: actions/checkout@v333 34      - name: Install ESLint35        run: |36          npm install eslint@8.10.037          npm install @microsoft/eslint-formatter-sarif@2.1.738 39      - name: Run ESLint40        run: npx eslint .41          --config .eslintrc.json42          --ext .js,.jsx,.ts,.tsx43          --format @microsoft/eslint-formatter-sarif44          --output-file eslint-results.sarif45        continue-on-error: true46 47      - name: Upload analysis results to GitHub48        uses: github/codeql-action/upload-sarif@v249        with:50          sarif_file: eslint-results.sarif51          wait-for-processing: true