feat(eslint): add eslint config conventions among typescript & prettier
This commit is contained in:
		| @@ -1,6 +1,7 @@ | ||||
| { | ||||
|   "extends": ["next/core-web-vitals", "prettier"], | ||||
|   "plugins": ["prettier"], | ||||
|   "parserOptions": { "project": "./tsconfig.json" }, | ||||
|   "rules": { | ||||
|     "prettier/prettier": "error", | ||||
|     "no-unused-vars": "warn", | ||||
|   | ||||
							
								
								
									
										718
									
								
								package-lock.json
									
									
									
										generated
									
									
									
								
							
							
						
						
									
										718
									
								
								package-lock.json
									
									
									
										generated
									
									
									
								
							
										
											
												File diff suppressed because it is too large
												Load Diff
											
										
									
								
							| @@ -7,7 +7,8 @@ | ||||
|     "start": "next start", | ||||
|     "lint:next": "next lint", | ||||
|     "lint:scss": "stylelint \"**/*.scss\"", | ||||
|     "lint:prettier": "prettier \".\" --check" | ||||
|     "lint:prettier": "prettier \".\" --check --ignore-path \".gitignore\"", | ||||
|     "lint:typescript": "eslint \"**/*.{js,jsx,ts,tsx}\" --ignore-path \".gitignore\"" | ||||
|   }, | ||||
|   "dependencies": { | ||||
|     "next": "12.0.10", | ||||
| @@ -18,10 +19,16 @@ | ||||
|   "devDependencies": { | ||||
|     "@types/node": "17.0.17", | ||||
|     "@types/react": "17.0.39", | ||||
|     "@typescript-eslint/eslint-plugin": "^5.12.0", | ||||
|     "@typescript-eslint/parser": "^5.12.0", | ||||
|     "eslint": "^8.2.0", | ||||
|     "eslint-config-conventions": "^1.1.1", | ||||
|     "eslint-config-next": "12.0.10", | ||||
|     "eslint-config-prettier": "^8.5.0", | ||||
|     "eslint-plugin-import": "^2.25.4", | ||||
|     "eslint-plugin-prettier": "^4.0.0", | ||||
|     "eslint-plugin-promise": "^6.0.0", | ||||
|     "eslint-plugin-unicorn": "^41.0.0", | ||||
|     "prettier": "^2.6.0", | ||||
|     "stylelint": "^14.5.0", | ||||
|     "stylelint-config-prettier": "^9.0.3", | ||||
|   | ||||
		Reference in New Issue
	
	Block a user