From 2819bcf9c8f51dad8da06ce4c71f09372fb274d3 Mon Sep 17 00:00:00 2001 From: Maciej Stosio Date: Tue, 21 May 2024 14:35:23 +0200 Subject: [PATCH] chore: update eslintrc, tsconfig and package.json --- app/.eslintrc.js | 10 +++++++++- app/index.ts | 4 ++-- app/package.json | 10 +--------- app/tsconfig.json | 7 +++++++ 4 files changed, 19 insertions(+), 12 deletions(-) create mode 100644 app/tsconfig.json diff --git a/app/.eslintrc.js b/app/.eslintrc.js index 15cca67849..cfc90f7103 100644 --- a/app/.eslintrc.js +++ b/app/.eslintrc.js @@ -1,4 +1,12 @@ -module.export = { +module.exports = { root: true, extends: '@react-native', + overrides: [ + { + files: ['*.tsx', '*.js'], + rules: { + 'react-native/no-inline-styles': 'off', + }, + }, + ], }; diff --git a/app/index.ts b/app/index.ts index f22feb838e..f1f2a246e9 100644 --- a/app/index.ts +++ b/app/index.ts @@ -1,3 +1,3 @@ -import App from './App' +import App from './App'; -export default App +export default App; diff --git a/app/package.json b/app/package.json index 4271e30224..21b6e258b1 100644 --- a/app/package.json +++ b/app/package.json @@ -3,16 +3,8 @@ "version": "0.0.1", "private": true, "scripts": { - "android": "npx react-native run-android", - "ios": "npx react-native run-ios", - "start": "npx react-native start", - "format": "prettier --write --list-different './src/**/*.{js,ts,tsx}'", "lint": "eslint --ext '.js,.ts,.tsx' --fix src && yarn check-types && yarn format", - "check-types": "tsc --noEmit", - "build-e2e-ios": "detox build --configuration ios.release", - "build-e2e-android": "detox build --configuration android.release", - "test-e2e-ios": "detox test --configuration ios.release --take-screenshots failing", - "test-e2e-android": "detox test --configuration android.release --take-screenshots failing" + "check-types": "tsc --noEmit" }, "dependencies": { "@react-navigation/bottom-tabs": "link:../react-navigation/packages/bottom-tabs/", diff --git a/app/tsconfig.json b/app/tsconfig.json new file mode 100644 index 0000000000..86b2f7baf8 --- /dev/null +++ b/app/tsconfig.json @@ -0,0 +1,7 @@ +{ + "extends": "@react-native/typescript-config/tsconfig.json", + "include": ["**/*.ts", "**/*.tsx", "**/*.js"], + "compilerOptions": { + "baseUrl": "." + } +}