File tree Expand file tree Collapse file tree 4 files changed +12
-17
lines changed
Expand file tree Collapse file tree 4 files changed +12
-17
lines changed Original file line number Diff line number Diff line change @@ -98,9 +98,9 @@ mvn package -P quick-build
9898
9999Code style will be enforced by GitHub pull request checks.
100100
101- For frontend code we use [ eslint ] ( https://eslint.org ) and [ prettier ] ( https://prettier.io/ ) .
101+ For frontend code we use [ prettier ] ( https://prettier.io/ ) and [ eslint ] ( https://eslint.org ) .
102102
103- You can automatically fix issues with ` npm run lint :fix `
103+ You can automatically fix issues with ` npm run format && npm run eslint :fix `
104104
105105For java code we use [ spotless] ( https://github.com/diffplug/spotless ) .
106106
Original file line number Diff line number Diff line change 55 "private" : true ,
66 "type" : " module" ,
77 "scripts" : {
8- "mvnbuild" : " npm run build" ,
9- "mvntest" : " eslint --format checkstyle --output-file target/eslint-warnings.xml; vitest run --reporter junit" ,
108 "build" : " vite build --mode production" ,
119 "build:dev" : " vite build --mode production --watch" ,
12- "format:check" : " prettier --check ." ,
1310 "format" : " prettier --write ." ,
14- "lint" : " tsc && eslint && npm run format:check" ,
15- "lint:fix" : " eslint --fix && npm run format" ,
11+ "format:check" : " prettier --check ." ,
12+ "tsc:check" : " tsc" ,
13+ "eslint" : " eslint" ,
14+ "eslint:fix" : " eslint --fix" ,
15+ "lint" : " npm run tsc:check && npm run eslint" ,
1616 "test" : " vitest run" ,
17- "test:dev" : " vitest watch"
17+ "test:dev" : " vitest watch" ,
18+ "eslint:mvn" : " eslint --format checkstyle --output-file target/eslint-warnings.xml || ([ -n \" $JENKINS_URL\" ] && [ -f target/eslint-warnings.xml ])" ,
19+ "vitest:mvn" : " vitest run --reporter default --reporter junit --outputFile \" $PWD/target/surefire-reports/vitest-junit.xml\" || ([ -n \" $JENKINS_URL\" ] && [ -f target/surefire-reports/vitest-junit.xml ])" ,
20+ "mvnbuild" : " npm run build" ,
21+ "mvntest" : " npm run format:check && npm run tsc:check && npm run eslint:mvn && npm run vitest:mvn"
1822 },
1923 "repository" : {
2024 "type" : " git" ,
Original file line number Diff line number Diff line change 3838 <node .version>22.15.0</node .version>
3939 <npm .version>11.3.0</npm .version>
4040 <spotless .check.skip>false</spotless .check.skip>
41-
42- <!-- Opt in to Jenkins handling eslint results -->
43- <maven .test.failure.ignore>false</maven .test.failure.ignore>
44- <frontend .testFailureIgnore>${maven.test.failure.ignore} </frontend .testFailureIgnore>
4541 </properties >
4642
4743 <dependencyManagement >
Original file line number Diff line number Diff line change 11import { defineConfig } from "vitest/config" ;
2- import path from "node:path" ;
32
43export default defineConfig ( {
54 test : {
65 root : "src/main/frontend" ,
76 globals : true ,
87 environment : "jsdom" ,
98 setupFiles : [ "setupTests.ts" ] ,
10- outputFile : path . resolve (
11- import . meta. dirname ,
12- "target/surefire-reports/vitest-junit.xml" ,
13- ) ,
149 } ,
1510} ) ;
You can’t perform that action at this time.
0 commit comments