mirror of
https://github.com/status-im/react-navigation.git
synced 2025-02-24 17:18:09 +00:00
* Update .eslintrc to allow compile. * Resolve .web.js extension * Look for __DEV__ on global Fixes ReferenceError when not in the React Native environment. * Replace __DEV__ at compile time via babel * Don't try to lint a website build
36 lines
732 B
Plaintext
36 lines
732 B
Plaintext
{
|
|
"env": {
|
|
// For RN example development
|
|
"development": {
|
|
"presets": ["react-native"],
|
|
"plugins": [
|
|
"transform-flow-strip-types"
|
|
]
|
|
},
|
|
// For Jest
|
|
"test": {
|
|
"presets": ["react-native"],
|
|
"plugins": [
|
|
"transform-flow-strip-types"
|
|
]
|
|
},
|
|
// For publishing to NPM for RN
|
|
"publish-rn": {
|
|
"presets": ["react-native-syntax"],
|
|
"plugins": [
|
|
"transform-flow-strip-types"
|
|
]
|
|
},
|
|
// For publishing to NPM for web
|
|
"publish-web": {
|
|
"presets": ["es2015", "stage-1", "react"],
|
|
"plugins": [
|
|
"transform-flow-strip-types",
|
|
["transform-define", {
|
|
"__DEV__": false
|
|
}]
|
|
]
|
|
}
|
|
}
|
|
}
|