From d6009a516d056c6aedb691f9956285011e0b1d0d Mon Sep 17 00:00:00 2001 From: Demian Parkhomenko <95881717+DemianParkhomenko@users.noreply.github.com> Date: Fri, 8 Sep 2023 02:18:04 +0300 Subject: [PATCH] Fix precommit hook --- .github/dependabot.yml | 6 +++--- .prettierrc | 2 +- index.js | 3 +-- package.json | 7 +++---- 4 files changed, 8 insertions(+), 10 deletions(-) diff --git a/.github/dependabot.yml b/.github/dependabot.yml index e7d66d4..db9ba41 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -1,6 +1,6 @@ version: 2 updates: - - package-ecosystem: "npm" - directory: "/" + - package-ecosystem: 'npm' + directory: '/' schedule: - interval: "weekly" + interval: 'weekly' diff --git a/.prettierrc b/.prettierrc index eb0e50a..9d313aa 100644 --- a/.prettierrc +++ b/.prettierrc @@ -1,5 +1,5 @@ { - "semi": true, + "semi": false, "trailingComma": "es5", "singleQuote": true } diff --git a/index.js b/index.js index ab451c2..dedc968 100644 --- a/index.js +++ b/index.js @@ -1,2 +1 @@ -console.log('Learn Node.js with fun🤪'); -console.log('Dima the best'); +console.log('Learn Node.js with fun🤪') diff --git a/package.json b/package.json index 480ca1b..91a61f8 100644 --- a/package.json +++ b/package.json @@ -13,10 +13,9 @@ "prepare": "husky install" }, "lint-staged": { - "*.js": [ - "prettier --write", - "eslint" - ] + "*": "prettier --write --ignore-unknown", + "*.js": "eslint", + "*.ts": "eslint" }, "author": "", "license": "MIT",