Commit 2c8213c
Leo Taifa Merinen
Update App.tsx (#133)
Our custom global variable would be nicer declared as a `const`.
`var` doesn't seem to present any advantages here.
Functionality-wise the block scope remains the same as the global scope.
Semantic-wise it's clear it is global as @emin93 already moved it below imports.
Also ib4 wave of ESLint `no-var` adopters (e.g. https://github.com/gabts/eslint-config-react-native-typescript).
Further, see: https://eslint.org/docs/rules/no-var#when-not-to-use-it1 parent a183174 commit 2c8213c
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
29 | | - | |
| 29 | + | |
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
| |||
0 commit comments