fix(lint): use correct oxlint rule names and enable react plugin in config

This commit is contained in:
plebeius
2025-12-26 17:03:26 +01:00
parent 10a266ceab
commit 9fd41f2f9f
2 changed files with 4 additions and 4 deletions
+3 -3
View File
@@ -1,8 +1,9 @@
{ {
"plugins": ["react"],
"rules": { "rules": {
"react/react-in-jsx-scope": "off", "react/react-in-jsx-scope": "off",
"react-hooks/rules-of-hooks": "error", "react/rules-of-hooks": "error",
"react-hooks/exhaustive-deps": "warn" "react/exhaustive-deps": "warn"
}, },
"ignore": [ "ignore": [
"android/**", "android/**",
@@ -12,4 +13,3 @@
"electron/**" "electron/**"
] ]
} }
+1 -1
View File
@@ -71,7 +71,7 @@
"electron:before:download-ipfs": "node electron/download-ipfs", "electron:before:download-ipfs": "node electron/download-ipfs",
"electron:before:delete-data": "rimraf .plebbit", "electron:before:delete-data": "rimraf .plebbit",
"android:build:icons": "cordova-res android --skip-config --copy --resources /tmp/plebbit-react-android-icons --icon-source ./android/icons/icon.png --splash-source ./android/icons/splash.png --icon-foreground-source ./android/icons/icon-foreground.png --icon-background-source '#ffffee'", "android:build:icons": "cordova-res android --skip-config --copy --resources /tmp/plebbit-react-android-icons --icon-source ./android/icons/icon.png --splash-source ./android/icons/splash.png --icon-foreground-source ./android/icons/icon-foreground.png --icon-background-source '#ffffee'",
"lint": "oxlint --react-plugin src/**/*.{js,ts,tsx}", "lint": "oxlint src/**/*.{js,ts,tsx}",
"prettier": "oxfmt src/**/*.{js,ts,tsx} electron/**/*.{js,mjs}", "prettier": "oxfmt src/**/*.{js,ts,tsx} electron/**/*.{js,mjs}",
"changelog": "conventional-changelog -p angular -i CHANGELOG.md -s -r 0", "changelog": "conventional-changelog -p angular -i CHANGELOG.md -s -r 0",
"android:build": "yarn build && npx cap sync android && npx cap run android", "android:build": "yarn build && npx cap sync android && npx cap run android",