feat: created eslint config
This commit is contained in:
		
							
								
								
									
										2
									
								
								front/MyINPulse-front/.gitignore
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										2
									
								
								front/MyINPulse-front/.gitignore
									
									
									
									
										vendored
									
									
								
							| @@ -36,4 +36,4 @@ playwright-report/ | |||||||
| # Custom | # Custom | ||||||
|  |  | ||||||
| .installed | .installed | ||||||
| package-lock.json | ./package-lock.json | ||||||
							
								
								
									
										29
									
								
								front/MyINPulse-front/eslint.config.js
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										29
									
								
								front/MyINPulse-front/eslint.config.js
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,29 @@ | |||||||
|  | import eslint from '@eslint/js'; | ||||||
|  | import eslintConfigPrettier from 'eslint-config-prettier'; | ||||||
|  | import eslintPluginVue from 'eslint-plugin-vue'; | ||||||
|  | import globals from 'globals'; | ||||||
|  | import typescriptEslint from 'typescript-eslint'; | ||||||
|  |  | ||||||
|  | export default typescriptEslint.config( | ||||||
|  |     { ignores: ['*.d.ts', '**/coverage', '**/dist'] }, | ||||||
|  |     { | ||||||
|  |         extends: [ | ||||||
|  |             eslint.configs.recommended, | ||||||
|  |             ...typescriptEslint.configs.recommended, | ||||||
|  |             ...eslintPluginVue.configs['flat/recommended'], | ||||||
|  |         ], | ||||||
|  |         files: ['**/*.{ts,vue}'], | ||||||
|  |         languageOptions: { | ||||||
|  |             ecmaVersion: 'latest', | ||||||
|  |             sourceType: 'module', | ||||||
|  |             globals: globals.browser, | ||||||
|  |             parserOptions: { | ||||||
|  |                 parser: typescriptEslint.parser, | ||||||
|  |             }, | ||||||
|  |        }, | ||||||
|  |         rules: { | ||||||
|  |             // your rules | ||||||
|  |         }, | ||||||
|  |     }, | ||||||
|  |     eslintConfigPrettier | ||||||
|  | ); | ||||||
| @@ -26,8 +26,14 @@ | |||||||
|     "@types/node": "^22.10.7", |     "@types/node": "^22.10.7", | ||||||
|     "@vitejs/plugin-vue": "^5.2.1", |     "@vitejs/plugin-vue": "^5.2.1", | ||||||
|     "@vue/tsconfig": "^0.7.0", |     "@vue/tsconfig": "^0.7.0", | ||||||
|  |     "eslint": "^9.20.0", | ||||||
|  |     "eslint-config-prettier": "^10.0.1", | ||||||
|  |     "eslint-plugin-vue": "^9.32.0", | ||||||
|  |     "globals": "^15.14.0", | ||||||
|  |     "jiti": "^2.4.2", | ||||||
|     "npm-run-all2": "^7.0.2", |     "npm-run-all2": "^7.0.2", | ||||||
|     "typescript": "~5.7.3", |     "typescript": "~5.7.3", | ||||||
|  |     "typescript-eslint": "^8.23.0", | ||||||
|     "vite": "^6.0.11", |     "vite": "^6.0.11", | ||||||
|     "vite-plugin-vue-devtools": "^7.7.0", |     "vite-plugin-vue-devtools": "^7.7.0", | ||||||
|     "vue-tsc": "^2.2.0" |     "vue-tsc": "^2.2.0" | ||||||
|   | |||||||
| @@ -10,15 +10,12 @@ import ErrorWrapper from "@/views/errorWrapper.vue"; | |||||||
|       <ProjectComp  |       <ProjectComp  | ||||||
|         v-for="(project, index) in projects"  |         v-for="(project, index) in projects"  | ||||||
|         :key="index" |         :key="index" | ||||||
|         :projectName="project.name" |         :project-name="project.name" | ||||||
|       /> |       /> | ||||||
|     </div> |     </div> | ||||||
|   <RouterView /> |   <RouterView /> | ||||||
| </template> | </template> | ||||||
|  |  | ||||||
| <style scoped> |  | ||||||
| </style> |  | ||||||
|  |  | ||||||
| <script lang="ts"> | <script lang="ts"> | ||||||
| import Header from "@/components/Header.vue"; | import Header from "@/components/Header.vue"; | ||||||
| import ProjectComp from "@/components/Project-comp.vue"; | import ProjectComp from "@/components/Project-comp.vue"; | ||||||
| @@ -47,4 +44,7 @@ export default { | |||||||
|   }, |   }, | ||||||
| }; | }; | ||||||
|  |  | ||||||
| </script> | </script> | ||||||
|  |  | ||||||
|  | <style scoped> | ||||||
|  | </style> | ||||||
		Reference in New Issue
	
	Block a user