mirror of
https://github.com/bitsocialnet/5chan.git
synced 2026-08-03 07:41:04 +02:00
fix(lint): use correct oxlint rule names and enable react plugin in config
This commit is contained in:
+3
-3
@@ -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
@@ -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",
|
||||||
|
|||||||
Reference in New Issue
Block a user