diff --git a/.eslintrc.js b/.eslintrc.js new file mode 100644 index 0000000..16dadd1 --- /dev/null +++ b/.eslintrc.js @@ -0,0 +1,30 @@ +module.exports = { + env: { + browser: true, + es2021: true, + }, + extends: [ + "eslint:recommended", + "plugin:@typescript-eslint/recommended", + "plugin:react/recommended", + ], + overrides: [ + { + env: { + node: true, + }, + files: [".eslintrc.{js,cjs}"], + parserOptions: { + sourceType: "script", + }, + }, + ], + parser: "@typescript-eslint/parser", + parserOptions: { + ecmaVersion: "latest", + sourceType: "module", + }, + plugins: ["@typescript-eslint", "react"], + rules: {}, + ignorePatterns: ["*.d.ts"], +}; diff --git a/.gitignore b/.gitignore index d0637c2..4675c34 100644 --- a/.gitignore +++ b/.gitignore @@ -9,6 +9,12 @@ npm-debug.* *.mobileprovision *.orig.* web-build/ +*.log +*.app +*.tar.gz +*.ipa +*.apk +*.aab # macOS .DS_Store diff --git a/App.tsx b/App.tsx index c1c37d7..0a270af 100644 --- a/App.tsx +++ b/App.tsx @@ -1,15 +1,36 @@ +import React from "react"; import { StatusBar } from "expo-status-bar"; import { SafeAreaProvider } from "react-native-safe-area-context"; +import { Logs } from 'expo' +import { SafeAreaView, useSafeAreaInsets } from "react-native-safe-area-context"; -import AppView from "./AppView"; +import GameEngine from "./game/systems/GameEngine"; export default function App() { + Logs.enableExpoCliLogging() + return ( <>