refactor(eslint + deps): update to latest + clean up & resolve eslint config
This commit is contained in:
		| @@ -1,3 +0,0 @@ | ||||
| .DS_Store | ||||
| node_modules | ||||
| *.log | ||||
| @@ -1,4 +0,0 @@ | ||||
| { | ||||
|   "extends": ["conventions", "plugin:prettier/recommended", "prettier"], | ||||
|   "plugins": ["prettier"] | ||||
| } | ||||
							
								
								
									
										17
									
								
								.eslintrc.json
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										17
									
								
								.eslintrc.json
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,17 @@ | ||||
| { | ||||
|   "extends": ["conventions", "prettier"], | ||||
|   "plugins": ["prettier"], | ||||
|  | ||||
|   "parser": "@typescript-eslint/parser", | ||||
|  | ||||
|   "env": { | ||||
|     "node": true, | ||||
|     "browser": true | ||||
|   }, | ||||
|  | ||||
|   "rules": { | ||||
|     "prettier/prettier": "error", | ||||
|     "arrow-body-style": "off", | ||||
|     "@typescript-eslint/no-extraneous-class": "off" | ||||
|   } | ||||
| } | ||||
							
								
								
									
										19
									
								
								index.js
									
									
									
									
									
								
							
							
						
						
									
										19
									
								
								index.js
									
									
									
									
									
								
							| @@ -1,19 +0,0 @@ | ||||
| module.exports = { | ||||
|   extends: ['conventions', 'prettier'], | ||||
|   plugins: ['prettier'], | ||||
|   parser: '@typescript-eslint/parser', | ||||
|   parserOptions: { | ||||
|     ecmaVersion: 'latest', | ||||
|     project: './tsconfig.json' | ||||
|   }, | ||||
|   env: { | ||||
|     node: true, | ||||
|     browser: true | ||||
|   }, | ||||
|   rules: { | ||||
|     'prettier/prettier': 'error', | ||||
|     'arrow-body-style': 'off', | ||||
|     '@typescript-eslint/no-extraneous-class': 'off' | ||||
|  | ||||
|   } | ||||
| } | ||||
							
								
								
									
										35
									
								
								package.json
									
									
									
									
									
								
							
							
						
						
									
										35
									
								
								package.json
									
									
									
									
									
								
							| @@ -1,50 +1,41 @@ | ||||
| { | ||||
|   "name": "@walidoux/eslint-config", | ||||
|   "version": "1.0.5", | ||||
|   "version": "1.0.6", | ||||
|   "description": "Walidoux's Eslint config.", | ||||
|   "author": "Walidoux", | ||||
|   "license": "MIT", | ||||
|   "files": [ | ||||
|     ".eslintrc.json" | ||||
|   ], | ||||
|   "main": ".eslintrc.json", | ||||
|   "repository": { | ||||
|     "type": "git", | ||||
|     "url": "https://github.com/walidoux/eslint-config" | ||||
|   }, | ||||
|   "homepage": "https://github.com/walidoux/eslint-config/#readme", | ||||
|   "bugs": { | ||||
|     "url": "https://github.com/Walidoux/eslint-config/issues" | ||||
|   }, | ||||
|   "keywords": [ | ||||
|     "eslint", | ||||
|     "conventions", | ||||
|     "config" | ||||
|   ], | ||||
|   "files": [ | ||||
|     "index.js" | ||||
|   ], | ||||
|   "main": "index.js", | ||||
|   "prettier": "@walidoux/prettier-config", | ||||
|   "scripts": { | ||||
|     "lint:eslint": "eslint '**/*.js' --fix", | ||||
|     "lint:prettier": "prettier '**/*.{js,json,md,yml}' --ignore-path .eslintignore --write --loglevel silent", | ||||
|     "release": "npm publish" | ||||
|   }, | ||||
|   "devDependencies": { | ||||
|     "@walidoux/prettier-config": "^1.0.4", | ||||
|     "@typescript-eslint/parser": "^6.2.0", | ||||
|   "dependencies": { | ||||
|     "@typescript-eslint/eslint-plugin": "^6.2.0", | ||||
|     "@typescript-eslint/parser": "^6.2.0", | ||||
|     "eslint": "^8.45.0", | ||||
|     "eslint-config-conventions": "^11.0.1", | ||||
|     "eslint-plugin-promise": "^6.1.1", | ||||
|     "eslint-plugin-unicorn": "^48.0.1", | ||||
|     "eslint-plugin-import": "^2.27.5", | ||||
|     "eslint-config-prettier": "^8.8.0", | ||||
|     "eslint-import-resolver-typescript": "^3.5.5", | ||||
|     "eslint-plugin-import": "2.27.5", | ||||
|     "eslint-plugin-prettier": "^5.0.0", | ||||
|     "eslint": "^8.44.0", | ||||
|     "prettier": "^2.8.8", | ||||
|     "typescript": "^5.1.6" | ||||
|     "eslint-plugin-promise": "^6.1.1", | ||||
|     "eslint-plugin-unicorn": "^48.0.1" | ||||
|   }, | ||||
|   "peerDependencies": { | ||||
|     "eslint": ">=8.44.0", | ||||
|     "prettier": ">=2.8.8" | ||||
|   "devDependencies": { | ||||
|     "typescript": "^5.1.6" | ||||
|   }, | ||||
|   "publishConfig": { | ||||
|     "access": "public" | ||||
|   | ||||
							
								
								
									
										80
									
								
								yarn.lock
									
									
									
									
									
								
							
							
						
						
									
										80
									
								
								yarn.lock
									
									
									
									
									
								
							| @@ -218,11 +218,6 @@ | ||||
|     "@typescript-eslint/types" "6.2.0" | ||||
|     eslint-visitor-keys "^3.4.1" | ||||
|  | ||||
| "@walidoux/prettier-config@^1.0.4": | ||||
|   version "1.0.4" | ||||
|   resolved "https://registry.yarnpkg.com/@walidoux/prettier-config/-/prettier-config-1.0.4.tgz#aa4fe903d2e0a8dc416426f140c60e6237fc25c9" | ||||
|   integrity sha512-nOXadIfKIBou2L5C33uDb7IKyYIV7Hktn2oO01xftuYyzp2EfmjQLQgivvUjJigyrt7cEbKjTG16FX3q1sNABg== | ||||
|  | ||||
| acorn-jsx@^5.3.2: | ||||
|   version "5.3.2" | ||||
|   resolved "https://registry.yarnpkg.com/acorn-jsx/-/acorn-jsx-5.3.2.tgz#7ed5bb55908b3b2f1bc55c6af1653bada7f07937" | ||||
| @@ -523,14 +518,6 @@ doctrine@^3.0.0: | ||||
|   dependencies: | ||||
|     esutils "^2.0.2" | ||||
|  | ||||
| enhanced-resolve@^5.12.0: | ||||
|   version "5.15.0" | ||||
|   resolved "https://registry.yarnpkg.com/enhanced-resolve/-/enhanced-resolve-5.15.0.tgz#1af946c7d93603eb88e9896cee4904dc012e9c35" | ||||
|   integrity sha512-LXYT42KJ7lpIKECr2mAXIaMldcNCh/7E0KBKOu4KSfkHmP+mZmSs+8V5gBAqisWBy0OO4W5Oyys0GO1Y8KtdKg== | ||||
|   dependencies: | ||||
|     graceful-fs "^4.2.4" | ||||
|     tapable "^2.2.0" | ||||
|  | ||||
| error-ex@^1.3.1: | ||||
|   version "1.3.2" | ||||
|   resolved "https://registry.yarnpkg.com/error-ex/-/error-ex-1.3.2.tgz#b4ac40648107fdcdcfae242f428bea8a14d4f1bf" | ||||
| @@ -637,20 +624,6 @@ eslint-import-resolver-node@^0.3.7: | ||||
|     is-core-module "^2.11.0" | ||||
|     resolve "^1.22.1" | ||||
|  | ||||
| eslint-import-resolver-typescript@^3.5.5: | ||||
|   version "3.5.5" | ||||
|   resolved "https://registry.yarnpkg.com/eslint-import-resolver-typescript/-/eslint-import-resolver-typescript-3.5.5.tgz#0a9034ae7ed94b254a360fbea89187b60ea7456d" | ||||
|   integrity sha512-TdJqPHs2lW5J9Zpe17DZNQuDnox4xo2o+0tE7Pggain9Rbc19ik8kFtXdxZ250FVx2kF4vlt2RSf4qlUpG7bhw== | ||||
|   dependencies: | ||||
|     debug "^4.3.4" | ||||
|     enhanced-resolve "^5.12.0" | ||||
|     eslint-module-utils "^2.7.4" | ||||
|     get-tsconfig "^4.5.0" | ||||
|     globby "^13.1.3" | ||||
|     is-core-module "^2.11.0" | ||||
|     is-glob "^4.0.3" | ||||
|     synckit "^0.8.5" | ||||
|  | ||||
| eslint-module-utils@^2.7.4: | ||||
|   version "2.8.0" | ||||
|   resolved "https://registry.yarnpkg.com/eslint-module-utils/-/eslint-module-utils-2.8.0.tgz#e439fee65fc33f6bba630ff621efc38ec0375c49" | ||||
| @@ -658,7 +631,7 @@ eslint-module-utils@^2.7.4: | ||||
|   dependencies: | ||||
|     debug "^3.2.7" | ||||
|  | ||||
| eslint-plugin-import@^2.27.5: | ||||
| eslint-plugin-import@2.27.5: | ||||
|   version "2.27.5" | ||||
|   resolved "https://registry.yarnpkg.com/eslint-plugin-import/-/eslint-plugin-import-2.27.5.tgz#876a6d03f52608a3e5bb439c2550588e51dd6c65" | ||||
|   integrity sha512-LmEt3GVofgiGuiE+ORpnvP+kAm3h6MLZJ4Q5HCyHADofsb4VzXFsRiWj3c0OFiV+3DWFh0qg3v9gcPlfc3zRow== | ||||
| @@ -726,7 +699,7 @@ eslint-visitor-keys@^3.3.0, eslint-visitor-keys@^3.4.1: | ||||
|   resolved "https://registry.yarnpkg.com/eslint-visitor-keys/-/eslint-visitor-keys-3.4.1.tgz#c22c48f48942d08ca824cc526211ae400478a994" | ||||
|   integrity sha512-pZnmmLwYzf+kWaM/Qgrvpen51upAktaaiI01nsJD/Yr3lMOdNtq0cxkrrg16w64VtisN6okbs7Q8AfGqj4c9fA== | ||||
|  | ||||
| eslint@^8.44.0: | ||||
| eslint@^8.45.0: | ||||
|   version "8.45.0" | ||||
|   resolved "https://registry.yarnpkg.com/eslint/-/eslint-8.45.0.tgz#bab660f90d18e1364352c0a6b7c6db8edb458b78" | ||||
|   integrity sha512-pd8KSxiQpdYRfYa9Wufvdoct3ZPQQuVuU5O6scNgMuOMYuxvH0IGaYK0wUFjo4UYYQQCUndlXiMbnxopwvvTiw== | ||||
| @@ -818,9 +791,9 @@ execa@^5.0.0: | ||||
|     strip-final-newline "^2.0.0" | ||||
|  | ||||
| execa@^7.1.1: | ||||
|   version "7.1.1" | ||||
|   resolved "https://registry.yarnpkg.com/execa/-/execa-7.1.1.tgz#3eb3c83d239488e7b409d48e8813b76bb55c9c43" | ||||
|   integrity sha512-wH0eMf/UXckdUYnO21+HDztteVv05rq2GXksxT4fCGeHkBhw1DROXh40wcjMcRqDOWE7iPJ4n3M7e2+YFP+76Q== | ||||
|   version "7.2.0" | ||||
|   resolved "https://registry.yarnpkg.com/execa/-/execa-7.2.0.tgz#657e75ba984f42a70f38928cedc87d6f2d4fe4e9" | ||||
|   integrity sha512-UduyVP7TLB5IcAQl+OzLyLcS/l32W/GLg+AhHJ+ow40FOk2U3SAllPwR44v4vmdFwIWqpdwxxpQbF1n5ta9seA== | ||||
|   dependencies: | ||||
|     cross-spawn "^7.0.3" | ||||
|     get-stream "^6.0.1" | ||||
| @@ -968,13 +941,6 @@ get-symbol-description@^1.0.0: | ||||
|     call-bind "^1.0.2" | ||||
|     get-intrinsic "^1.1.1" | ||||
|  | ||||
| get-tsconfig@^4.5.0: | ||||
|   version "4.6.2" | ||||
|   resolved "https://registry.yarnpkg.com/get-tsconfig/-/get-tsconfig-4.6.2.tgz#831879a5e6c2aa24fe79b60340e2233a1e0f472e" | ||||
|   integrity sha512-E5XrT4CbbXcXWy+1jChlZmrmCwd5KGx502kDCXJJ7y898TtWW9FwoG5HfOLVRKmlmDGkWN2HM9Ho+/Y8F0sJDg== | ||||
|   dependencies: | ||||
|     resolve-pkg-maps "^1.0.0" | ||||
|  | ||||
| glob-parent@^5.1.2: | ||||
|   version "5.1.2" | ||||
|   resolved "https://registry.yarnpkg.com/glob-parent/-/glob-parent-5.1.2.tgz#869832c58034fe68a4093c17dc15e8340d8401c4" | ||||
| @@ -1027,17 +993,6 @@ globby@^11.1.0: | ||||
|     merge2 "^1.4.1" | ||||
|     slash "^3.0.0" | ||||
|  | ||||
| globby@^13.1.3: | ||||
|   version "13.2.2" | ||||
|   resolved "https://registry.yarnpkg.com/globby/-/globby-13.2.2.tgz#63b90b1bf68619c2135475cbd4e71e66aa090592" | ||||
|   integrity sha512-Y1zNGV+pzQdh7H39l9zgB4PJqjRNqydvdYCDG4HFXM4XuvSaQQlEc91IU1yALL8gUTDomgBAfz3XJdmUS+oo0w== | ||||
|   dependencies: | ||||
|     dir-glob "^3.0.1" | ||||
|     fast-glob "^3.3.0" | ||||
|     ignore "^5.2.4" | ||||
|     merge2 "^1.4.1" | ||||
|     slash "^4.0.0" | ||||
|  | ||||
| gopd@^1.0.1: | ||||
|   version "1.0.1" | ||||
|   resolved "https://registry.yarnpkg.com/gopd/-/gopd-1.0.1.tgz#29ff76de69dac7489b7c0918a5788e56477c332c" | ||||
| @@ -1045,11 +1000,6 @@ gopd@^1.0.1: | ||||
|   dependencies: | ||||
|     get-intrinsic "^1.1.3" | ||||
|  | ||||
| graceful-fs@^4.2.4: | ||||
|   version "4.2.11" | ||||
|   resolved "https://registry.yarnpkg.com/graceful-fs/-/graceful-fs-4.2.11.tgz#4183e4e8bf08bb6e05bbb2f7d2e0c8f712ca40e3" | ||||
|   integrity sha512-RbJ5/jmFcNNCcDV5o9eTnBLJ/HszWV0P73bc+Ff4nS/rJj+YaS6IGyiOL0VoBYX+l1Wrl3k63h/KrH+nhJ0XvQ== | ||||
|  | ||||
| graphemer@^1.4.0: | ||||
|   version "1.4.0" | ||||
|   resolved "https://registry.yarnpkg.com/graphemer/-/graphemer-1.4.0.tgz#fb2f1d55e0e3a1849aeffc90c4fa0dd53a0e66c6" | ||||
| @@ -1693,11 +1643,6 @@ prettier-linter-helpers@^1.0.0: | ||||
|   dependencies: | ||||
|     fast-diff "^1.1.2" | ||||
|  | ||||
| prettier@^2.8.8: | ||||
|   version "2.8.8" | ||||
|   resolved "https://registry.yarnpkg.com/prettier/-/prettier-2.8.8.tgz#e8c5d7e98a4305ffe3de2e1fc4aca1a71c28b1da" | ||||
|   integrity sha512-tdN8qQGvNjw4CHbY+XXk0JgCXn9QiF21a55rBe5LJAU+kDyC4WQn4+awm2Xfk2lQMk5fKup9XgzTZtGkjBdP9Q== | ||||
|  | ||||
| punycode@^2.1.0: | ||||
|   version "2.3.0" | ||||
|   resolved "https://registry.yarnpkg.com/punycode/-/punycode-2.3.0.tgz#f67fa67c94da8f4d0cfff981aee4118064199b8f" | ||||
| @@ -1753,11 +1698,6 @@ resolve-from@^4.0.0: | ||||
|   resolved "https://registry.yarnpkg.com/resolve-from/-/resolve-from-4.0.0.tgz#4abcd852ad32dd7baabfe9b40e00a36db5f392e6" | ||||
|   integrity sha512-pb/MYmXstAkysRFx8piNI1tGFNQIFA3vkE3Gq4EuA1dF6gHp/+vgZqsCGJapvy8N3Q+4o7FwvquPJcnZ7RYy4g== | ||||
|  | ||||
| resolve-pkg-maps@^1.0.0: | ||||
|   version "1.0.0" | ||||
|   resolved "https://registry.yarnpkg.com/resolve-pkg-maps/-/resolve-pkg-maps-1.0.0.tgz#616b3dc2c57056b5588c31cdf4b3d64db133720f" | ||||
|   integrity sha512-seS2Tj26TBVOC2NIc2rOe2y2ZO7efxITtLZcGSOnHHNOQ7CkiUBfw0Iw2ck6xkIhPwLhKNLS8BO+hEpngQlqzw== | ||||
|  | ||||
| resolve@^1.10.0, resolve@^1.22.1: | ||||
|   version "1.22.2" | ||||
|   resolved "https://registry.yarnpkg.com/resolve/-/resolve-1.22.2.tgz#0ed0943d4e301867955766c9f3e1ae6d01c6845f" | ||||
| @@ -1860,11 +1800,6 @@ slash@^3.0.0: | ||||
|   resolved "https://registry.yarnpkg.com/slash/-/slash-3.0.0.tgz#6539be870c165adbd5240220dbe361f1bc4d4634" | ||||
|   integrity sha512-g9Q1haeby36OSStwb4ntCGGGaKsaVSjQ68fBxoQcutl5fS1vuY18H3wSt3jFyFtrkx+Kz0V1G85A4MyAdDMi2Q== | ||||
|  | ||||
| slash@^4.0.0: | ||||
|   version "4.0.0" | ||||
|   resolved "https://registry.yarnpkg.com/slash/-/slash-4.0.0.tgz#2422372176c4c6c5addb5e2ada885af984b396a7" | ||||
|   integrity sha512-3dOsAHXXUkQTpOYcoAxLIorMTp4gIQr5IW3iVb7A7lFIp0VHhnynm9izx6TssdrIcVIESAlVjtnO2K8bg+Coew== | ||||
|  | ||||
| spdx-correct@^3.0.0: | ||||
|   version "3.2.0" | ||||
|   resolved "https://registry.yarnpkg.com/spdx-correct/-/spdx-correct-3.2.0.tgz#4f5ab0668f0059e34f9c00dce331784a12de4e9c" | ||||
| @@ -1979,11 +1914,6 @@ synckit@^0.8.5: | ||||
|     "@pkgr/utils" "^2.3.1" | ||||
|     tslib "^2.5.0" | ||||
|  | ||||
| tapable@^2.2.0: | ||||
|   version "2.2.1" | ||||
|   resolved "https://registry.yarnpkg.com/tapable/-/tapable-2.2.1.tgz#1967a73ef4060a82f12ab96af86d52fdb76eeca0" | ||||
|   integrity sha512-GNzQvQTOIP6RyTfE2Qxb8ZVlNmw0n88vp1szwWRimP02mnTsx3Wtn5qRdqY9w2XduFNUgvOwhNnQsjwCp+kqaQ== | ||||
|  | ||||
| text-table@^0.2.0: | ||||
|   version "0.2.0" | ||||
|   resolved "https://registry.yarnpkg.com/text-table/-/text-table-0.2.0.tgz#7f5ee823ae805207c00af2df4a84ec3fcfa570b4" | ||||
|   | ||||
		Reference in New Issue
	
	Block a user