File tree Expand file tree Collapse file tree 1 file changed +2
-16
lines changed
Expand file tree Collapse file tree 1 file changed +2
-16
lines changed Original file line number Diff line number Diff line change 99 typescriptPluginConfig ,
1010} from '../../code-pushup.preset.js' ;
1111import type { CoreConfig } from '../../packages/models/src/index.js' ;
12+ import { mergeConfigs } from '../../packages/utils/src/index.js' ;
1213
1314const projectName = process . env . CP_PROJECT_NAME || 'models' ;
1415
@@ -21,7 +22,7 @@ const config: CoreConfig = {
2122 plugins : [ ] ,
2223} ;
2324
24- const configs = [
25+ export default mergeConfigs (
2526 config ,
2627 await eslintCoreConfigNx ( projectName ) ,
2728 await coverageCoreConfigNx ( projectName ) ,
@@ -33,19 +34,4 @@ const configs = [
3334 `packages/${ projectName } /src/**/*.ts` ,
3435 ...jsDocsExclusionPatterns ,
3536 ] ) ,
36- ] ;
37-
38- const mergedConfig = configs . reduce (
39- ( result , currentConfig ) => ( {
40- ...result ,
41- ...currentConfig ,
42- plugins : [ ...( result . plugins || [ ] ) , ...( currentConfig . plugins || [ ] ) ] ,
43- categories : [
44- ...( result . categories || [ ] ) ,
45- ...( currentConfig . categories || [ ] ) ,
46- ] ,
47- } ) ,
48- { } as CoreConfig ,
4937) ;
50-
51- export default mergedConfig ;
You can’t perform that action at this time.
0 commit comments