Skip to content

A fully open source & end-to-end encrypted note taking alternative to Evernote.

ci: linting using reviewdog (#116)

Abdullah Atta91570ca86ec3
diff --git a/apps/web/.github/workflows/eslint.yml b/apps/web/.github/workflows/eslint.yml
index b99aa5ee3..cb7293e2f 100644
--- a/apps/web/.github/workflows/eslint.yml
+++ b/apps/web/.github/workflows/eslint.yml
@@ -17,7 +17,7 @@ jobs:
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- - uses: actions/checkout@v2
+ - uses: actions/checkout@v1
- name: Setup SSH
uses: webfactory/[email protected]
with:
@@ -28,6 +28,8 @@ jobs:
node-version: 12.x
- run: npm install
- name: ESLint Action
- uses: hallee/eslint-action@master
- env:
- GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
+ uses: reviewdog/action-eslint@v1
+ with:
+ github_token: ${{ secrets.GITHUB_TOKEN }}
+ reporter: github-pr-review
+ level: 'warning'
diff --git a/apps/web/package.json b/apps/web/package.json
index 2a0a1fd01..ba4ce5764 100644
--- a/apps/web/package.json
+++ b/apps/web/package.json
@@ -27,7 +27,9 @@
"zustand": "^2.2.3"
},
"devDependencies": {
- "babel-loader": "8.0.6"
+ "babel-loader": "8.0.6",
+ "eslint": "^6.8.0",
+ "typescript": "^3.8.3"
},
"scripts": {
"start": "react-scripts start",