Skip to content

Commit 732e90e

Browse files
committed
Add babel-plugin-root-import to devDependencies
1 parent 832c955 commit 732e90e

File tree

2 files changed

+17
-4
lines changed

2 files changed

+17
-4
lines changed

babel.config.js

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
module.exports = {
2+
presets: ['module:metro-react-native-babel-preset'],
3+
plugins: [
4+
[
5+
'babel-plugin-root-import',
6+
{
7+
rootPathSuffix: 'src',
8+
},
9+
],
10+
]
11+
};

devDependencies.json

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,18 @@
11
{
22
"babel-eslint": "^10.0.0",
3-
"eslint": "^5.0.0",
3+
"babel-plugin-root-import": "^6.0.0",
4+
"enzyme-adapter-react-16": "^1.0.0",
5+
"enzyme-to-json": "^3.0.0",
6+
"enzyme": "^3.0.0",
47
"eslint-config-airbnb": "^17.0.0",
58
"eslint-config-prettier": "^4.0.0",
9+
"eslint-import-resolver-babel-plugin-root-import": "^1.0.0",
610
"eslint-plugin-import": "^2.0.0",
711
"eslint-plugin-jsx-a11y": "^6.0.0",
812
"eslint-plugin-prettier": "^3.0.0",
913
"eslint-plugin-react": "^7.0.0",
1014
"eslint-plugin-react-native": "^3.0.0",
11-
"enzyme": "^3.0.0",
12-
"enzyme-adapter-react-16": "^1.0.0",
13-
"enzyme-to-json": "^3.0.0",
15+
"eslint": "^5.0.0",
1416
"flow-bin": "^0.92.0",
1517
"husky": "^2.0.0",
1618
"lint-staged": "^8.0.0",

0 commit comments

Comments
 (0)