File tree Expand file tree Collapse file tree 3 files changed +5
-2
lines changed Expand file tree Collapse file tree 3 files changed +5
-2
lines changed Original file line number Diff line number Diff line change 18
18
cache : ' yarn'
19
19
- run : yarn
20
20
- run : yarn prettier-check
21
- - run : yarn lint-check
21
+ # Need to build before linting because of linting rules that use type information.
22
22
- run : yarn build-lib
23
+ - run : yarn lint-check
23
24
- run : yarn type-check-app
24
25
- run : yarn test-lib
25
26
- run : yarn test-app
Original file line number Diff line number Diff line change @@ -48,6 +48,8 @@ export default typescriptEslint.config([
48
48
//
49
49
// TypeScript
50
50
//
51
+ // NOTE: 'recommendedTypeChecked' requires a build step before linting. Unfortunately there is no clear error if
52
+ // packages/react-hook-tracer/dist is missing, just lots of @typescript-eslint/no-unsafe-.. errors.
51
53
typescriptEslint . configs . recommendedTypeChecked ,
52
54
{
53
55
name : 'typescript-rules' ,
Original file line number Diff line number Diff line change 31
31
"login" : " yarn workspace react-hook-tracer npm login --publish" ,
32
32
"pack-lib" : " yarn pre-pack-publish && yarn workspace react-hook-tracer pack -o 'dist/%s@%v.tgz'" ,
33
33
"pack-lib-no-test" : " yarn clean && yarn build-lib && yarn workspace react-hook-tracer pack -o 'dist/%s@%v.tgz'" ,
34
- "pre-pack-publish" : " yarn prettier-check && yarn lint-check && yarn clean && yarn build " ,
34
+ "pre-pack-publish" : " yarn prettier-check && yarn clean && yarn build && yarn lint-check " ,
35
35
"publish-lib" : " yarn pre-pack-publish && yarn workspace react-hook-tracer npm publish" ,
36
36
"tag-release" : " bash-scripts/tag-release.sh" ,
37
37
"test-lib" : " yarn workspace react-hook-tracer test" ,
You can’t perform that action at this time.
0 commit comments