Skip to content

Commit

Permalink
feat: file upload for eslint worlflow
Browse files Browse the repository at this point in the history
  • Loading branch information
bitpredator committed Jul 31, 2024
1 parent e698896 commit 80d0dbb
Show file tree
Hide file tree
Showing 4 changed files with 1,151 additions and 0 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/ESlint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: ESLint

on:
push:
branches: [ "main", "dev" ]
pull_request:
branches: [ "main" ]

jobs:
eslint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 16
- run: npm ci # or yarn install
- uses: sibiraj-s/action-eslint@v3
with:
token: ${{ secrets.GITHUB_TOKEN }} # optional
eslint-args: '--ignore-pattern=.gitignore --quiet'
extensions: 'js,jsx,ts,tsx'
annotations: true
8 changes: 8 additions & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
import globals from 'globals';
import pluginJs from '@eslint/js';


export default [
{ languageOptions: { globals: globals.browser } },
pluginJs.configs.recommended,
];
Loading

0 comments on commit 80d0dbb

Please sign in to comment.