ソースを参照

fix linting, add PR checks

Klaudiusz Dembler 4 年 前
コミット
228aec1ada
3 ファイル変更24 行追加1 行削除
  1. 22 0
      .github/workflows/checks.yml
  2. 1 0
      .prettierrc.js
  3. 1 1
      package.json

+ 22 - 0
.github/workflows/checks.yml

@@ -0,0 +1,22 @@
+name: Checks
+on: [push, pull_request]
+
+jobs:
+  lint:
+    name: Linting
+    runs-on: ${{ matrix.os }}
+    strategy:
+      matrix:
+        os: [ubuntu-latest]
+        node-version: [12.x]
+      fail-fast: true
+    steps:
+      - uses: actions/checkout@v2
+      - name: Use Node.js ${{matrix.node-version}}
+        uses: actions/setup-node@v1
+        with:
+          node-version: ${{matrix.node-version}}
+      - name: Install modules
+        run: yarn install --frozen-lockfile
+      - name: Run ESLint
+        run: yarn lint

+ 1 - 0
.prettierrc.js

@@ -1,3 +1,4 @@
 module.exports = {
   ...require('@joystream/prettier-config'),
+  printWidth: 120
 }

+ 1 - 1
package.json

@@ -55,6 +55,6 @@
     "typescript": "^4.0.3"
   },
   "engines": {
-    "node": "^12.13.0"
+    "node": ">=12"
   }
 }