R: Add frontend linter to script

This commit is contained in:
Ivan 2024-11-20 21:40:47 +03:00
parent 3f398bd700
commit a1bfa8a119

View File

@ -1,11 +1,14 @@
# Run coverage analysis
# Run linters
$backend = Resolve-Path -Path "$PSScriptRoot\..\..\rsconcept\backend"
$frontend = Resolve-Path -Path "$PSScriptRoot\..\..\rsconcept\frontend"
function RunLinters() {
BackendLint
LintBackend
LintFrontend
}
function BackendLint() {
function LintBackend() {
$pylint = "$backend\venv\Scripts\pylint.exe"
$mypy = "$backend\venv\Scripts\mypy.exe"
@ -15,4 +18,9 @@ function BackendLint() {
& $mypy project apps
}
function LintFrontend() {
Set-Location $frontend
& npm run lint
}
RunLinters