refactor: update code linting and formatting
This commit is contained in:
		| @@ -1,7 +0,0 @@ | ||||
| { | ||||
|   "extends": ["@walidoux/eslint-config"], | ||||
|   "ignorePatterns": ["out", "**/*.config.js", "**/*.d.ts", "plopfile.js"], | ||||
|   "rules": { | ||||
|     "@next/next/no-img-element": "off" | ||||
|   } | ||||
| } | ||||
| @@ -1,4 +0,0 @@ | ||||
| #!/bin/sh | ||||
| . "$(dirname "$0")/_/husky.sh" | ||||
|  | ||||
| npm run lint:staged | ||||
| @@ -1,12 +0,0 @@ | ||||
| { | ||||
|   "*": [ | ||||
|     "editorconfig-checker" | ||||
|   ], | ||||
|   "*.{js,ts,tsx}": [ | ||||
|     "prettier --write", | ||||
|     "eslint --fix" | ||||
|   ], | ||||
|   "*.{json,jsonc,yml,yaml,md,mdx}": [ | ||||
|     "prettier --write" | ||||
|   ] | ||||
| } | ||||
							
								
								
									
										18
									
								
								.releaserc
									
									
									
									
									
								
							
							
						
						
									
										18
									
								
								.releaserc
									
									
									
									
									
								
							| @@ -1,12 +1,15 @@ | ||||
| { | ||||
|   "branches": [ | ||||
|     "master" | ||||
|   ], | ||||
|   "plugins": [ | ||||
|     [ | ||||
|       "@semantic-release/commit-analyzer", | ||||
|       { | ||||
|         "preset": "conventionalcommits" | ||||
|         "preset": "conventionalcommits", | ||||
|         "parserOpts": { | ||||
|           "noteKeywords": [ | ||||
|             "BREAKING CHANGE", | ||||
|             "BREAKING CHANGES" | ||||
|           ] | ||||
|         } | ||||
|       } | ||||
|     ], | ||||
|     [ | ||||
| @@ -15,7 +18,14 @@ | ||||
|         "preset": "conventionalcommits" | ||||
|       } | ||||
|     ], | ||||
|     [ | ||||
|       "@semantic-release/changelog", | ||||
|       { | ||||
|         "changelogFile": "CHANGELOG.md" | ||||
|       } | ||||
|     ], | ||||
|     "@semantic-release/npm", | ||||
|     "@semantic-release/git", | ||||
|     "@semantic-release/github" | ||||
|   ] | ||||
| } | ||||
|   | ||||
							
								
								
									
										2
									
								
								.vscode/settings.json
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										2
									
								
								.vscode/settings.json
									
									
									
									
										vendored
									
									
								
							| @@ -1,9 +1,7 @@ | ||||
