mirror of
https://github.com/inaturalist/iNaturalistReactNative.git
synced 2025-12-23 22:18:36 -05:00
lint rule & autofix for "trailing comma" (#3299)
* (lint) MOB-1063 enforce trailing commas * autofix trailing commas * manually fix newly introduced maxlen violations * add trailing comma convention to i18n build
This commit is contained in:
38
.detoxrc.js
38
.detoxrc.js
@@ -11,12 +11,12 @@ module.exports = {
|
||||
$0: "jest",
|
||||
args: {
|
||||
config: "e2e/jest.config.js",
|
||||
_: ["e2e"]
|
||||
_: ["e2e"],
|
||||
},
|
||||
jest: {
|
||||
setupTimeout: 900000,
|
||||
teardownTimeout: 900000
|
||||
}
|
||||
teardownTimeout: 900000,
|
||||
},
|
||||
},
|
||||
apps: {
|
||||
"ios.debug": {
|
||||
@@ -25,7 +25,7 @@ module.exports = {
|
||||
"ios/build/Build/Products/Debug-iphonesimulator/iNaturalistReactNative.app",
|
||||
build:
|
||||
/* eslint-disable-next-line max-len */
|
||||
"xcodebuild -workspace ios/iNaturalistReactNative.xcworkspace -scheme iNaturalistReactNative -configuration Debug -sdk iphonesimulator -derivedDataPath ios/build"
|
||||
"xcodebuild -workspace ios/iNaturalistReactNative.xcworkspace -scheme iNaturalistReactNative -configuration Debug -sdk iphonesimulator -derivedDataPath ios/build",
|
||||
},
|
||||
"ios.release": {
|
||||
type: "ios.app",
|
||||
@@ -33,7 +33,7 @@ module.exports = {
|
||||
"ios/build/Build/Products/Release-iphonesimulator/iNaturalistReactNative.app",
|
||||
build:
|
||||
/* eslint-disable-next-line max-len */
|
||||
"xcodebuild -workspace ios/iNaturalistReactNative.xcworkspace -scheme iNaturalistReactNative -configuration Release -sdk iphonesimulator -derivedDataPath ios/build"
|
||||
"xcodebuild -workspace ios/iNaturalistReactNative.xcworkspace -scheme iNaturalistReactNative -configuration Release -sdk iphonesimulator -derivedDataPath ios/build",
|
||||
},
|
||||
"android.debug": {
|
||||
type: "android.apk",
|
||||
@@ -41,7 +41,7 @@ module.exports = {
|
||||
/* eslint-disable-next-line max-len */
|
||||
testBinaryPath: `android/app/build/outputs/apk/androidTest/debug/${apkFilenamePrefix}-debug-androidTest.apk`,
|
||||
build:
|
||||
"(cd android && ./gradlew assembleDebug assembleAndroidTest -DtestBuildType=debug)"
|
||||
"(cd android && ./gradlew assembleDebug assembleAndroidTest -DtestBuildType=debug)",
|
||||
},
|
||||
"android.release": {
|
||||
type: "android.apk",
|
||||
@@ -49,40 +49,40 @@ module.exports = {
|
||||
/* eslint-disable-next-line max-len */
|
||||
testBinaryPath: `android/app/build/outputs/apk/androidTest/release/${apkFilenamePrefix}-release-androidTest.apk`,
|
||||
build:
|
||||
"(cd android && ./gradlew assembleRelease assembleAndroidTest -DtestBuildType=release)"
|
||||
}
|
||||
"(cd android && ./gradlew assembleRelease assembleAndroidTest -DtestBuildType=release)",
|
||||
},
|
||||
},
|
||||
devices: {
|
||||
simulator: {
|
||||
type: "ios.simulator",
|
||||
device: {
|
||||
type: "iPhone 16 Pro",
|
||||
os: "iOS 18.6"
|
||||
}
|
||||
os: "iOS 18.6",
|
||||
},
|
||||
},
|
||||
emulator: {
|
||||
type: "android.emulator",
|
||||
device: {
|
||||
avdName: "Pixel_5_API_31_AOSP"
|
||||
}
|
||||
}
|
||||
avdName: "Pixel_5_API_31_AOSP",
|
||||
},
|
||||
},
|
||||
},
|
||||
configurations: {
|
||||
"ios.debug": {
|
||||
device: "simulator",
|
||||
app: "ios.debug"
|
||||
app: "ios.debug",
|
||||
},
|
||||
"ios.release": {
|
||||
device: "simulator",
|
||||
app: "ios.release"
|
||||
app: "ios.release",
|
||||
},
|
||||
"android.debug": {
|
||||
device: "emulator",
|
||||
app: "android.debug"
|
||||
app: "android.debug",
|
||||
},
|
||||
"android.release": {
|
||||
device: "emulator",
|
||||
app: "android.release"
|
||||
}
|
||||
}
|
||||
app: "android.release",
|
||||
},
|
||||
},
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user