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": {