| { | ||||
|   "typescript.enablePromptUseWorkspaceTsdk": true, | ||||
|   "typescript.tsdk": "node_modules/typescript/lib", | ||||
|   "prettier.configPath": ".prettierrc", | ||||
|   "editor.defaultFormatter": "esbenp.prettier-vscode", | ||||
|   "editor.bracketPairColorization.enabled": true, | ||||
|   "editor.formatOnSave": true, | ||||
|   "editor.codeActionsOnSave": { | ||||
|     "source.fixAll": true | ||||
|   | ||||
							
								
								
									
										74
									
								
								package.json
									
									
									
									
									
								
							
							
						
						
									
										74
									
								
								package.json
									
									
									
									
									
								
							| @@ -1,7 +1,6 @@ | ||||
| { | ||||
|   "name": "next-app-boilerplate", | ||||
|   "version": "0.0.0", | ||||
|   "prettier": "@walidoux/prettier-config", | ||||
|   "license": "MIT", | ||||
|   "keywords": [ | ||||
|     "template", | ||||
| @@ -21,6 +20,17 @@ | ||||
|     "email": "contact@walidkorchi.com", | ||||
|     "url": "https://walidkorchi.com" | ||||
|   }, | ||||
|   "repository": { | ||||
|     "type": "git", | ||||
|     "url": "https://github.com/Walidoux/next-app-boilerplate" | ||||
|   }, | ||||
|   "bugs": { | ||||
|     "url": "https://github.com/Walidoux/next-app-boilerplate/issues" | ||||
|   }, | ||||
|   "homepage": "https://next-app-boilerplate.vercel.app", | ||||
|   "publishConfig": { | ||||
|     "access": "public" | ||||
|   }, | ||||
|   "scripts": { | ||||
|     "dev": "next dev", | ||||
|     "build": "next build", | ||||
| @@ -44,45 +54,57 @@ | ||||
|     "react-dom": "^18.2.0" | ||||
|   }, | ||||
|   "devDependencies": { | ||||
|     "@commitlint/cli": "^17.0.3", | ||||
|     "@commitlint/config-conventional": "^17.0.3", | ||||
|     "@commitlint/cli": "^17.1.1", | ||||
|     "@commitlint/config-conventional": "^17.1.0", | ||||
|     "@semantic-release/changelog": "^6.0.1", | ||||
|     "@semantic-release/git": "^10.0.1", | ||||
|     "@types/js-cookie": "^3.0.2", | ||||
|     "@types/node": "18.7.2", | ||||
|     "@types/node": "18.7.13", | ||||
|     "@types/react": "18.0.17", | ||||
|     "@typescript-eslint/eslint-plugin": "^5.35.1", | ||||
|     "@typescript-eslint/parser": "^5.35.1", | ||||
|     "@walidoux/eslint-config": "^1.0.0", | ||||
|     "@walidoux/eslint-config": "^1.0.1", | ||||
|     "@walidoux/prettier-config": "^1.0.0", | ||||
|     "autoprefixer": "^10.4.8", | ||||
|     "editorconfig-checker": "^4.0.2", | ||||
|     "eslint": "^8.21.0", | ||||
|     "eslint-config-conventions": "^3.0.0", | ||||
|     "eslint-config-next": "12.2.5", | ||||
|     "eslint-config-prettier": "^8.5.0", | ||||
|     "eslint-plugin-import": "^2.26.0", | ||||
|     "eslint-plugin-prettier": "^4.2.1", | ||||
|     "eslint-plugin-promise": "^6.0.1", | ||||
|     "eslint-plugin-unicorn": "^43.0.2", | ||||
|     "eslint": "^8.23.0", | ||||
|     "husky": "^8.0.1", | ||||
|     "lint-staged": "^13.0.3", | ||||
|     "nano-staged": "^0.8.0", | ||||
|     "plop": "^3.1.1", | ||||
|     "postcss": "^8.4.16", | ||||
|     "prettier": "^2.7.1", | ||||
|     "prettier-plugin-tailwindcss": "^0.1.13", | ||||
|     "react-icons": "^4.4.0", | ||||
|     "semantic-release": "^19.0.3", | ||||
|     "semantic-release": "^19.0.5", | ||||
|     "tailwindcss": "^3.1.8", | ||||
|     "typescript": "^4.7.4" | ||||
|     "ts-node": "^10.9.1", | ||||
|     "typescript": "^4.8.2" | ||||
|   }, | ||||
|   "repository": { | ||||
|     "type": "git", | ||||
|     "url": "https://github.com/Walidoux/next-app-boilerplate" | ||||
|   "prettier": "@walidoux/prettier-config", | ||||
|   "eslintConfig": { | ||||
|     "extends": [ | ||||
|       "@walidoux/eslint-config" | ||||
|     ], | ||||
|     "ignorePatterns": [ | ||||
|       "out", | ||||
|       "**/*.config.js", | ||||
|       "**/*.d.ts", | ||||
|       "plopfile.js" | ||||
|     ], | ||||
|     "rules": { | ||||
|       "@next/next/no-img-element": "off" | ||||
|     } | ||||
|   }, | ||||
|   "bugs": { | ||||
|     "url": "https://github.com/Walidoux/next-app-boilerplate/issues" | ||||
|   "husky": { | ||||
|     "hooks": { | ||||
|       "pre-commit": "nano-staged" | ||||
|     } | ||||
|   }, | ||||
|   "homepage": "https://next-app-boilerplate.vercel.app", | ||||
|   "publishConfig": { | ||||
|     "access": "public" | ||||
|   "nano-staged": { | ||||
|     "**/*.js": [ | ||||
|       "eslint --fix", | ||||
|       "prettier --ignore-path .eslintignore --write" | ||||
|     ], | ||||
|     "**/*.{json,md,yml}": [ | ||||
|       "prettier --ignore-path .eslintignore --write" | ||||
|     ] | ||||
|   } | ||||
| } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user