diff --git a/.eslintrc.js b/.eslintrc.js new file mode 100644 index 0000000..9ec0347 --- /dev/null +++ b/.eslintrc.js @@ -0,0 +1,7 @@ +module.exports = { + extends: ["expo", "prettier"], + plugins: ["prettier"], + rules: { + "prettier/prettier": "error", + }, +}; diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 0000000..09518e6 --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,12 @@ +{ + "editor.formatOnSave": true, + "[typescriptreact]": { + "editor.defaultFormatter": "esbenp.prettier-vscode" + }, + "[typescript]": { + "editor.defaultFormatter": "esbenp.prettier-vscode" + }, + "editor.codeActionsOnSave": { + "source.fixAll.eslint": "explicit" + } +} diff --git a/app/(tabs)/index.tsx b/app/(tabs)/index.tsx index 0085f3a..c6cbb21 100644 --- a/app/(tabs)/index.tsx +++ b/app/(tabs)/index.tsx @@ -5,9 +5,7 @@ import { SafeAreaView } from "react-native-safe-area-context"; export default function HomeScreen() { return ( - - Open up App folder to start working on your app! - + Uber Clone diff --git a/bun.lockb b/bun.lockb index 437dd4a..1316284 100755 Binary files a/bun.lockb and b/bun.lockb differ diff --git a/package.json b/package.json index 8975b73..0cb4a96 100644 --- a/package.json +++ b/package.json @@ -17,6 +17,8 @@ "dependencies": { "@expo/vector-icons": "^14.0.2", "@react-navigation/native": "^6.0.2", + "eslint-config-prettier": "^9.1.0", + "eslint-plugin-prettier": "^5.2.1", "expo": "~51.0.28", "expo-constants": "~16.0.2", "expo-font": "~12.0.9", @@ -27,6 +29,7 @@ "expo-system-ui": "~3.0.7", "expo-web-browser": "~13.0.3", "nativewind": "^2.0.11", + "prettier": "^3.3.3", "react": "18.2.0", "react-dom": "18.2.0", "react-native": "0.74.5", @@ -41,6 +44,8 @@ "@types/jest": "^29.5.12", "@types/react": "~18.2.45", "@types/react-test-renderer": "^18.0.7", + "eslint": "^8.57.0", + "eslint-config-expo": "^7.1.2", "jest": "^29.2.1", "jest-expo": "~51.0.3", "react-test-renderer": "18.2.0",