-
Notifications
You must be signed in to change notification settings - Fork 73
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
run prettier against all project files
- Loading branch information
1 parent
23bc748
commit 8b56860
Showing
16 changed files
with
684 additions
and
684 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
module.exports = { | ||
tabWidth: 2, | ||
singleQuote: true, | ||
trailingComma: 'all', | ||
bracketSpacing: false, | ||
arrowParens: 'always', | ||
printWidth: 190, | ||
singleAttributePerLine: true, | ||
tabWidth: 2, | ||
singleQuote: true, | ||
trailingComma: 'all', | ||
bracketSpacing: false, | ||
arrowParens: 'always', | ||
printWidth: 190, | ||
singleAttributePerLine: true, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +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" | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,15 @@ | ||
module.exports = (api) => { | ||
const isWeb = api.caller((caller) => caller && caller.target === 'web'); | ||
if (isWeb) { | ||
return { | ||
// Default browser list is a reasonable preset covering a wide list of non-dead browsers | ||
// https://github.com/browserslist/browserslist#best-practices | ||
targets: 'defaults', | ||
presets: ['@babel/preset-env', '@babel/preset-react'], | ||
}; | ||
} | ||
|
||
const isWeb = api.caller((caller) => caller && caller.target === 'web'); | ||
if (isWeb) { | ||
return { | ||
presets: ['module:metro-react-native-babel-preset'], | ||
// Default browser list is a reasonable preset covering a wide list of non-dead browsers | ||
// https://github.com/browserslist/browserslist#best-practices | ||
targets: 'defaults', | ||
presets: ['@babel/preset-env', '@babel/preset-react'], | ||
}; | ||
} | ||
|
||
return { | ||
presets: ['module:metro-react-native-babel-preset'], | ||
}; | ||
}; |
Oops, something went wrong.