Skip to content

Commit 3c10b32

Browse files
committed
test: added updated babel and eslint alias configs from gitpoint#567
1 parent e08f8af commit 3c10b32

File tree

3 files changed

+26
-20
lines changed

3 files changed

+26
-20
lines changed

.babelrc

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -12,22 +12,23 @@
1212
"./src"
1313
],
1414
"alias": {
15+
"api": "api",
16+
"auth": "auth",
1517
"components": "components",
16-
"search": "search",
18+
"config": "config",
19+
"issue": "issue",
20+
"locale": "locale",
1721
"notifications": "notifications",
18-
"auth": "auth",
19-
"user": "user",
2022
"organization": "organization",
23+
"package.json": "./package.json",
2124
"repository": "repository",
22-
"issue": "issue",
23-
"api": "api",
24-
"config": "config",
25-
"utils": "utils",
26-
"locale": "locale",
27-
"package.json": "./package.json"
25+
"search": "search",
26+
"testData": "./__tests__/data",
27+
"user": "user",
28+
"utils": "utils"
2829
}
2930
}
3031
],
3132
"transform-inline-environment-variables"
3233
]
33-
}
34+
}

.eslintrc

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -26,18 +26,18 @@
2626
"./src"
2727
],
2828
"alias": {
29+
"api": "api",
30+
"auth": "auth",
2931
"components": "components",
30-
"search": "search",
32+
"config": "config",
33+
"issue": "issue",
34+
"locale": "locale",
3135
"notifications": "notifications",
32-
"auth": "auth",
33-
"user": "user",
3436
"organization": "organization",
3537
"repository": "repository",
36-
"issue": "issue",
37-
"api": "api",
38-
"config": "config",
39-
"utils": "utils",
40-
"locale": "locale"
38+
"search": "search",
39+
"testData": "./__tests__/data",
40+
"utils": "utils"
4141
}
4242
}
4343
}
@@ -152,7 +152,7 @@
152152
"/^(get|set)(?!(InitialState$|DefaultProps$|ChildContext$)).+$/",
153153
"everything-else",
154154
"/^render.+$/",
155-
"render",
155+
"render"
156156
],
157157
"groups": {
158158
"lifecycle": [
@@ -181,4 +181,4 @@
181181
},
182182
],
183183
}
184-
}
184+
}

__tests__/data/api/error.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
export const authError = {
2+
message: 'Requires authentication',
3+
documentation_url:
4+
'https://developer.github.com/v3/activity/notifications/#list-your-notifications',
5+
};

0 commit comments

Comments
 (0)