aboutsummaryrefslogtreecommitdiffstats
path: root/subprojects/frontend/.eslintrc.cjs
diff options
context:
space:
mode:
authorLibravatar Kristóf Marussy <kristof@marussy.com>2023-04-09 00:53:53 +0200
committerLibravatar Kristóf Marussy <kristof@marussy.com>2023-04-09 00:53:53 +0200
commitc3fcc1ae3d2f680a973e66c138d9be7ae22eee26 (patch)
tree6a30b2478a30747cd7a2522acdff941394dea4e7 /subprojects/frontend/.eslintrc.cjs
parentbuild: always prefer slf4j instead of log4j 1.x (diff)
downloadrefinery-c3fcc1ae3d2f680a973e66c138d9be7ae22eee26.tar.gz
refinery-c3fcc1ae3d2f680a973e66c138d9be7ae22eee26.tar.zst
refinery-c3fcc1ae3d2f680a973e66c138d9be7ae22eee26.zip
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.
Diffstat (limited to 'subprojects/frontend/.eslintrc.cjs')
-rw-r--r--subprojects/frontend/.eslintrc.cjs3
1 files changed, 3 insertions, 0 deletions
diff --git a/subprojects/frontend/.eslintrc.cjs b/subprojects/frontend/.eslintrc.cjs
index 8a7b474a..dc03d721 100644
--- a/subprojects/frontend/.eslintrc.cjs
+++ b/subprojects/frontend/.eslintrc.cjs
@@ -90,6 +90,7 @@ module.exports = {
90 files: [ 90 files: [
91 '.eslintrc.cjs', 91 '.eslintrc.cjs',
92 'config/*.ts', 92 'config/*.ts',
93 'config/*.cjs',
93 'prettier.config.cjs', 94 'prettier.config.cjs',
94 'vite.config.ts', 95 'vite.config.ts',
95 ], 96 ],
@@ -103,6 +104,8 @@ module.exports = {
103 'error', 104 'error',
104 { devDependencies: true }, 105 { devDependencies: true },
105 ], 106 ],
107 // Allow writing to the console in ad-hoc scripts.
108 'no-console': 'off',
106 // Access to the environment in configuration files. 109 // Access to the environment in configuration files.
107 'no-process-env': 'off', 110 'no-process-env': 'off',
108 }, 111 },