Skip to content

Commit

Permalink
Merge pull request #1005 from ONLYOFFICE/refactor/eslint
Browse files Browse the repository at this point in the history
Refactor/eslint
  • Loading branch information
LinneyS authored Jul 15, 2024
2 parents 80b59c1 + f6d1e8a commit 73d7602
Show file tree
Hide file tree
Showing 13 changed files with 13,115 additions and 2,791 deletions.
5 changes: 5 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
module.exports = {
extends: [
'@nextcloud',
],
}
33 changes: 33 additions & 0 deletions .github/workflows/lint-eslint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: ESLint

on:
workflow_dispatch:
push:
branches: [master, develop, refactor/eslint]
pull_request:
branches: [master, develop, refactor/eslint]

env:
NODE_VERSION: 20

jobs:
lint:
name: Lint
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./src
steps:
- name: Install NodeJS
uses: actions/setup-node@v3
with:
node-version: ${{ env.NODE_VERSION }}

- name: Code Checkout
uses: actions/checkout@v3

- name: Install Dependencies
run: npm ci

- name: Code Linting
run: npx eslint *.js
Loading

0 comments on commit 73d7602

Please sign in to comment.