Add linter to azure-pipeline

This commit is contained in:
Eric NGUYEN 2022-11-21 13:52:19 +01:00
parent 8cda37e1a6
commit c7eb9672ab
2 changed files with 5 additions and 0 deletions

View file

@ -61,6 +61,10 @@ steps:
kill -2 %1 %2 2>/dev/null kill -2 %1 %2 2>/dev/null
displayName: 'Test on Node.js 18.x Latest' displayName: 'Test on Node.js 18.x Latest'
- bash: |
pnpm run linter
displayName: 'Run eslint on src'
- publish: $(System.DefaultWorkingDirectory)/dist - publish: $(System.DefaultWorkingDirectory)/dist
artifact: svg-layout-designer artifact: svg-layout-designer

View file

@ -8,6 +8,7 @@
"build": "tsc && vite build", "build": "tsc && vite build",
"build:dotnet": "dotnet build ./csharp/SVGLDLibs/SVGLDLibs/SVGLDLibs.csproj", "build:dotnet": "dotnet build ./csharp/SVGLDLibs/SVGLDLibs/SVGLDLibs.csproj",
"preview": "vite preview", "preview": "vite preview",
"linter": "eslint src",
"test": "vitest", "test": "vitest",
"test:ui": "vitest --ui", "test:ui": "vitest --ui",
"test:nowatch": "vitest run", "test:nowatch": "vitest run",