fix: Linting op Actions
This commit is contained in:
		
							parent
							
								
									80dc3acca7
								
							
						
					
					
						commit
						7e46ce9c5f
					
				
					 5 changed files with 17 additions and 8 deletions
				
			
		
							
								
								
									
										2
									
								
								.github/workflows/lint-action.yml
									
										
									
									
										vendored
									
									
								
							
							
						
						
									
										2
									
								
								.github/workflows/lint-action.yml
									
										
									
									
										vendored
									
									
								
							|  | @ -43,6 +43,6 @@ jobs: | ||||||
|               with: |               with: | ||||||
|                   auto_fix: true |                   auto_fix: true | ||||||
|                   eslint: true |                   eslint: true | ||||||
|                   eslint_args: '--config eslint.config.ts' |                   eslint_args: "--config eslint.config.ts --ignore-pattern '**/prettier.config.js'" | ||||||
|                   prettier: true |                   prettier: true | ||||||
|                   commit_message: 'style: fix linting issues met ${linter}' |                   commit_message: 'style: fix linting issues met ${linter}' | ||||||
							
								
								
									
										2
									
								
								.gitignore
									
										
									
									
										vendored
									
									
								
							
							
						
						
									
										2
									
								
								.gitignore
									
										
									
									
										vendored
									
									
								
							|  | @ -737,4 +737,4 @@ flycheck_*.el | ||||||
| # network security | # network security | ||||||
| /network-security.data | /network-security.data | ||||||
| 
 | 
 | ||||||
| 
 | docs/.venv | ||||||
|  |  | ||||||
|  | @ -48,7 +48,7 @@ describe('LearningPathService', () => { | ||||||
|             expect(result.data?.length).toBe(1); |             expect(result.data?.length).toBe(1); | ||||||
| 
 | 
 | ||||||
|             // Should include all the nodes, even those pointing to foreign learning objects.
 |             // Should include all the nodes, even those pointing to foreign learning objects.
 | ||||||
|             expect([...result.data![0].nodes.map((it) => it.learningobject_hruid)].sort()).toEqual( |             expect([...result.data![0].nodes.map((it) => it.learningobject_hruid)].sort((a, b) => a - b)).toEqual( | ||||||
|                 example.learningPath.nodes.map((it) => it.learningObjectHruid).sort() |                 example.learningPath.nodes.map((it) => it.learningObjectHruid).sort() | ||||||
|             ); |             ); | ||||||
|         }); |         }); | ||||||
|  |  | ||||||
|  | @ -16,7 +16,16 @@ export default [ | ||||||
|     prettierConfig, |     prettierConfig, | ||||||
|     includeIgnoreFile(gitignorePath), |     includeIgnoreFile(gitignorePath), | ||||||
|     { |     { | ||||||
|         ignores: ['**/dist/**', '**/.node_modules/**', '**/coverage/**', '**/.github/**'], |         ignores: [ | ||||||
|  |             '**/dist/**', | ||||||
|  |             '**/.node_modules/**', | ||||||
|  |             '**/coverage/**', | ||||||
|  |             '**/.github/**', | ||||||
|  |             '**/prettier.config.js', | ||||||
|  |             'docs/.venv/**', | ||||||
|  |             'prettier.config.js', | ||||||
|  |             'frontend/prettier.config.js' | ||||||
|  |         ], | ||||||
|         files: ['**/*.ts', '**/*.cts', '**.*.mts'], |         files: ['**/*.ts', '**/*.cts', '**.*.mts'], | ||||||
|     }, |     }, | ||||||
|     { |     { | ||||||
|  | @ -205,6 +214,6 @@ export default [ | ||||||
|             'no-multi-assign': 'error', |             'no-multi-assign': 'error', | ||||||
|             'no-nested-ternary': 'error', |             'no-nested-ternary': 'error', | ||||||
|             'no-object-constructor': 'error', |             'no-object-constructor': 'error', | ||||||
|         }, |         } | ||||||
|     }, |     }, | ||||||
| ]; | ]; | ||||||
|  |  | ||||||
							
								
								
									
										4
									
								
								package-lock.json
									
										
									
										generated
									
									
									
								
							
							
						
						
									
										4
									
								
								package-lock.json
									
										
									
										generated
									
									
									
								
							|  | @ -1,11 +1,11 @@ | ||||||
| { | { | ||||||
|     "name": "dwengo-1-monorepo", |     "name": "dwengo-1", | ||||||
|     "version": "0.1.1", |     "version": "0.1.1", | ||||||
|     "lockfileVersion": 3, |     "lockfileVersion": 3, | ||||||
|     "requires": true, |     "requires": true, | ||||||
|     "packages": { |     "packages": { | ||||||
|         "": { |         "": { | ||||||
|             "name": "dwengo-1-monorepo", |             "name": "dwengo-1", | ||||||
|             "version": "0.1.1", |             "version": "0.1.1", | ||||||
|             "license": "MIT", |             "license": "MIT", | ||||||
|             "workspaces": [ |             "workspaces": [ | ||||||
|  |  | ||||||
		Reference in a new issue