File tree 1 file changed +11
-4
lines changed
1 file changed +11
-4
lines changed Original file line number Diff line number Diff line change 1
1
[ignore]
2
+ <PROJECT_ROOT>/build/.*
3
+ <PROJECT_ROOT>/dist/.*
4
+ <PROJECT_ROOT>/docs/.*
5
+ <PROJECT_ROOT>/public/.*
2
6
3
7
[include]
4
8
@@ -8,9 +12,12 @@ flow-typed
8
12
[lints]
9
13
10
14
[options]
11
- # NOTE: Following lines are needed for absolute path imports to work
12
- # https://itnext.io/configure-absolute-paths-with-create-react-app-and-flow-e4b8922676a2
13
- module.system.node.resolve_dirname=node_modules
14
- module.system.node.resolve_dirname=src
15
+ ; NOTE: This is needed for absolute imports to work
16
+ module.name_mapper='^components/\(.*\)$' -> '<PROJECT_ROOT>/src/components/\1'
17
+ module.name_mapper='^config/\(.*\)$' -> '<PROJECT_ROOT>/src/config/\1'
18
+ module.name_mapper='^constants/\(.*\)$' -> '<PROJECT_ROOT>/src/constants/\1'
19
+ module.name_mapper='^redux/\(.*\)$' -> '<PROJECT_ROOT>/src/redux/\1'
20
+ module.name_mapper='^singletons/\(.*\)$' -> '<PROJECT_ROOT>/src/singletons/\1'
21
+ module.name_mapper='^utils/\(.*\)$' -> '<PROJECT_ROOT>/src/utils/\1'
15
22
16
23
[strict]
You can’t perform that action at this time.
0 commit comments