diff options
author | Kristóf Marussy <kristof@marussy.com> | 2023-02-02 20:52:07 +0100 |
---|---|---|
committer | Kristóf Marussy <kristof@marussy.com> | 2023-02-02 20:52:07 +0100 |
commit | 44eed9d6b827f55a962a618bd2abd065520105a8 (patch) | |
tree | 5d0ed8cba5042bf45928a166a935f7eca21db41e /subprojects | |
parent | chore(deps): bump dependencies (diff) | |
download | refinery-44eed9d6b827f55a962a618bd2abd065520105a8.tar.gz refinery-44eed9d6b827f55a962a618bd2abd065520105a8.tar.zst refinery-44eed9d6b827f55a962a618bd2abd065520105a8.zip |
build: try to fix lint errors
Make sure to generate TypeScript type definitions before ESLint is
invoked. Missing type definitions for tsconfig references generate lont
errors.
Diffstat (limited to 'subprojects')
-rw-r--r-- | subprojects/frontend/build.gradle | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/subprojects/frontend/build.gradle b/subprojects/frontend/build.gradle index aab1caed..4cc2c5d7 100644 --- a/subprojects/frontend/build.gradle +++ b/subprojects/frontend/build.gradle | |||
@@ -68,6 +68,7 @@ def typecheckFrontend = tasks.register('typecheckFrontend', RunYarn) { | |||
68 | def lintFrontend = tasks.register('lintFrontend', RunYarn) { | 68 | def lintFrontend = tasks.register('lintFrontend', RunYarn) { |
69 | dependsOn installFrontend | 69 | dependsOn installFrontend |
70 | dependsOn generateXStateTypes | 70 | dependsOn generateXStateTypes |
71 | dependsOn typecheckFrontend | ||
71 | inputs.dir 'src' | 72 | inputs.dir 'src' |
72 | inputs.dir 'types' | 73 | inputs.dir 'types' |
73 | inputs.files('.eslintrc.cjs', 'prettier.config.cjs') | 74 | inputs.files('.eslintrc.cjs', 'prettier.config.cjs') |
@@ -86,6 +87,7 @@ def lintFrontend = tasks.register('lintFrontend', RunYarn) { | |||
86 | def prettier = tasks.register('fixFrontend', RunYarn) { | 87 | def prettier = tasks.register('fixFrontend', RunYarn) { |
87 | dependsOn installFrontend | 88 | dependsOn installFrontend |
88 | dependsOn generateXStateTypes | 89 | dependsOn generateXStateTypes |
90 | dependsOn typecheckFrontend | ||
89 | inputs.dir 'src' | 91 | inputs.dir 'src' |
90 | inputs.dir 'types' | 92 | inputs.dir 'types' |
91 | inputs.files('.eslintrc.cjs', 'prettier.config.cjs') | 93 | inputs.files('.eslintrc.cjs', 'prettier.config.cjs') |