Skip to content

Commit 0da00e8

Browse files
committed
chore: update formatter style
1 parent a5053ff commit 0da00e8

File tree

10 files changed

+35
-41
lines changed

10 files changed

+35
-41
lines changed

.eslintignore

Lines changed: 0 additions & 3 deletions
This file was deleted.

.eslintrc.js

Lines changed: 0 additions & 18 deletions
This file was deleted.

android/.editorconfig

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
root = true
2+
3+
[*]
4+
charset = utf-8
5+
end_of_line = lf
6+
insert_final_newline = true
7+
trim_trailing_whitespace = true
8+
9+
indent_style = space
10+
indent_size = 2
11+
12+
max_line_length = 150

android/src/main/java/com/rngooglemapsplus/extensions/RNLatLngBoundsExtension.kt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
package com.rngooglemapsplus.extensions
22

3-
import com.google.android.gms.maps.model.LatLng
43
import com.google.android.gms.maps.model.LatLngBounds
54
import com.rngooglemapsplus.RNLatLngBounds
65

android/src/main/java/com/rngooglemapsplus/extensions/ThrowableExtension.kt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,12 @@ fun Throwable.toLocationErrorCode(context: Context): RNLocationErrorCode {
1616
when (statusCode) {
1717
CommonStatusCodes.NETWORK_ERROR ->
1818
RNLocationErrorCode.POSITION_UNAVAILABLE
19+
1920
LocationSettingsStatusCodes.RESOLUTION_REQUIRED,
2021
LocationSettingsStatusCodes.SETTINGS_CHANGE_UNAVAILABLE,
2122
->
2223
RNLocationErrorCode.SETTINGS_NOT_SATISFIED
24+
2325
else ->
2426
RNLocationErrorCode.INTERNAL_ERROR
2527
}

ios/.swiftformat

Lines changed: 14 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,22 @@
11
--swiftversion 5.10
2+
--xcode-indentation enabled
23
--disable conditionalAssignment
34
--disable redundantType
45
--disable unusedArguments
6+
57
--binary-grouping none
68
--decimal-grouping none
79
--hex-literal-case lowercase
810
--indent 2
9-
--no-space-operators
10-
--semicolons never
11-
--trailing-commas never
12-
--rules braces,indent
13-
--wrap-arguments preserve
14-
--wrap-parameters preserve
15-
--wrap-collections preserve
16-
--closing-paren same-line
17-
--xcode-indentation enabled
11+
12+
--max-width 150
13+
14+
--wrap-arguments disabled
15+
--wrap-parameters disabled
16+
--wrap-return-type never
17+
--disable wrapMultilineStatementBraces
18+
19+
--rules indent,braces,spaceInsideParens,spaceInsideBraces,spaceAroundOperators
20+
21+
--trim-whitespace nonblank-lines
22+
--linebreaks lf

ios/extensions/CLLocation+Extension.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ extension CLLocation {
1818
verticalAccuracy: verticalAccuracy,
1919
speedAccuracy: speedAccuracy,
2020
courseAccuracy: courseAccuracy,
21-
floor: floor.map { Double($0.level)},
21+
floor: floor.map { Double($0.level) },
2222
isFromMockProvider: false,
2323
timestamp: timestamp.timeIntervalSince1970 * 1000
2424
)

ios/extensions/RNLineCapType+Extension.swift

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,3 @@ extension RNLineCapType {
77
}
88
}
99
}
10-

ios/extensions/RNLineJoinType+Extension.swift

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,4 @@ extension RNLineJoinType {
66
default: return .miter
77
}
88
}
9-
109
}
11-

ios/extensions/String+Extensions.swift

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -90,12 +90,12 @@ extension UIColor {
9090
// swiftlint:disable:next large_tuple
9191
let (r1, g1, b1): (Double, Double, Double)
9292
switch h {
93-
case 0..<60: (r1, g1, b1) = (c, x, 0)
94-
case 60..<120: (r1, g1, b1) = (x, c, 0)
95-
case 120..<180: (r1, g1, b1) = (0, c, x)
96-
case 180..<240: (r1, g1, b1) = (0, x, c)
97-
case 240..<300: (r1, g1, b1) = (x, 0, c)
98-
case 300..<360: (r1, g1, b1) = (c, 0, x)
93+
case 0 ..< 60: (r1, g1, b1) = (c, x, 0)
94+
case 60 ..< 120: (r1, g1, b1) = (x, c, 0)
95+
case 120 ..< 180: (r1, g1, b1) = (0, c, x)
96+
case 180 ..< 240: (r1, g1, b1) = (0, x, c)
97+
case 240 ..< 300: (r1, g1, b1) = (x, 0, c)
98+
case 300 ..< 360: (r1, g1, b1) = (c, 0, x)
9999
default: (r1, g1, b1) = (0, 0, 0)
100100
}
101101
return UIColor(

0 commit comments

Comments
 (0)