From f9e2d9926e4dff14df0f13858a9c695e2118a94e Mon Sep 17 00:00:00 2001 From: Vijay Aravamudhan Date: Wed, 26 Jul 2023 16:35:49 +0000 Subject: Improve lint setup (#400) * Use strict configuration of node/npm/pnpm * When generating a new recipe, string replace should handle all placeholders in a single file --- package.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'package.json') diff --git a/package.json b/package.json index d310ebd..ce33b99 100644 --- a/package.json +++ b/package.json @@ -12,6 +12,7 @@ "node": "18.15.0", "pnpm": "8.6.2" }, + "engine-strict": true, "scripts": { "preinstall": "npx only-allow pnpm", "prepare": "is-ci || husky install", @@ -19,7 +20,7 @@ "create": "node scripts/create.js", "lint": "eslint \"{recipes,scripts}/**/*.{js,jsx,ts,tsx}\"", "lint:fix": "pnpm lint --fix", - "reformat-files": "prettier --ignore-path .eslintignore --write --require-pragma \"**/*.{js,json,scss}\"", + "reformat-files": "prettier --ignore-path .eslintignore --write \"**/*.{js,json,scss}\"", "contributors": "all-contributors" }, "repository": { -- cgit v1.2.3-54-g00ecf