Skip to content

Commit

Permalink
introduce required changes to satisfy new eslint/prettier config
Browse files Browse the repository at this point in the history
  • Loading branch information
robertKozik committed Jan 15, 2024
1 parent d968cad commit 014a4ad
Show file tree
Hide file tree
Showing 17 changed files with 693 additions and 734 deletions.
2 changes: 1 addition & 1 deletion .watchmanconfig
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{}
{}
52 changes: 25 additions & 27 deletions WebExample/app.json
Original file line number Diff line number Diff line change
@@ -1,30 +1,28 @@
{
"expo": {
"name": "WebExample",
"slug": "WebExample",
"version": "1.0.0",
"orientation": "portrait",
"icon": "./assets/icon.png",
"userInterfaceStyle": "light",
"splash": {
"image": "./assets/splash.png",
"resizeMode": "contain",
"backgroundColor": "#ffffff"
},
"assetBundlePatterns": [
"**/*"
],
"ios": {
"supportsTablet": true
},
"android": {
"adaptiveIcon": {
"foregroundImage": "./assets/adaptive-icon.png",
"backgroundColor": "#ffffff"
}
},
"web": {
"favicon": "./assets/favicon.png"
"expo": {
"name": "WebExample",
"slug": "WebExample",
"version": "1.0.0",
"orientation": "portrait",
"icon": "./assets/icon.png",
"userInterfaceStyle": "light",
"splash": {
"image": "./assets/splash.png",
"resizeMode": "contain",
"backgroundColor": "#ffffff"
},
"assetBundlePatterns": ["**/*"],
"ios": {
"supportsTablet": true
},
"android": {
"adaptiveIcon": {
"foregroundImage": "./assets/adaptive-icon.png",
"backgroundColor": "#ffffff"
}
},
"web": {
"favicon": "./assets/favicon.png"
}
}
}
}
38 changes: 17 additions & 21 deletions WebExample/babel.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,25 +2,21 @@ const path = require('path');
const pak = require('../package.json');

module.exports = function (api) {
api.cache(true);
return {
presets: ['babel-preset-expo'],
plugins: [
[
'module-resolver',
{
extensions: ['.tsx', '.ts', '.js', '.json'],
alias: {
'react': path.join(__dirname, 'node_modules', 'react'),
'react-native': path.join(
__dirname,
'node_modules',
'react-native-web'
),
[pak.name]: path.join(__dirname, '..', pak.source),
},
},
],
],
};
api.cache(true);
return {
presets: ['babel-preset-expo'],
plugins: [
[
'module-resolver',
{
extensions: ['.tsx', '.ts', '.js', '.json'],
alias: {
react: path.join(__dirname, 'node_modules', 'react'),
'react-native': path.join(__dirname, 'node_modules', 'react-native-web'),
[pak.name]: path.join(__dirname, '..', pak.source),
},
},
],
],
};
};
12 changes: 6 additions & 6 deletions WebExample/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"extends": ["../tsconfig.json", "expo/tsconfig.base"],
"compilerOptions": {
"strict": true
},
"include": ["App.tsx"],
"exclude": ["node_modules"]
"extends": ["../tsconfig.json", "expo/tsconfig.base"],
"compilerOptions": {
"strict": true
},
"include": ["App.tsx"],
"exclude": ["node_modules"]
}
20 changes: 10 additions & 10 deletions WebExample/webpack.config.js
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
const createExpoWebpackConfigAsync = require('@expo/webpack-config');

module.exports = async function (env, argv) {
const config = await createExpoWebpackConfigAsync(
{
...env,
babel: {
dangerouslyAddModulePathsToTranspile: ['react-native-live-markdown'],
},
},
argv
);
return config;
const config = await createExpoWebpackConfigAsync(
{
...env,
babel: {
dangerouslyAddModulePathsToTranspile: ['react-native-live-markdown'],
},
},
argv,
);
return config;
};
2 changes: 1 addition & 1 deletion babel.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@ module.exports = (api) => {
return {
presets: ['module:metro-react-native-babel-preset'],
};
};
};
Loading

0 comments on commit 014a4ad

Please sign in to comment.