refactor: integrate @walidoux/[prettier/eslint]-config
This commit is contained in:
		
							
								
								
									
										15
									
								
								.eslintrc
									
									
									
									
									
								
							
							
						
						
									
										15
									
								
								.eslintrc
									
									
									
									
									
								
							| @@ -1,20 +1,7 @@ | ||||
| { | ||||
|   "plugins": ["prettier", "simple-import-sort"], | ||||
|   "extends": ["standard-with-typescript", "prettier"], | ||||
|   "env": { | ||||
|     "node": true, | ||||
|     "browser": true, | ||||
|     "jest": true | ||||
|   }, | ||||
|   "parserOptions": { | ||||
|     "ecmaVersion": "latest", | ||||
|     "project": ["./tsconfig.json"] | ||||
|   }, | ||||
|   "extends": ["@walidoux/eslint-config"], | ||||
|   "ignorePatterns": ["out", "**/*.config.js", "**/*.d.ts", "plopfile.js"], | ||||
|   "rules": { | ||||
|     "prettier/prettier": "error", | ||||
|     "simple-import-sort/imports": "error", | ||||
|     "simple-import-sort/exports": "error", | ||||
|     "@next/next/no-img-element": "off" | ||||
|   } | ||||
| } | ||||
|   | ||||
| @@ -1,2 +0,0 @@ | ||||
| .next | ||||
| *.hbs | ||||
| @@ -1,7 +0,0 @@ | ||||
| { | ||||
|   "singleQuote": true, | ||||
|   "jsxSingleQuote": true, | ||||
|   "semi": false, | ||||
|   "trailingComma": "none", | ||||
|   "bracketSameLine": true | ||||
| } | ||||
							
								
								
									
										24
									
								
								package.json
									
									
									
									
									
								
							
							
						
						
									
										24
									
								
								package.json
									
									
									
									
									
								
							| @@ -1,6 +1,7 @@ | ||||
| { | ||||
|   "name": "next-app-boilerplate", | ||||
|   "version": "0.0.0-development", | ||||
|   "version": "0.0.0", | ||||
|   "prettier": "@walidoux/prettier-config", | ||||
|   "license": "MIT", | ||||
|   "keywords": [ | ||||
|     "template", | ||||
| @@ -17,6 +18,7 @@ | ||||
|   ], | ||||
|   "author": { | ||||
|     "name": "Walid", | ||||
|     "email": "contact@walidkorchi.com", | ||||
|     "url": "https://walidkorchi.com" | ||||
|   }, | ||||
|   "scripts": { | ||||
| @@ -26,7 +28,7 @@ | ||||
|     "check-types": "tsc --noemit", | ||||
|     "lint:next": "next lint", | ||||
|     "lint:editorconfig": "editorconfig-checker", | ||||
|     "lint:prettier": "prettier \".\" --check", | ||||
|     "lint:prettier": "prettier \".\" --check --ignore-unknown '!**/*.hbs' --ignore-path \".gitignore\"", | ||||
|     "lint:commit": "commitlint", | ||||
|     "lint:staged": "lint-staged", | ||||
|     "release": "semantic-release", | ||||
| @@ -47,19 +49,19 @@ | ||||
|     "@types/js-cookie": "^3.0.2", | ||||
|     "@types/node": "18.7.2", | ||||
|     "@types/react": "18.0.17", | ||||
|     "@typescript-eslint/eslint-plugin": "^5.33.0", | ||||
|     "@typescript-eslint/parser": "^5.33.0", | ||||
|     "@typescript-eslint/eslint-plugin": "^5.35.1", | ||||
|     "@typescript-eslint/parser": "^5.35.1", | ||||
|     "@walidoux/eslint-config": "^1.0.0", | ||||
|     "@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-config-standard-with-typescript": "^22.0.0", | ||||
|     "eslint-plugin-import": "^2.26.0", | ||||
|     "eslint-plugin-n": "^15.2.4", | ||||
|     "eslint-plugin-prettier": "^4.2.1", | ||||
|     "eslint-plugin-promise": "^6.0.0", | ||||
|     "eslint-plugin-simple-import-sort": "^7.0.0", | ||||
|     "eslint-plugin-promise": "^6.0.1", | ||||
|     "eslint-plugin-unicorn": "^43.0.2", | ||||
|     "husky": "^8.0.1", | ||||
|     "lint-staged": "^13.0.3", | ||||
| @@ -82,9 +84,5 @@ | ||||
|   "homepage": "https://next-app-boilerplate.vercel.app", | ||||
|   "publishConfig": { | ||||
|     "access": "public" | ||||
|   }, | ||||
|   "private": true, | ||||
|   "branches": [ | ||||
|     "master" | ||||
|   ] | ||||
|   } | ||||
| } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user