From 8c131073730ec684145c2cc8ee8d6b39bbe9278d Mon Sep 17 00:00:00 2001 From: MCMXC <16797721+mcmxcdev@users.noreply.github.com> Date: Sun, 23 Jul 2023 20:08:52 -0600 Subject: chore: improve lint setup - update eslint config - merged eslint rules for JS and TS to avoid duplicates - extended stricter lint ruleset from typescript-eslint - corrected wrong setup for certain eslint rulesets - opt in to reportUnusedDisableDirectives config option - fix or disable a lot of lint issues throughout codebase - remove trailingComma: all from prettier config which is default in prettier v3 - add volta configuration to package.json to autoload correct node and pnpm versions - upgrade all eslint and prettier related dependencies to latest - remove config options from settings.json which are default anyways - remove config options from settings.json which are outdated/unknown - set up prettier as default formatter in settings.json --- package.json | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) (limited to 'package.json') diff --git a/package.json b/package.json index 0e3b7f68d..59ab1748e 100644 --- a/package.json +++ b/package.json @@ -17,6 +17,10 @@ "pnpm": "8.6.2" }, "engine-strict": true, + "volta": { + "node": "18.15.0", + "pnpm": "8.6.2" + }, "scripts": { "prepare": "is-ci || husky install", "start": "electron ./build", @@ -143,8 +147,8 @@ "@types/tar": "6.1.5", "@types/uuid": "9.0.2", "@types/validator": "13.7.17", - "@typescript-eslint/eslint-plugin": "5.59.11", - "@typescript-eslint/parser": "5.59.11", + "@typescript-eslint/eslint-plugin": "6.1.0", + "@typescript-eslint/parser": "6.1.0", "all-contributors-cli": "6.26.1", "chalk": "5.3.0", "concurrently": "8.2.0", @@ -155,22 +159,22 @@ "esbuild-plugin-copy": "2.1.1", "esbuild-runner": "2.2.2", "esbuild-sass-plugin": "2.10.0", - "eslint": "8.39.0", + "eslint": "8.45.0", "eslint-config-airbnb": "19.0.4", "eslint-config-airbnb-typescript": "17.1.0", "eslint-config-prettier": "8.8.0", "eslint-plugin-import": "2.27.5", "eslint-plugin-jest": "27.2.3", "eslint-plugin-jsx-a11y": "6.7.1", - "eslint-plugin-prettier": "4.2.1", - "eslint-plugin-react": "7.32.2", + "eslint-plugin-prettier": "5.0.0", + "eslint-plugin-react": "7.33.0", "eslint-plugin-react-hooks": "4.6.0", - "eslint-plugin-unicorn": "46.0.0", + "eslint-plugin-unicorn": "48.0.0", "gulp-livereload": "4.0.2", "husky": "8.0.3", "is-ci": "3.0.1", "jest": "29.6.1", - "prettier": "2.8.8", + "prettier": "3.0.0", "preval-build-info": "1.0.3", "rimraf": "5.0.1", "simple-git": "3.19.1", -- cgit v1.2.3-70-g09d2