From c7eb9672ab08b86942bdb364cd14f0bcc43860b6 Mon Sep 17 00:00:00 2001 From: Eric NGUYEN Date: Mon, 21 Nov 2022 13:52:19 +0100 Subject: [PATCH] Add linter to azure-pipeline --- azure-pipelines.yml | 4 ++++ package.json | 1 + 2 files changed, 5 insertions(+) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 49fef77..d2a1ccb 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -61,6 +61,10 @@ steps: kill -2 %1 %2 2>/dev/null displayName: 'Test on Node.js 18.x Latest' +- bash: | + pnpm run linter + displayName: 'Run eslint on src' + - publish: $(System.DefaultWorkingDirectory)/dist artifact: svg-layout-designer diff --git a/package.json b/package.json index 1cda99c..9304f23 100644 --- a/package.json +++ b/package.json @@ -8,6 +8,7 @@ "build": "tsc && vite build", "build:dotnet": "dotnet build ./csharp/SVGLDLibs/SVGLDLibs/SVGLDLibs.csproj", "preview": "vite preview", + "linter": "eslint src", "test": "vitest", "test:ui": "vitest --ui", "test:nowatch": "vitest run",