Run linters and type checkers
(context: Context, fix: bool = False)
| 123 | |
| 124 | @task(pre=[env_js]) |
| 125 | def lint_js(context: Context, fix: bool = False): |
| 126 | """Run linters and type checkers""" |
| 127 | if fix: |
| 128 | in_js(context, "npm run fix:format") |
| 129 | else: |
| 130 | in_js(context, "npm run check:format") |
| 131 | in_js(context, "npm run check:types") |
| 132 | |
| 133 | |
| 134 | @task |