From c3fcc1ae3d2f680a973e66c138d9be7ae22eee26 Mon Sep 17 00:00:00 2001 From: Kristóf Marussy Date: Sun, 9 Apr 2023 00:53:53 +0200 Subject: build: refactor frontend build * Always write ESLint output to a file in addition to the console to make the lintFrontend task cacheable in Gradle (according to the output file). * Make sure frontend task inputs are declared properly for caching. * Make sure Typescript type checking is incremental. * Do not use @tsconfig, because both Vite and SonarScanner have problems with extending tsconfig files from Yarn PnP modules. --- subprojects/frontend/package.json | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'subprojects/frontend/package.json') diff --git a/subprojects/frontend/package.json b/subprojects/frontend/package.json index 8b4a3f71..e6bcc89e 100644 --- a/subprojects/frontend/package.json +++ b/subprojects/frontend/package.json @@ -9,8 +9,7 @@ "serve": "cross-env MODE=development vite serve", "typegen": "xstate typegen \"src/**/*.ts?(x)\"", "typecheck": "tsc -p tsconfig.shared.json && tsc -p tsconfig.node.json && tsc -p tsconfig.json", - "lint": "eslint .", - "lint:ci": "eslint -f json -o build/eslint.json .", + "lint": "node config/eslintReport.cjs", "lint:fix": "yarn run lint --fix" }, "repository": { @@ -60,7 +59,6 @@ }, "devDependencies": { "@lezer/generator": "^1.2.2", - "@tsconfig/strictest": "^2.0.0", "@types/eslint": "^8.37.0", "@types/html-minifier-terser": "^7.0.0", "@types/lodash-es": "^4.17.7", -- cgit v1.2.3-54-g00ecf