Commit 8e010d1
authored
[eslint] Consistent
## Description
This PR aims to add new eslint rules, that:
- Require sorted imports
- Require `type` when importing only types
As there would be too many changes, I've decided to split this into two
PRs. This one will be base, similarly as in monorepo migration.
-
#4088
-
#4089
## Test plan
- `yarn lint-js`
- `yarn ts-check`
<img width="1069" height="482" alt="image"
src="https://github.com/user-attachments/assets/5f4e79f6-ae0a-4ec4-9073-b23f89a0f569"
/>import rules (#4087)1 parent 090e822 commit 8e010d1
301 files changed
Lines changed: 1504 additions & 1710 deletions
File tree
- apps
- basic-example/src
- common-app/src
- ListWithHeader
- common_assets/AnimatedCameraView
- empty
- legacy
- basic
- bouncing
- draggable
- fling
- forcetouch
- multitap
- pagerAndDrawer
- panResponder
- recipes
- panAndScroll
- scaleAndRotate
- release_tests
- StylusData
- combo
- contextMenu
- doubleDraggable
- gesturizedPressable
- mouseButtons
- nestedButtons
- nestedFling
- nestedGHRootViewWithModal
- nestedPressables
- nestedText
- nestedTouchables
- overflowParent
- pointerType
- rectButton
- svg
- touchables
- twoFingerPan
- webStylesReset
- showcase
- bottomSheet
- chatHeads
- simple
- draggable
- fling
- longPress
- manual
- tap
- v2_api
- bottom_sheet
- calculator
- camera
- chat_heads
- drag_n_drop
- hoverable_icons
- hover
- manualGestures
- overlap
- pressable
- transformations
- velocityTest
- new_api
- complicated
- camera
- chat_heads
- lock
- velocity_test
- components
- button_underlay
- buttons
- drawer
- flatlist
- scrollview
- swipeable
- switchAndInput
- touchable_stress
- touchable
- hover_mouse
- hoverable_icons
- hover
- mouse_buttons
- stylus_data
- showcase
- animated
- bottom_sheet
- nested_text
- overlap
- state_manager
- svg
- timer
- simple
- fling
- hover
- longPress
- pan
- pinch
- rotation
- tap
- tests
- nestedPressables
- nestedRootView
- pointerType
- pressable
- reattaching
- rectButton
- twoFingerPan
- webStylesReset
- expo-example
- macos-example
- packages/react-native-gesture-handler/src
- __tests__
- components
- Pressable
- ReanimatedSwipeable
- touchables
- handlers
- gestures
- GestureDetector
- jestUtils
- mocks
- specs
- v3
- components
- Touchable
- detectors
- VirtualDetector
- hooks
- callbacks
- composition
- gestures
- fling
- hover
- longPress
- manual
- native
- pan
- pinch
- rotation
- tap
- utils
- types
- web
- detectors
- handlers
- tools
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
| 46 | + | |
| 47 | + | |
46 | 48 | | |
47 | 49 | | |
48 | 50 | | |
| |||
85 | 87 | | |
86 | 88 | | |
87 | 89 | | |
88 | | - | |
| 90 | + | |
| 91 | + | |
89 | 92 | | |
90 | 93 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
| 2 | + | |
| 3 | + | |
3 | 4 | | |
4 | | - | |
5 | | - | |
6 | | - | |
7 | | - | |
8 | 5 | | |
| 6 | + | |
9 | 7 | | |
10 | | - | |
| 8 | + | |
11 | 9 | | |
12 | 10 | | |
13 | 11 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
2 | | - | |
3 | 1 | | |
4 | 2 | | |
5 | | - | |
6 | 3 | | |
| 4 | + | |
7 | 5 | | |
| 6 | + | |
| 7 | + | |
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
5 | 4 | | |
| 5 | + | |
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
1 | 2 | | |
2 | | - | |
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
3 | | - | |
4 | | - | |
5 | | - | |
6 | 2 | | |
7 | 3 | | |
8 | 4 | | |
9 | 5 | | |
10 | 6 | | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
11 | 10 | | |
12 | 11 | | |
13 | 12 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
3 | 2 | | |
4 | 3 | | |
5 | 4 | | |
6 | 5 | | |
7 | 6 | | |
8 | 7 | | |
9 | 8 | | |
10 | | - | |
| 9 | + | |
11 | 10 | | |
12 | 11 | | |
13 | 12 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
2 | | - | |
3 | 1 | | |
4 | 2 | | |
5 | | - | |
6 | 3 | | |
7 | 4 | | |
8 | 5 | | |
| |||
11 | 8 | | |
12 | 9 | | |
13 | 10 | | |
| 11 | + | |
| 12 | + | |
14 | 13 | | |
| 14 | + | |
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
2 | | - | |
3 | | - | |
4 | | - | |
5 | | - | |
6 | | - | |
7 | | - | |
8 | | - | |
9 | 1 | | |
10 | | - | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
11 | 5 | | |
| 6 | + | |
12 | 7 | | |
13 | | - | |
14 | 8 | | |
15 | | - | |
16 | | - | |
17 | | - | |
18 | 9 | | |
19 | | - | |
20 | 10 | | |
| 11 | + | |
| 12 | + | |
21 | 13 | | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | | - | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
27 | 18 | | |
28 | 19 | | |
29 | 20 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
1 | 8 | | |
2 | | - | |
3 | 9 | | |
4 | 10 | | |
5 | 11 | | |
6 | 12 | | |
7 | 13 | | |
8 | 14 | | |
9 | | - | |
10 | | - | |
11 | | - | |
12 | | - | |
13 | | - | |
14 | | - | |
15 | | - | |
16 | | - | |
17 | | - | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | | - | |
22 | | - | |
| 15 | + | |
| 16 | + | |
23 | 17 | | |
24 | 18 | | |
25 | 19 | | |
| |||
0 commit comments