Skip to content

Commit

Permalink
fix: upgrade example deps
Browse files Browse the repository at this point in the history
  • Loading branch information
mrkpatchaa committed Aug 14, 2024
1 parent 1b15e72 commit 042e995
Show file tree
Hide file tree
Showing 7 changed files with 1,332 additions and 1,039 deletions.
4 changes: 3 additions & 1 deletion example/App.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
/* eslint-disable react-native/no-inline-styles */
/* eslint-disable @typescript-eslint/no-explicit-any */

import * as React from 'react';

import {
Expand All @@ -12,7 +14,7 @@ import {
TouchableOpacity,
} from 'react-native';
import * as IconPack from 'phosphor-react-native';
const PhosphorLogo = require('./phosphor-mark-tight-yellow.png');
import PhosphorLogo from './phosphor-mark-tight-yellow.png';

// eslint-disable-next-line @typescript-eslint/no-unused-vars
const { IconContext, ...Icons } = IconPack;
Expand Down
12 changes: 12 additions & 0 deletions example/eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import globals from 'globals';
import pluginJs from '@eslint/js';
import tseslint from 'typescript-eslint';
import pluginReact from 'eslint-plugin-react';

export default [
{ files: ['**/*.{js,mjs,cjs,ts,jsx,tsx}'] },
{ languageOptions: { globals: globals.node } },
pluginJs.configs.recommended,
...tseslint.configs.recommended,
pluginReact.configs.flat.recommended,
];
1 change: 1 addition & 0 deletions example/metro.config.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// Learn more https://docs.expo.io/guides/customizing-metro
/* eslint-disable @typescript-eslint/no-require-imports */
const { getDefaultConfig } = require('expo/metro-config');
const path = require('path');

Expand Down
10 changes: 8 additions & 2 deletions example/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@
"start": "expo start",
"android": "expo start --android",
"ios": "expo start --ios",
"web": "expo start --web"
"web": "expo start --web",
"lint": "eslint ."
},
"dependencies": {
"expo": "^51.0.26",
Expand All @@ -18,8 +19,13 @@
},
"devDependencies": {
"@babel/core": "^7.24.0",
"@eslint/js": "^9.9.0",
"@types/react": "~18.2.79",
"typescript": "~5.3.3"
"eslint": "9.x",
"eslint-plugin-react": "^7.35.0",
"globals": "^15.9.0",
"typescript": "~5.3.3",
"typescript-eslint": "^8.0.1"
},
"private": true
}
Loading

0 comments on commit 042e995

Please sign in to comment.