diff --git a/scripts/dev/RunLint.ps1 b/scripts/dev/RunLint.ps1 index ae972c4b..f3519a28 100644 --- a/scripts/dev/RunLint.ps1 +++ b/scripts/dev/RunLint.ps1 @@ -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 \ No newline at end of file