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 @@
"editor.tabSize": 4,
"editor.formatOnSave": true,
"editor.codeActionsOnSave": {
"source.organizeImports": "explicit"
"source.organizeImports.biome": "explicit"
// "source.fixAll.biome": "explicit"
},
"npm.packageManager": "yarn",
"editor.defaultFormatter": "biomejs.biome",
......
......@@ -15,9 +15,21 @@
"assetBundlePatterns": ["**/*"],
"ios": {
"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": {
"softwareKeyboardLayoutMode": "pan",
"adaptiveIcon": {
"foregroundImage": "./assets/beasy_icon.png",
"backgroundColor": "#00875A"
......@@ -26,7 +38,7 @@
"android.permission.USE_BIOMETRIC",
"android.permission.USE_FINGERPRINT"
],
"package": "com.idrissouattara.beasymobile"
"package": "com.idrissouattara.barnoinpaymobile"
},
"web": {
"favicon": "./assets/favicon.png"
......@@ -35,13 +47,13 @@
[
"expo-local-authentication",
{
"faceIDPermission": "Allow B-Easy to use Face ID."
"faceIDPermission": "Allow BarnoinPay to use Face ID."
}
],
[
"expo-dev-launcher",
{
"launchMode": "most-recent"
"launchMode": "launcher"
}
],
[
......
module.exports = function(api) {
module.exports = function (api) {
api.cache(true);
return {
presets: ['babel-preset-expo'],
plugins: ['react-native-reanimated/plugin']
};
};
{
"$schema": "https://biomejs.dev/schemas/1.7.1/schema.json",
"organizeImports": {
"enabled": true
},
"$schema": "https://biomejs.dev/schemas/2.2.2/schema.json",
"assist": { "actions": { "source": { "organizeImports": "on" } } },
"formatter": {
"enabled": true,
"formatWithErrors": false,
"ignore": [],
"includes": ["**"],
"attributePosition": "auto",
"indentStyle": "tab",
"indentWidth": 4,
......@@ -19,10 +17,12 @@
"recommended": true,
"correctness": {
"noUnusedImports": "warn",
"noUnusedVariables": "warn"
"noUnusedVariables": "warn",
"useUniqueElementIds": "warn"
},
"complexity": {
"noExcessiveCognitiveComplexity": "error"
"noExcessiveCognitiveComplexity": "error",
"noUselessFragments": "off"
},
"style": {
"useConsistentArrayType": "warn",
......@@ -36,23 +36,49 @@
"useNamingConvention": {
"level": "error",
"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"
},
"suspicious": {
"noConsoleLog": "warn",
"useAwait": "warn"
"useAwait": "warn",
"noConsole": { "level": "warn", "options": { "allow": ["log"] } },
"noDuplicateElseIf": "warn",
"noAssignInExpressions": "off"
},
"nursery": {
"noDuplicateElseIf": "warn"
}
"nursery": {}
}
},
"overrides": [
{
"include": ["src/utils/*"],
"includes": [
"**/src/utils/**/*",
"**/src/api/**/*",
"**/types.ts",
"**/*.ts",
"**/hooks/**/*"
],
"linter": {
"rules": {
"style": {
......@@ -65,6 +91,16 @@
}
}
}
},
{
"includes": ["**/src/appStylingPrimitives/**/*"],
"linter": {
"rules": {
"style": {
"useNamingConvention": "off"
}
}
}
}
],
"vcs": {
......@@ -72,6 +108,16 @@
"clientKind": "git"
},
"files": {
"ignore": ["babel.config.js", "eas.json"]
"includes": [
"**",
"!**/*.config.js",
"!**/*.d.ts",
"!**/dist",
"!**/android",
"!**/ios",
"!**/node_modules",
"!**/.expo",
"!**/.vscode"
]
}
}
{
"cli": {
"version": ">= 12.0.0",
"appVersionSource": "remote"
},
"build": {
"development": {
"env": {
"EXPO_PUBLIC_API_URL": "http://192.168.1.223:8001"
},
"developmentClient": true,
"distribution": "internal",
"channel": "development"
},
"preview": {
"env": {
"EXPO_PUBLIC_API_URL": "http://192.168.1.223:8001"
},
"distribution": "internal",
"android": {
"buildType": "apk"
},
"channel": "preview"
},
"production": {
"autoIncrement": true,
"channel": "production"
}
},
"submit": {
"production": {}
}
"cli": {
"version": ">= 12.0.0",
"appVersionSource": "remote"
},
"build": {
"development": {
"developmentClient": true,
"distribution": "internal",
"channel": "development",
"android": {
"buildType": "apk"
},
"env": {
"EXPO_PUBLIC_API_URL": "http://51.77.152.180:8000"
}
},
"preview": {
"env": {
"EXPO_PUBLIC_API_URL": "http://51.77.152.180:8000"
},
"distribution": "internal",
"android": {
"buildType": "apk"
},
"channel": "preview"
},
"production": {
"autoIncrement": true,
"channel": "production"
}
},
"submit": {
"production": {}
}
}
{
"name": "beasy-mobile",
"name": "barnoinpay-mobile",
"version": "1.0.0",
"main": "node_modules/expo/AppEntry.js",
"scripts": {
......@@ -11,19 +11,26 @@
"format": "biome format --no-errors-on-unmatched --write .",
"lint": "biome lint --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": {
"@gorhom/bottom-sheet": "^5",
"@react-native-async-storage/async-storage": "2.1.2",
"@react-navigation/bottom-tabs": "^7.0.0-alpha.22",
"@react-navigation/native": "^7.0.0-alpha.18",
"@react-navigation/native-stack": "^7.0.0-alpha.20",
"@react-navigation/bottom-tabs": "^7.4.6",
"@react-navigation/native": "^7.1.17",
"@react-navigation/native-stack": "^7.3.25",
"@reduxjs/toolkit": "^2.8.2",
"@shopify/flash-list": "1.7.6",
"@shopify/restyle": "^2.4.4",
"@tanstack/react-query": "^5.35.1",
"axios": "^1.6.8",
"expo": "53.0.22",
"expo-build-properties": "~0.14.8",
"expo-checkbox": "~4.1.4",
"expo-contacts": "~14.2.5",
"expo-dev-client": "~5.2.4",
"expo-image": "~2.4.0",
"expo-local-authentication": "~16.0.5",
"expo-splash-screen": "~0.30.10",
"expo-status-bar": "~2.2.3",
......@@ -32,28 +39,35 @@
"moment": "^2.30.1",
"moti": "^0.29.0",
"react": "19.0.0",
"react-modal-promise": "^1.0.2",
"react-native": "0.79.5",
"react-native-base64": "^0.2.1",
"react-native-date-picker": "5.0.12",
"react-native-gesture-handler": "~2.24.0",
"react-native-keyboard-aware-scroll-view": "^0.9.5",
"react-native-logs": "^5.1.0",
"react-native-qrcode-svg": "^6.3.1",
"react-native-keyboard-controller": "^1.18.5",
"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-safe-area-context": "5.4.0",
"react-native-screens": "~4.11.1",
"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": {
"@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-native-base64": "^0.2.2",
"@types/react-native-vector-icons": "^6.4.18",
"conventional-changelog": "^7.1.1",
"husky": "^9.0.11",
"lint-staged": "^15.2.2",
"prop-types": "^15.8.1",
"react-native-svg-transformer": "^1.5.0",
"typescript": "~5.8.3"
},
"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