From 7b445255fcf6f92ec4cd48507c5628b6c5caa31f Mon Sep 17 00:00:00 2001 From: roby Date: Mon, 8 Nov 2021 16:10:58 +0700 Subject: [PATCH] fix: typo di config anjir --- .eslintrc.json | 3 +- .husky/pre-commit | 1 + package.json | 4 +- pnpm-lock.yaml | 132 ++++++++++++++++++++++++++++++++++++++++++++++ utils/config.ts | 2 +- 5 files changed, 138 insertions(+), 4 deletions(-) diff --git a/.eslintrc.json b/.eslintrc.json index e77f47b..5d2fd2b 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -3,7 +3,6 @@ "next", "prettier", "next/core-web-vitals", - "eslint-config-prettier", "eslint-config-prettier" ], "rules": { @@ -11,6 +10,6 @@ "react/jsx-no-target-blank": "off", "import/no-anonymous-default-export": "off", "semi": ["warn", "always"], - "indent": ["error", 2] + "indent": ["warn", 2] } } diff --git a/.husky/pre-commit b/.husky/pre-commit index 2c3af06..13e1ab1 100755 --- a/.husky/pre-commit +++ b/.husky/pre-commit @@ -1,4 +1,5 @@ #!/bin/sh . "$(dirname "$0")/_/husky.sh" +npx pretty-quick --staged pnpm lint diff --git a/package.json b/package.json index ec085eb..765a9d2 100644 --- a/package.json +++ b/package.json @@ -7,7 +7,8 @@ "build": "next build", "start": "next start", "lint": "next lint", - "lint-staged": "npx lint-staged", + "lint:pretty": "npx pretty-quick --staged", + "lint:staged": "npx lint-staged", "prepare": "husky install" }, "dependencies": { @@ -28,6 +29,7 @@ "husky": "^7.0.4", "lint-staged": "^11.2.6", "prettier": "^2.4.1", + "pretty-quick": "^3.1.1", "typescript": "^4.4.4" }, "husky": { diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 2b73791..e6e036e 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -14,6 +14,7 @@ specifiers: next: 12.0.1 prettier: ^2.4.1 pretty: ^2.0.0 + pretty-quick: ^3.1.1 react: 17.0.2 react-dom: 17.0.2 typescript: ^4.4.4 @@ -36,6 +37,7 @@ devDependencies: husky: 7.0.4 lint-staged: 11.2.6 prettier: 2.4.1 + pretty-quick: 3.1.1_prettier@2.4.1 typescript: 4.4.4 packages: @@ -666,6 +668,13 @@ packages: resolution: { integrity: sha1-7ihweulOEdK4J7y+UnC86n8+ce4= } dev: true + /@types/minimatch/3.0.5: + resolution: + { + integrity: sha512-Klz949h02Gz2uZCMGwDUSDS1YBlTdDDgbWHi+81l29tQALUtvz4rAYi5uoVhE5Lagoq6DeqAUlbrHvW/mXDgdQ==, + } + dev: true + /@types/minimist/1.2.2: resolution: { @@ -975,6 +984,14 @@ packages: "@babel/runtime-corejs3": 7.16.0 dev: true + /array-differ/3.0.0: + resolution: + { + integrity: sha512-THtfYS6KtME/yIAhKjZ2ul7XI96lQGHRputJQHO80LAWQnuGP4iCIN8vdMRboGbIEYBwU33q8Tch1os2+X0kMg==, + } + engines: { node: ">=8" } + dev: true + /array-ify/1.0.0: resolution: { integrity: sha1-nlKHYrSpBmrRY6aWKjZEGOlibs4= } dev: true @@ -1030,6 +1047,14 @@ packages: engines: { node: ">=0.10.0" } dev: true + /arrify/2.0.1: + resolution: + { + integrity: sha512-3duEwti880xqi4eAMN8AyR4a0ByT90zoYdLlevfrvU43vb0YZwZVfxOgxWrLXXXpyugL0hNZc9G6BiB5B3nUug==, + } + engines: { node: ">=8" } + dev: true + /asn1.js/5.4.1: resolution: { @@ -1344,6 +1369,17 @@ packages: escape-string-regexp: 1.0.5 supports-color: 5.5.0 + /chalk/3.0.0: + resolution: + { + integrity: sha512-4D3B6Wf41KOYRFdszmDqMCGq5VV/uMAB273JILmO+3jAlh8X4qDtdtgCR3fxtbLEMzSx22QdhnDcJvu2u1fVwg==, + } + engines: { node: ">=8" } + dependencies: + ansi-styles: 4.3.0 + supports-color: 7.2.0 + dev: true + /chalk/4.0.0: resolution: { @@ -2057,6 +2093,15 @@ packages: iconv-lite: 0.6.3 dev: false + /end-of-stream/1.4.4: + resolution: + { + integrity: sha512-+uw1inIHVPQoaVuHzRyXd21icM+cnt4CzD5rW+NC1wjOUSTOs+Te7FOv7AhN7vS9x/oIyhLP5PR1H+phQAHu5Q==, + } + dependencies: + once: 1.4.0 + dev: true + /enquirer/2.3.6: resolution: { @@ -2492,6 +2537,24 @@ packages: safe-buffer: 5.2.1 dev: false + /execa/4.1.0: + resolution: + { + integrity: sha512-j5W0//W7f8UxAn8hXVnwG8tLwdiUy4FJLcSupCg6maBYZDpyBvTApK7KyuI4bKj8KOh1r2YH+6ucuYtJv1bTZA==, + } + engines: { node: ">=10" } + dependencies: + cross-spawn: 7.0.3 + get-stream: 5.2.0 + human-signals: 1.1.1 + is-stream: 2.0.1 + merge-stream: 2.0.0 + npm-run-path: 4.0.1 + onetime: 5.1.2 + signal-exit: 3.0.5 + strip-final-newline: 2.0.0 + dev: true + /execa/5.1.1: resolution: { @@ -2722,6 +2785,16 @@ packages: } dev: true + /get-stream/5.2.0: + resolution: + { + integrity: sha512-nBF+F1rAZVCu/p7rjzgA+Yb4lfYXrpl7a6VmJrU8wF9I1CKvP/QwPNZHnOlwbTkY6dvtFIzFMSyQXbLoTQPRpA==, + } + engines: { node: ">=8" } + dependencies: + pump: 3.0.0 + dev: true + /get-stream/6.0.1: resolution: { @@ -2971,6 +3044,14 @@ packages: resolution: { integrity: sha1-7AbBDgo0wPL68Zn3/X/Hj//QPHM= } dev: false + /human-signals/1.1.1: + resolution: + { + integrity: sha512-SEQu7vl8KjNL2eoGBLF3+wAjpsNfA9XMlXAYj/3EdaNfAlxKthD1xjEQfGOUhllCGGJVNY34bRr6lPINhNjyZw==, + } + engines: { node: ">=8.12.0" } + dev: true + /human-signals/2.1.0: resolution: { @@ -3790,6 +3871,14 @@ packages: integrity: sha512-FM9nNUYrRBAELZQT3xeZQ7fmMOBg6nWNmJKTcgsJeaLstP/UODVpGsr5OhXhhXg6f+qtJ8uiZ+PUxkDWcgIXLw==, } + /mri/1.2.0: + resolution: + { + integrity: sha512-tzzskb3bG8LvYGFF/mDTpq3jpI6Q9wc3LEmBaghu+DdCssd1FakN7Bc0hVNmEyGq1bq3RgfkCb3cmQLpNPOroA==, + } + engines: { node: ">=4" } + dev: true + /ms/2.0.0: resolution: { integrity: sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g= } @@ -3807,6 +3896,20 @@ packages: } dev: true + /multimatch/4.0.0: + resolution: + { + integrity: sha512-lDmx79y1z6i7RNx0ZGCPq1bzJ6ZoDDKbvh7jxr9SJcWLkShMzXrHbYVpTdnhNM5MXpDUxCQ4DgqVttVXlBgiBQ==, + } + engines: { node: ">=8" } + dependencies: + "@types/minimatch": 3.0.5 + array-differ: 3.0.0 + array-union: 2.1.0 + arrify: 2.0.1 + minimatch: 3.0.4 + dev: true + /nanoid/3.1.30: resolution: { @@ -4388,6 +4491,25 @@ packages: hasBin: true dev: true + /pretty-quick/3.1.1_prettier@2.4.1: + resolution: + { + integrity: sha512-ZYLGiMoV2jcaas3vTJrLvKAYsxDoXQBUn8OSTxkl67Fyov9lyXivJTl0+2WVh+y6EovGcw7Lm5ThYpH+Sh3XxQ==, + } + engines: { node: ">=10.13" } + hasBin: true + peerDependencies: + prettier: ">=2.0.0" + dependencies: + chalk: 3.0.0 + execa: 4.1.0 + find-up: 4.1.0 + ignore: 5.1.9 + mri: 1.2.0 + multimatch: 4.0.0 + prettier: 2.4.1 + dev: true + /pretty/2.0.0: resolution: { integrity: sha1-rbx5YLe7/iiaVX3F9zdhmiINBqU= } engines: { node: ">=0.10.0" } @@ -4443,6 +4565,16 @@ packages: safe-buffer: 5.2.1 dev: false + /pump/3.0.0: + resolution: + { + integrity: sha512-LwZy+p3SFs1Pytd/jYct4wpv49HiYCqd9Rlc5ZVdk0V+8Yzv6jR5Blk3TRmPL1ft69TxP0IMZGJ+WPFU2BFhww==, + } + dependencies: + end-of-stream: 1.4.4 + once: 1.4.0 + dev: true + /punycode/2.1.1: resolution: { diff --git a/utils/config.ts b/utils/config.ts index 846aa13..0df403a 100644 --- a/utils/config.ts +++ b/utils/config.ts @@ -2,7 +2,7 @@ const config: any = { BASE: "https://career.amikom.ac.id/", BASEAPI: process.env.NODE_ENV === "production" - ? "https://amikom-carrer-api.vercel.app/api" + ? "https://amikom-career-api.vercel.app/api" : "http://localhost:3000/api", };