diff options
author | MCMXC <16797721+mcmxcdev@users.noreply.github.com> | 2024-04-18 08:18:36 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-04-18 08:18:36 -0600 |
commit | c49723056acec489765acb54bae3889ac07f25af (patch) | |
tree | 58bea705d61a728b060e615ce514b8d4a7936c9e /package.json | |
parent | feat: hide all services workspace (#1713) (diff) | |
download | ferdium-app-c49723056acec489765acb54bae3889ac07f25af.tar.gz ferdium-app-c49723056acec489765acb54bae3889ac07f25af.tar.zst ferdium-app-c49723056acec489765acb54bae3889ac07f25af.zip |
refactor: bring down eslint warnings to zero (#1714)
- install `@eslint-react/eslint-plugin` dependency
- configure `@eslint-react/eslint-plugin` in eslint config
- modernize `lint` command in `package.json`
- disable or fix various reported lint issues
- fix `div` being nested in `p` for settings
- replace deprecated `event.keyCode` with `event.key`
- update isEscKeyPress method and unit tests which used deprecated `event.keyCode`
- allow `eslint` v8 as peer dependency for `@eslint-react/eslint-plugin`
Diffstat (limited to 'package.json')
-rw-r--r-- | package.json | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/package.json b/package.json index 988791a98..f49c636ae 100644 --- a/package.json +++ b/package.json | |||
@@ -32,7 +32,7 @@ | |||
32 | "test": "jest", | 32 | "test": "jest", |
33 | "test:watch": "jest --watch", | 33 | "test:watch": "jest --watch", |
34 | "typecheck": "tsc --noEmit", | 34 | "typecheck": "tsc --noEmit", |
35 | "lint": "eslint \"{src,test,scripts}/**/*.{js,jsx,mjs,ts,tsx}\" --quiet", | 35 | "lint": "eslint . --max-warnings 0", |
36 | "lint:fix": "pnpm lint --cache --fix", | 36 | "lint:fix": "pnpm lint --cache --fix", |
37 | "biome:check": "pnpm biome check .", | 37 | "biome:check": "pnpm biome check .", |
38 | "biome:check:fix": "pnpm biome:check --apply-unsafe", | 38 | "biome:check:fix": "pnpm biome:check --apply-unsafe", |
@@ -136,6 +136,7 @@ | |||
136 | "@commitlint/cli": "19.2.1", | 136 | "@commitlint/cli": "19.2.1", |
137 | "@commitlint/config-conventional": "19.1.0", | 137 | "@commitlint/config-conventional": "19.1.0", |
138 | "@electron/notarize": "2.3.0", | 138 | "@electron/notarize": "2.3.0", |
139 | "@eslint-react/eslint-plugin": "1.5.8", | ||
139 | "@formatjs/cli": "6.2.9", | 140 | "@formatjs/cli": "6.2.9", |
140 | "@jest/types": "29.6.3", | 141 | "@jest/types": "29.6.3", |
141 | "@types/auto-launch": "5.0.5", | 142 | "@types/auto-launch": "5.0.5", |
@@ -201,6 +202,7 @@ | |||
201 | "allowedVersions": { | 202 | "allowedVersions": { |
202 | "@typescript-eslint/parser": "^7.0.0", | 203 | "@typescript-eslint/parser": "^7.0.0", |
203 | "esbuild-sass-plugin>esbuild": "^0.16.7", | 204 | "esbuild-sass-plugin>esbuild": "^0.16.7", |
205 | "eslint": "^8.0.0", | ||
204 | "react-electron-web-view>react": "^18.0.0", | 206 | "react-electron-web-view>react": "^18.0.0", |
205 | "react-electron-web-view>react-dom": "^18.0.0", | 207 | "react-electron-web-view>react-dom": "^18.0.0", |
206 | "react-sortable-hoc>react": "^18.0.0", | 208 | "react-sortable-hoc>react": "^18.0.0", |