We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4de6a5e commit 5f740e0Copy full SHA for 5f740e0
.github/workflows/lint.yml
@@ -0,0 +1,35 @@
1
+name: Lint
2
+
3
+on:
4
+ # Trigger the workflow on push or pull request,
5
+ # but only for the main branch
6
+ push:
7
+ branches:
8
+ - master
9
+ pull_request:
10
11
12
13
+jobs:
14
+ run-linters:
15
+ name: Run linters
16
+ runs-on: ubuntu-latest
17
18
+ steps:
19
+ - name: Check out Git repository
20
+ uses: actions/checkout@v3
21
22
+ - name: Set up Node.js
23
+ uses: actions/setup-node@v1
24
+ with:
25
+ node-version: 12
26
27
+ # ESLint and Prettier must be in `package.json`
28
+ - name: Install Node.js dependencies
29
+ run: npm ci
30
31
+ - name: Run linters
32
+ uses: wearerequired/lint-action@v2
33
34
+ eslint: true
35
+ prettier: true
0 commit comments