Commit af54ac7f by G

chore: update configs for biome, lintstagedrc, vscode and expo. bump packages in…

chore: update configs for biome, lintstagedrc, vscode and expo. bump packages in package.json to match the public version.
parent 41b04c8b
{ {
"*": ["biome check --apply --no-errors-on-unmatched --files-ignore-unknown=true"] "*": ["biome check --write --no-errors-on-unmatched"]
} }
...@@ -2,7 +2,8 @@ ...@@ -2,7 +2,8 @@
"editor.tabSize": 4, "editor.tabSize": 4,
"editor.formatOnSave": true, "editor.formatOnSave": true,
"editor.codeActionsOnSave": { "editor.codeActionsOnSave": {
"source.organizeImports": "explicit" "source.organizeImports.biome": "explicit"
// "source.fixAll.biome": "explicit"
}, },
"npm.packageManager": "yarn", "npm.packageManager": "yarn",
"editor.defaultFormatter": "biomejs.biome", "editor.defaultFormatter": "biomejs.biome",
......
...@@ -15,9 +15,21 @@ ...@@ -15,9 +15,21 @@
"assetBundlePatterns": ["**/*"], "assetBundlePatterns": ["**/*"],
"ios": { "ios": {
"supportsTablet": true, "supportsTablet": true,
"bundleIdentifier": "com.idrissouattara.beasy-mobile" "bundleIdentifier": "com.idrissouattara.barnoinpay-mobile",
"infoPlist": {
"ITSAppUsesNonExemptEncryption": false,
"NSAppTransportSecurity": {
"NSExceptionDomains": {
"51.77.152.180": {
"NSIncludesSubdomains": true,
"NSExceptionAllowsInsecureHTTPLoads": true
}
}
}
}
}, },
"android": { "android": {
"softwareKeyboardLayoutMode": "pan",
"adaptiveIcon": { "adaptiveIcon": {
"foregroundImage": "./assets/beasy_icon.png", "foregroundImage": "./assets/beasy_icon.png",
"backgroundColor": "#00875A" "backgroundColor": "#00875A"
...@@ -26,7 +38,7 @@ ...@@ -26,7 +38,7 @@
"android.permission.USE_BIOMETRIC", "android.permission.USE_BIOMETRIC",
"android.permission.USE_FINGERPRINT" "android.permission.USE_FINGERPRINT"
], ],
"package": "com.idrissouattara.beasymobile" "package": "com.idrissouattara.barnoinpaymobile"
}, },
"web": { "web": {
"favicon": "./assets/favicon.png" "favicon": "./assets/favicon.png"
...@@ -35,13 +47,13 @@ ...@@ -35,13 +47,13 @@
[ [
"expo-local-authentication", "expo-local-authentication",
{ {
"faceIDPermission": "Allow B-Easy to use Face ID." "faceIDPermission": "Allow BarnoinPay to use Face ID."
} }
], ],
[ [
"expo-dev-launcher", "expo-dev-launcher",
{ {
"launchMode": "most-recent" "launchMode": "launcher"
} }
], ],
[ [
......
module.exports = function(api) { module.exports = function (api) {
api.cache(true); api.cache(true);
return { return {
presets: ['babel-preset-expo'], presets: ['babel-preset-expo'],
plugins: ['react-native-reanimated/plugin']
}; };
}; };
{ {
"$schema": "https://biomejs.dev/schemas/1.7.1/schema.json", "$schema": "https://biomejs.dev/schemas/2.2.2/schema.json",
"organizeImports": { "assist": { "actions": { "source": { "organizeImports": "on" } } },
"enabled": true
},
"formatter": { "formatter": {
"enabled": true, "enabled": true,
"formatWithErrors": false, "formatWithErrors": false,
"ignore": [], "includes": ["**"],
"attributePosition": "auto", "attributePosition": "auto",
"indentStyle": "tab", "indentStyle": "tab",
"indentWidth": 4, "indentWidth": 4,
...@@ -19,10 +17,12 @@ ...@@ -19,10 +17,12 @@
"recommended": true, "recommended": true,
"correctness": { "correctness": {
"noUnusedImports": "warn", "noUnusedImports": "warn",
"noUnusedVariables": "warn" "noUnusedVariables": "warn",
"useUniqueElementIds": "warn"
}, },
"complexity": { "complexity": {
"noExcessiveCognitiveComplexity": "error" "noExcessiveCognitiveComplexity": "error",
"noUselessFragments": "off"
}, },
"style": { "style": {
"useConsistentArrayType": "warn", "useConsistentArrayType": "warn",
...@@ -36,23 +36,49 @@ ...@@ -36,23 +36,49 @@
"useNamingConvention": { "useNamingConvention": {
"level": "error", "level": "error",
"options": { "options": {
"requireAscii": true "requireAscii": true,
"conventions": [
{
"selector": {
"kind": "objectLiteralProperty"
},
"formats": ["snake_case", "camelCase"]
},
{
"selector": {
"kind": "typeMember"
},
"formats": ["snake_case", "camelCase", "PascalCase"]
},
{
"selector": {
"kind": "typeMember"
},
"formats": ["snake_case", "camelCase", "PascalCase"]
}
]
} }
}, },
"useShorthandAssign": "warn" "useShorthandAssign": "warn"
}, },
"suspicious": { "suspicious": {
"noConsoleLog": "warn", "useAwait": "warn",
"useAwait": "warn" "noConsole": { "level": "warn", "options": { "allow": ["log"] } },
"noDuplicateElseIf": "warn",
"noAssignInExpressions": "off"
}, },
"nursery": { "nursery": {}
"noDuplicateElseIf": "warn"
}
} }
}, },
"overrides": [ "overrides": [
{ {
"include": ["src/utils/*"], "includes": [
"**/src/utils/**/*",
"**/src/api/**/*",
"**/types.ts",
"**/*.ts",
"**/hooks/**/*"
],
"linter": { "linter": {
"rules": { "rules": {
"style": { "style": {
...@@ -65,6 +91,16 @@ ...@@ -65,6 +91,16 @@
} }
} }
} }
},
{
"includes": ["**/src/appStylingPrimitives/**/*"],
"linter": {
"rules": {
"style": {
"useNamingConvention": "off"
}
}
}
} }
], ],
"vcs": { "vcs": {
...@@ -72,6 +108,16 @@ ...@@ -72,6 +108,16 @@
"clientKind": "git" "clientKind": "git"
}, },
"files": { "files": {
"ignore": ["babel.config.js", "eas.json"] "includes": [
"**",
"!**/*.config.js",
"!**/*.d.ts",
"!**/dist",
"!**/android",
"!**/ios",
"!**/node_modules",
"!**/.expo",
"!**/.vscode"
]
} }
} }
{ {
"cli": { "cli": {
"version": ">= 12.0.0", "version": ">= 12.0.0",
"appVersionSource": "remote" "appVersionSource": "remote"
}, },
"build": { "build": {
"development": { "development": {
"env": { "developmentClient": true,
"EXPO_PUBLIC_API_URL": "http://192.168.1.223:8001" "distribution": "internal",
}, "channel": "development",
"developmentClient": true, "android": {
"distribution": "internal", "buildType": "apk"
"channel": "development" },
}, "env": {
"preview": { "EXPO_PUBLIC_API_URL": "http://51.77.152.180:8000"
"env": { }
"EXPO_PUBLIC_API_URL": "http://192.168.1.223:8001" },
}, "preview": {
"distribution": "internal", "env": {
"android": { "EXPO_PUBLIC_API_URL": "http://51.77.152.180:8000"
"buildType": "apk" },
}, "distribution": "internal",
"channel": "preview" "android": {
}, "buildType": "apk"
"production": { },
"autoIncrement": true, "channel": "preview"
"channel": "production" },
} "production": {
}, "autoIncrement": true,
"submit": { "channel": "production"
"production": {} }
} },
"submit": {
"production": {}
}
} }
{ {
"name": "beasy-mobile", "name": "barnoinpay-mobile",
"version": "1.0.0", "version": "1.0.0",
"main": "node_modules/expo/AppEntry.js", "main": "node_modules/expo/AppEntry.js",
"scripts": { "scripts": {
...@@ -11,19 +11,26 @@ ...@@ -11,19 +11,26 @@
"format": "biome format --no-errors-on-unmatched --write .", "format": "biome format --no-errors-on-unmatched --write .",
"lint": "biome lint --no-errors-on-unmatched --apply .", "lint": "biome lint --no-errors-on-unmatched --apply .",
"biome-check": "biome check --no-errors-on-unmatched --apply .", "biome-check": "biome check --no-errors-on-unmatched --apply .",
"prepare": "husky" "prepare": "husky",
"version": "conventional-changelog && git add CHANGELOG.md"
}, },
"dependencies": { "dependencies": {
"@gorhom/bottom-sheet": "^5",
"@react-native-async-storage/async-storage": "2.1.2", "@react-native-async-storage/async-storage": "2.1.2",
"@react-navigation/bottom-tabs": "^7.0.0-alpha.22", "@react-navigation/bottom-tabs": "^7.4.6",
"@react-navigation/native": "^7.0.0-alpha.18", "@react-navigation/native": "^7.1.17",
"@react-navigation/native-stack": "^7.0.0-alpha.20", "@react-navigation/native-stack": "^7.3.25",
"@reduxjs/toolkit": "^2.8.2",
"@shopify/flash-list": "1.7.6",
"@shopify/restyle": "^2.4.4", "@shopify/restyle": "^2.4.4",
"@tanstack/react-query": "^5.35.1", "@tanstack/react-query": "^5.35.1",
"axios": "^1.6.8", "axios": "^1.6.8",
"expo": "53.0.22", "expo": "53.0.22",
"expo-build-properties": "~0.14.8", "expo-build-properties": "~0.14.8",
"expo-checkbox": "~4.1.4",
"expo-contacts": "~14.2.5",
"expo-dev-client": "~5.2.4", "expo-dev-client": "~5.2.4",
"expo-image": "~2.4.0",
"expo-local-authentication": "~16.0.5", "expo-local-authentication": "~16.0.5",
"expo-splash-screen": "~0.30.10", "expo-splash-screen": "~0.30.10",
"expo-status-bar": "~2.2.3", "expo-status-bar": "~2.2.3",
...@@ -32,28 +39,35 @@ ...@@ -32,28 +39,35 @@
"moment": "^2.30.1", "moment": "^2.30.1",
"moti": "^0.29.0", "moti": "^0.29.0",
"react": "19.0.0", "react": "19.0.0",
"react-modal-promise": "^1.0.2",
"react-native": "0.79.5", "react-native": "0.79.5",
"react-native-base64": "^0.2.1", "react-native-base64": "^0.2.1",
"react-native-date-picker": "5.0.12",
"react-native-gesture-handler": "~2.24.0", "react-native-gesture-handler": "~2.24.0",
"react-native-keyboard-aware-scroll-view": "^0.9.5", "react-native-keyboard-aware-scroll-view": "^0.9.5",
"react-native-logs": "^5.1.0", "react-native-keyboard-controller": "^1.18.5",
"react-native-qrcode-svg": "^6.3.1", "react-native-logs": "^5.3.0",
"react-native-mask-input": "^1.2.3",
"react-native-mmkv": "^3.3.0",
"react-native-qrcode-svg": "^6.3.15",
"react-native-reanimated": "~3.17.4", "react-native-reanimated": "~3.17.4",
"react-native-safe-area-context": "5.4.0", "react-native-safe-area-context": "5.4.0",
"react-native-screens": "~4.11.1", "react-native-screens": "~4.11.1",
"react-native-svg": "15.11.2", "react-native-svg": "15.11.2",
"react-native-vector-icons": "^10.1.0" "react-native-vector-icons": "^10.1.0",
"react-redux": "^9.2.0"
}, },
"devDependencies": { "devDependencies": {
"@babel/core": "^7.20.0", "@babel/core": "^7.20.0",
"@biomejs/biome": "1.7.1", "@biomejs/biome": "^2.2.0",
"@react-native-community/cli": "^15.1.2",
"@types/react": "~19.0.10", "@types/react": "~19.0.10",
"@types/react-native-base64": "^0.2.2", "@types/react-native-base64": "^0.2.2",
"@types/react-native-vector-icons": "^6.4.18", "@types/react-native-vector-icons": "^6.4.18",
"conventional-changelog": "^7.1.1",
"husky": "^9.0.11", "husky": "^9.0.11",
"lint-staged": "^15.2.2", "lint-staged": "^15.2.2",
"prop-types": "^15.8.1", "prop-types": "^15.8.1",
"react-native-svg-transformer": "^1.5.0",
"typescript": "~5.8.3" "typescript": "~5.8.3"
}, },
"private": true "private": true
......
This source diff could not be displayed because it is too large. You can view the blob instead.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment