From 419ce99d084c8dd6a7f9249ee0b61c1d13a6f358 Mon Sep 17 00:00:00 2001 From: Lei Nelissen Date: Sat, 1 Jan 2022 22:37:58 +0100 Subject: [PATCH] Add linting to GitHub actions --- .github/workflows/lint.yml | 13 +++++++++++++ package.json | 2 +- 2 files changed, 14 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/lint.yml diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml new file mode 100644 index 0000000..6ed846f --- /dev/null +++ b/.github/workflows/lint.yml @@ -0,0 +1,13 @@ +name: Lint + +on: [push] + +jobs: + lint: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v1 + - name: Install Node dependencies + run: npm install + - name: Run linter + run: npm run lint \ No newline at end of file diff --git a/package.json b/package.json index 5b62d91..4bbf448 100644 --- a/package.json +++ b/package.json @@ -8,7 +8,7 @@ "ios": "react-native run-ios --scheme \"Jellyfin Player\"", "start": "react-native start", "test": "jest", - "lint": "eslint . --ext .js,.jsx,.ts,.tsx", + "lint": "eslint . --ext .js,.jsx,.ts,.tsx && tsc --noEmit", "build:ios": "react-native bundle --entry-file='index.ts' --bundle-output='./ios/main.jsbundle' --dev=false --platform='ios'" }, "dependencies": {