diff options
author | MCMXC <16797721+mcmxcdev@users.noreply.github.com> | 2023-07-23 20:08:52 -0600 |
---|---|---|
committer | Vijay Aravamudhan <vraravam@users.noreply.github.com> | 2023-07-25 07:45:23 +0000 |
commit | 8c131073730ec684145c2cc8ee8d6b39bbe9278d (patch) | |
tree | 1129d432ae88475909f0e5d38960395b75364902 /package.json | |
parent | 6.4.1-nightly.11 [skip ci] (diff) | |
download | ferdium-app-8c131073730ec684145c2cc8ee8d6b39bbe9278d.tar.gz ferdium-app-8c131073730ec684145c2cc8ee8d6b39bbe9278d.tar.zst ferdium-app-8c131073730ec684145c2cc8ee8d6b39bbe9278d.zip |
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
Diffstat (limited to 'package.json')
-rw-r--r-- | package.json | 18 |
1 files changed, 11 insertions, 7 deletions
diff --git a/package.json b/package.json index 0e3b7f68d..59ab1748e 100644 --- a/package.json +++ b/package.json | |||
@@ -17,6 +17,10 @@ | |||
17 | "pnpm": "8.6.2" | 17 | "pnpm": "8.6.2" |
18 | }, | 18 | }, |
19 | "engine-strict": true, | 19 | "engine-strict": true, |
20 | "volta": { | ||
21 | "node": "18.15.0", | ||
22 | "pnpm": "8.6.2" | ||
23 | }, | ||
20 | "scripts": { | 24 | "scripts": { |
21 | "prepare": "is-ci || husky install", | 25 | "prepare": "is-ci || husky install", |
22 | "start": "electron ./build", | 26 | "start": "electron ./build", |
@@ -143,8 +147,8 @@ | |||
143 | "@types/tar": "6.1.5", | 147 | "@types/tar": "6.1.5", |
144 | "@types/uuid": "9.0.2", | 148 | "@types/uuid": "9.0.2", |
145 | "@types/validator": "13.7.17", | 149 | "@types/validator": "13.7.17", |
146 | "@typescript-eslint/eslint-plugin": "5.59.11", | 150 | "@typescript-eslint/eslint-plugin": "6.1.0", |
147 | "@typescript-eslint/parser": "5.59.11", | 151 | "@typescript-eslint/parser": "6.1.0", |
148 | "all-contributors-cli": "6.26.1", | 152 | "all-contributors-cli": "6.26.1", |
149 | "chalk": "5.3.0", | 153 | "chalk": "5.3.0", |
150 | "concurrently": "8.2.0", | 154 | "concurrently": "8.2.0", |
@@ -155,22 +159,22 @@ | |||
155 | "esbuild-plugin-copy": "2.1.1", | 159 | "esbuild-plugin-copy": "2.1.1", |
156 | "esbuild-runner": "2.2.2", | 160 | "esbuild-runner": "2.2.2", |
157 | "esbuild-sass-plugin": "2.10.0", | 161 | "esbuild-sass-plugin": "2.10.0", |
158 | "eslint": "8.39.0", | 162 | "eslint": "8.45.0", |
159 | "eslint-config-airbnb": "19.0.4", | 163 | "eslint-config-airbnb": "19.0.4", |
160 | "eslint-config-airbnb-typescript": "17.1.0", | 164 | "eslint-config-airbnb-typescript": "17.1.0", |
161 | "eslint-config-prettier": "8.8.0", | 165 | "eslint-config-prettier": "8.8.0", |
162 | "eslint-plugin-import": "2.27.5", | 166 | "eslint-plugin-import": "2.27.5", |
163 | "eslint-plugin-jest": "27.2.3", | 167 | "eslint-plugin-jest": "27.2.3", |
164 | "eslint-plugin-jsx-a11y": "6.7.1", | 168 | "eslint-plugin-jsx-a11y": "6.7.1", |
165 | "eslint-plugin-prettier": "4.2.1", | 169 | "eslint-plugin-prettier": "5.0.0", |
166 | "eslint-plugin-react": "7.32.2", | 170 | "eslint-plugin-react": "7.33.0", |
167 | "eslint-plugin-react-hooks": "4.6.0", | 171 | "eslint-plugin-react-hooks": "4.6.0", |
168 | "eslint-plugin-unicorn": "46.0.0", | 172 | "eslint-plugin-unicorn": "48.0.0", |
169 | "gulp-livereload": "4.0.2", | 173 | "gulp-livereload": "4.0.2", |
170 | "husky": "8.0.3", | 174 | "husky": "8.0.3", |
171 | "is-ci": "3.0.1", | 175 | "is-ci": "3.0.1", |
172 | "jest": "29.6.1", | 176 | "jest": "29.6.1", |
173 | "prettier": "2.8.8", | 177 | "prettier": "3.0.0", |
174 | "preval-build-info": "1.0.3", | 178 | "preval-build-info": "1.0.3", |
175 | "rimraf": "5.0.1", | 179 | "rimraf": "5.0.1", |
176 | "simple-git": "3.19.1", | 180 | "simple-git": "3.19.1", |