pep 0.0.0 → 0.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/pep.rb +18 -10
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e7c10ef235be2b2f36cd20e07970b7409f2acc2544df56c49d7cfb215a759554
|
4
|
+
data.tar.gz: dd6e067fad6d1da1639f0c012fa20bb3d7a67d6e33407b28610bdf8899f40e22
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b8b85753413c34e6c20a4f99904c9014bbaa009be92ef9abfe2486281929e31b8f3dc4398ef1b4232cc005a24d7cca45a288f4a37c5aa0aa37a7c20178ded8ad
|
7
|
+
data.tar.gz: d65d22df8d38eb65ff447313bbe3af7e9087bf7dca9408afc42a9d8e436a458340edf87742d280dca64e967449a3f604781c8cb467663fac0c883684a7cc00a1
|
data/lib/pep.rb
CHANGED
@@ -189,6 +189,12 @@ class AddEslint
|
|
189
189
|
|
190
190
|
def eslintrc_js_content
|
191
191
|
<<~EOS
|
192
|
+
const rule = {
|
193
|
+
off: 0,
|
194
|
+
warn: 1,
|
195
|
+
error: 2,
|
196
|
+
}
|
197
|
+
|
192
198
|
module.exports = {
|
193
199
|
root: true,
|
194
200
|
parser: "@typescript-eslint/parser",
|
@@ -204,14 +210,16 @@ class AddEslint
|
|
204
210
|
"react-native/react-native": true,
|
205
211
|
},
|
206
212
|
rules: {
|
207
|
-
"react-native/no-unused-styles":
|
208
|
-
"react-native/split-platform-components":
|
209
|
-
"react-native/no-single-element-style-arrays":
|
213
|
+
"react-native/no-unused-styles": rule.error,
|
214
|
+
"react-native/split-platform-components": rule.error,
|
215
|
+
"react-native/no-single-element-style-arrays": rule.error,
|
210
216
|
"react-hooks/rules-of-hooks": "error",
|
211
217
|
"react-hooks/exhaustive-deps": "error",
|
212
218
|
"@typescript-eslint/switch-exhaustiveness-check": "error",
|
213
|
-
"@typescript-eslint/ban-ts-comment":
|
214
|
-
"@typescript-eslint/no-empty-function":
|
219
|
+
"@typescript-eslint/ban-ts-comment": rule.off,
|
220
|
+
"@typescript-eslint/no-empty-function": rule.off,
|
221
|
+
"@typescript-eslint/explicit-function-return-type": "error",
|
222
|
+
"@typescript-eslint/consistent-type-imports": "error",
|
215
223
|
},
|
216
224
|
}
|
217
225
|
EOS
|
@@ -378,7 +386,7 @@ class InstallReactNavigation
|
|
378
386
|
type HomeProps = NativeStackScreenProps<StackNavigatorParams, "Home">
|
379
387
|
type DetailsProps = NativeStackScreenProps<StackNavigatorParams, "Details">
|
380
388
|
|
381
|
-
const HomeScreen = ({ navigation }: HomeProps) => {
|
389
|
+
const HomeScreen = ({ navigation }: HomeProps): React.ReactElement => {
|
382
390
|
const [homeScreensTextInputValue, setHomescreensTextInputValue] =
|
383
391
|
useState<string>("")
|
384
392
|
return (
|
@@ -392,15 +400,15 @@ class InstallReactNavigation
|
|
392
400
|
/>
|
393
401
|
<Button
|
394
402
|
title="Go to Details"
|
395
|
-
onPress={() =>
|
403
|
+
onPress={(): void => {
|
396
404
|
navigation.navigate("Details", { homeScreensTextInputValue })
|
397
|
-
}
|
405
|
+
}}
|
398
406
|
/>
|
399
407
|
</View>
|
400
408
|
)
|
401
409
|
}
|
402
410
|
|
403
|
-
const DetailsScreen = ({ route }: DetailsProps) => {
|
411
|
+
const DetailsScreen = ({ route }: DetailsProps): React.ReactElement => {
|
404
412
|
const { homeScreensTextInputValue } = route.params
|
405
413
|
return (
|
406
414
|
<View style={{ flex: 1, alignItems: "center", justifyContent: "center" }}>
|
@@ -419,7 +427,7 @@ class InstallReactNavigation
|
|
419
427
|
},
|
420
428
|
}
|
421
429
|
|
422
|
-
const App = () => (
|
430
|
+
const App = (): React.ReactElement => (
|
423
431
|
<NavigationContainer theme={MyTheme}>
|
424
432
|
<Stack.Navigator>
|
425
433
|
<Stack.Screen name="Home" component={HomeScreen} />
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: pep
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Nick Pachulski
|
@@ -19,7 +19,7 @@ extra_rdoc_files: []
|
|
19
19
|
files:
|
20
20
|
- bin/pep
|
21
21
|
- lib/pep.rb
|
22
|
-
homepage: https://
|
22
|
+
homepage: https://github.com/pachun/pep
|
23
23
|
licenses:
|
24
24
|
- MIT
|
25
25
|
metadata: {}
|