Browse Source

Merge branch 'dev' into provider/xemovie

pull/74/head^2
mrjvs 3 years ago committed by GitHub
parent
commit
6910d89ee1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 21
      .github/workflows/linting.yml
  2. 3
      package.json
  3. 1
      src/App.tsx

21
.github/workflows/linting.yml

@ -5,7 +5,7 @@ on: @@ -5,7 +5,7 @@ on:
branches:
- master
- dev
pull_request_target:
pull_request:
types: [opened, reopened, synchronize]
jobs:
@ -14,21 +14,16 @@ jobs: @@ -14,21 +14,16 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Check out Git repository
- name: Checkout code
uses: actions/checkout@v2
- name: Set up Node.js
- name: Install Node.js
uses: actions/setup-node@v1
with:
node-version: 16
- name: Install Node.js dependencies
- name: Install Yarn packages
run: yarn install
- name: Run linters
uses: wearerequired/lint-action@v2
with:
eslint: true
eslint_args: --max-warnings=0 src
eslint_extensions: tsx,ts
eslint_auto_fix: false
run: yarn lint:strict

3
package.json

@ -27,7 +27,8 @@ @@ -27,7 +27,8 @@
"scripts": {
"start": "react-scripts start",
"build": "react-scripts build",
"lint": "eslint --ext .tsx,.ts src"
"lint": "eslint --ext .tsx,.ts src",
"lint:strict": "eslint --ext .tsx,.ts --max-warnings 0 src"
},
"browserslist": {
"production": [

1
src/App.tsx

@ -8,6 +8,7 @@ import { MediaView } from "./views/MediaView"; @@ -8,6 +8,7 @@ import { MediaView } from "./views/MediaView";
import { SearchView } from "./views/SearchView";
function App() {
return (
<WatchedContextProvider>
<BookmarkContextProvider>

Loading…
Cancel
Save