Skip to content

Commit

Permalink
chore: update eslintrc, tsconfig and package.json
Browse files Browse the repository at this point in the history
  • Loading branch information
maciekstosio committed May 21, 2024
1 parent bf61d25 commit 52bc127
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 12 deletions.
10 changes: 9 additions & 1 deletion app/.eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,12 @@
module.export = {
module.exports = {
root: true,
extends: '@react-native',
overrides: [
{
files: ['*.tsx', '*.js'],
rules: {
'react-native/no-inline-styles': 'off',
},
},
],
};
4 changes: 2 additions & 2 deletions app/index.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
import App from './App'
import App from './App';

export default App
export default App;
10 changes: 1 addition & 9 deletions app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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/",
Expand Down
7 changes: 7 additions & 0 deletions app/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"extends": "@react-native/typescript-config/tsconfig.json",
"include": ["**/*.ts", "**/*.tsx", "**/*.js"],
"compilerOptions": {
"baseUrl": "."
}
}

0 comments on commit 52bc127

Please sign in to comment.