From 6df50c4a5f933b4bfa0726184c295e7c2a62ae0d Mon Sep 17 00:00:00 2001 From: Nathanaël Houn Date: Wed, 13 Jul 2022 20:41:40 +0200 Subject: ci: add lint and prettier to the pr checks (#127) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * ci: add lint and prettier to the pr checks * bad position of function in messenger ⇒ ci fail * Revert "bad position of function in messenger ⇒ ci fail" This reverts commit f8ea1aa674f479093c89f3e7dc6b0ce386003285. --- package.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'package.json') diff --git a/package.json b/package.json index d4cacd4..f243f82 100644 --- a/package.json +++ b/package.json @@ -12,7 +12,8 @@ "prepare": "pnpm dlx husky install", "package": "node scripts/package.js", "create": "node scripts/create.js", - "lint": "eslint . --fix --report-unused-disable-directives", + "lint": "eslint \"{recipes,scripts}/**/*.{js,jsx,ts,tsx}\" --quiet", + "lint:fix": "npm run lint -- --fix", "reformat-files": "prettier --ignore-path .eslintignore --write --require-pragma \"**/*.{js,json,scss}\"", "contributors": "all-contributors" }, -- cgit v1.2.3-54-g00ecf