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 754ebc9 commit 7923b51Copy full SHA for 7923b51
.github/workflows/format-and-lint.yml
@@ -0,0 +1,27 @@
1
+name: Format and Lint
2
+on:
3
+ push:
4
+ pull_request:
5
+ branches: [ main ]
6
+concurrency:
7
+ group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
8
+ cancel-in-progress: true
9
+jobs:
10
+ lint:
11
+ runs-on: ubuntu-latest
12
+ strategy:
13
+ matrix:
14
+ node-version: [18]
15
+ steps:
16
+ - name: Check out branch (pull request)
17
+ uses: actions/checkout@v3
18
+ - name: Use Node.js ${{ matrix.node-version }}
19
+ uses: actions/setup-node@v3
20
+ with:
21
+ node-version: ${{ matrix.node-version }}
22
+ - name: Install packages
23
+ run: npm ci
24
+ - name: Check Formatting with Prettier
25
+ run: npx prettier --check .
26
+ - name: Lint with ESLint
27
+ run: npx eslint .
0 commit comments