diff options
author | MCMXC <16797721+mcmxcdev@users.noreply.github.com> | 2023-07-26 06:29:03 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-07-26 17:59:03 +0530 |
commit | 9b8f01716774a960073e944823ab727cc867a8f6 (patch) | |
tree | 732b83770baa78f5cf12776aaa33ce65bebfa418 /package.json | |
parent | Add Excalidraw recipe (#393) (diff) | |
download | ferdium-recipes-9b8f01716774a960073e944823ab727cc867a8f6.tar.gz ferdium-recipes-9b8f01716774a960073e944823ab727cc867a8f6.tar.zst ferdium-recipes-9b8f01716774a960073e944823ab727cc867a8f6.zip |
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 <vraravam@users.noreply.github.com>
Diffstat (limited to 'package.json')
-rw-r--r-- | package.json | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/package.json b/package.json index 0f7be5f..d310ebd 100644 --- a/package.json +++ b/package.json | |||
@@ -5,6 +5,11 @@ | |||
5 | "doc": "docs" | 5 | "doc": "docs" |
6 | }, | 6 | }, |
7 | "engines": { | 7 | "engines": { |
8 | "node": "18.15.0", | ||
9 | "pnpm": "8.6.2" | ||
10 | }, | ||
11 | "volta": { | ||
12 | "node": "18.15.0", | ||
8 | "pnpm": "8.6.2" | 13 | "pnpm": "8.6.2" |
9 | }, | 14 | }, |
10 | "scripts": { | 15 | "scripts": { |
@@ -13,7 +18,7 @@ | |||
13 | "package": "node scripts/package.js", | 18 | "package": "node scripts/package.js", |
14 | "create": "node scripts/create.js", | 19 | "create": "node scripts/create.js", |
15 | "lint": "eslint \"{recipes,scripts}/**/*.{js,jsx,ts,tsx}\"", | 20 | "lint": "eslint \"{recipes,scripts}/**/*.{js,jsx,ts,tsx}\"", |
16 | "lint:fix": "eslint --fix \"{recipes,scripts}/**/*.{js,jsx,ts,tsx}\"", | 21 | "lint:fix": "pnpm lint --fix", |
17 | "reformat-files": "prettier --ignore-path .eslintignore --write --require-pragma \"**/*.{js,json,scss}\"", | 22 | "reformat-files": "prettier --ignore-path .eslintignore --write --require-pragma \"**/*.{js,json,scss}\"", |
18 | "contributors": "all-contributors" | 23 | "contributors": "all-contributors" |
19 | }, | 24 | }, |
@@ -34,14 +39,14 @@ | |||
34 | "devDependencies": { | 39 | "devDependencies": { |
35 | "@types/targz": "1.0.1", | 40 | "@types/targz": "1.0.1", |
36 | "all-contributors-cli": "6.26.0", | 41 | "all-contributors-cli": "6.26.0", |
37 | "eslint": "8.39.0", | 42 | "eslint": "8.45.0", |
38 | "eslint-plugin-unicorn": "42.0.0", | 43 | "eslint-plugin-unicorn": "48.0.0", |
39 | "fs-extra": "11.1.1", | 44 | "fs-extra": "11.1.1", |
40 | "husky": "8.0.3", | 45 | "husky": "8.0.3", |
41 | "image-size": "1.0.2", | 46 | "image-size": "1.0.2", |
42 | "is-ci": "3.0.1", | 47 | "is-ci": "3.0.1", |
43 | "open": "8.4.1", | 48 | "open": "8.4.1", |
44 | "prettier": "2.8.8", | 49 | "prettier": "3.0.0", |
45 | "simple-git": "3.19.0", | 50 | "simple-git": "3.19.0", |
46 | "targz": "1.0.1" | 51 | "targz": "1.0.1" |
47 | } | 52 | } |