From 9b8f01716774a960073e944823ab727cc867a8f6 Mon Sep 17 00:00:00 2001 From: MCMXC <16797721+mcmxcdev@users.noreply.github.com> Date: Wed, 26 Jul 2023 06:29:03 -0600 Subject: chore: improve lint setup (#397) - update eslint config to closely mirror the ones from ferdium-app - add .eslintignore - opt in to eslint `reportUnusedDisableDirectives` config option - remove `trailingComma: all` from `prettier` config which is default in `prettier` v3 - autofix or disable a lot of lint issues throughout codebase - add `volta` configuration to `package.json` to autoload correct `node` and `pnpm` versions - upgrade all `eslint` and `prettier` related dependencies to latest - update lint:fix npm script - reformat touched files with prettier - bumped up minor version for all recipes that have changes - introduced injection of 'service.css' where it was missing in many recipes --------- Co-authored-by: Vijay A --- package.json | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) (limited to 'package.json') diff --git a/package.json b/package.json index 0f7be5f..d310ebd 100644 --- a/package.json +++ b/package.json @@ -5,6 +5,11 @@ "doc": "docs" }, "engines": { + "node": "18.15.0", + "pnpm": "8.6.2" + }, + "volta": { + "node": "18.15.0", "pnpm": "8.6.2" }, "scripts": { @@ -13,7 +18,7 @@ "package": "node scripts/package.js", "create": "node scripts/create.js", "lint": "eslint \"{recipes,scripts}/**/*.{js,jsx,ts,tsx}\"", - "lint:fix": "eslint --fix \"{recipes,scripts}/**/*.{js,jsx,ts,tsx}\"", + "lint:fix": "pnpm lint --fix", "reformat-files": "prettier --ignore-path .eslintignore --write --require-pragma \"**/*.{js,json,scss}\"", "contributors": "all-contributors" }, @@ -34,14 +39,14 @@ "devDependencies": { "@types/targz": "1.0.1", "all-contributors-cli": "6.26.0", - "eslint": "8.39.0", - "eslint-plugin-unicorn": "42.0.0", + "eslint": "8.45.0", + "eslint-plugin-unicorn": "48.0.0", "fs-extra": "11.1.1", "husky": "8.0.3", "image-size": "1.0.2", "is-ci": "3.0.1", "open": "8.4.1", - "prettier": "2.8.8", + "prettier": "3.0.0", "simple-git": "3.19.0", "targz": "1.0.1" } -- cgit v1.2.3-54-g00ecf