diff --git a/oxlintrc.json b/oxlintrc.json index d2963352..a2b5e25b 100644 --- a/oxlintrc.json +++ b/oxlintrc.json @@ -1,8 +1,9 @@ { + "plugins": ["react"], "rules": { "react/react-in-jsx-scope": "off", - "react-hooks/rules-of-hooks": "error", - "react-hooks/exhaustive-deps": "warn" + "react/rules-of-hooks": "error", + "react/exhaustive-deps": "warn" }, "ignore": [ "android/**", @@ -12,4 +13,3 @@ "electron/**" ] } - diff --git a/package.json b/package.json index bf74082c..79080907 100644 --- a/package.json +++ b/package.json @@ -71,7 +71,7 @@ "electron:before:download-ipfs": "node electron/download-ipfs", "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'", - "lint": "oxlint --react-plugin src/**/*.{js,ts,tsx}", + "lint": "oxlint src/**/*.{js,ts,tsx}", "prettier": "oxfmt src/**/*.{js,ts,tsx} electron/**/*.{js,mjs}", "changelog": "conventional-changelog -p angular -i CHANGELOG.md -s -r 0", "android:build": "yarn build && npx cap sync android && npx cap run android",