File tree Expand file tree Collapse file tree 2 files changed +22
-0
lines changed Expand file tree Collapse file tree 2 files changed +22
-0
lines changed Original file line number Diff line number Diff line change 22
22
run : npm ci
23
23
- name : Run Vitest tests
24
24
run : npm test
25
+
26
+ lint :
27
+ runs-on : ubuntu-latest
28
+ name : Lint
29
+ steps :
30
+ - name : Checkout the repository
31
+ uses : actions/checkout@v4
32
+ - name : Set up Node.js
33
+ uses : actions/setup-node@v4
34
+ with :
35
+ node-version-file : .tool-versions
36
+ cache : npm
37
+ - name : Install dependencies
38
+ run : npm ci
39
+ - name : Run ESLint
40
+ run : npm run lint
41
+
25
42
docs :
26
43
runs-on : ubuntu-latest
27
44
name : Docs check
44
61
git diff --ignore-space-at-eol --text docs/*.md README.md
45
62
exit 1
46
63
fi
64
+
47
65
format :
48
66
runs-on : ubuntu-latest
49
67
name : Format check
Original file line number Diff line number Diff line change 18
18
"scripts" : {
19
19
"prepare" : " husky install" ,
20
20
"test" : " vitest run" ,
21
+ "test:watch" : " vitest" ,
21
22
"lint" : " eslint ." ,
23
+ "lint:fix" : " eslint . --fix" ,
24
+ "format" : " prettier --write ." ,
25
+ "format:check" : " prettier --check ." ,
22
26
"docs" : " node scripts/docs.js" ,
23
27
"release" : " release-it"
24
28
},
You can’t perform that action at this time.
0 commit comments