Skip to content

Commit 8c79b42

Browse files
Merge pull request #33 from topcoder-platform/code-quality-fixes
Fix code quality issues from V4 changes
2 parents 79f8960 + 7f3b805 commit 8c79b42

File tree

15 files changed

+7070
-5613
lines changed

15 files changed

+7070
-5613
lines changed

.eslintrc

+1-37
Original file line numberDiff line numberDiff line change
@@ -1,39 +1,3 @@
11
{
2-
"extends": "./node_modules/topcoder-react-utils/config/eslint/default.json",
3-
"rules": {
4-
"jsx-a11y/label-has-for": [
5-
2,
6-
{
7-
"components": [
8-
"Label"
9-
],
10-
"required": {
11-
"some": [
12-
"nesting",
13-
"id"
14-
]
15-
},
16-
"allowChildren": false
17-
}
18-
],
19-
"jsx-a11y/label-has-associated-control": [
20-
2,
21-
{
22-
"labelComponents": [
23-
"CustomLabel"
24-
],
25-
"labelAttributes": [
26-
"inputLabel"
27-
],
28-
"controlComponents": [
29-
"CustomInput"
30-
],
31-
"depth": 3
32-
}
33-
],
34-
"no-unused-vars": 0,
35-
"no-undef": 0,
36-
"react/jsx-no-undef": 0,
37-
"react/require-default-props": 0
38-
}
2+
"extends": "./node_modules/topcoder-react-utils/config/eslint/default.json"
393
}

__tests__/__snapshots__/index.js.snap

+2-2
Original file line numberDiff line numberDiff line change
@@ -311,8 +311,8 @@ Object {
311311
"Iterative Review": "Iterative Review",
312312
"Spec Review": "Specification Review",
313313
},
314-
"getApiResponsePayloadV3": [Function],
315-
"getApiResponsePayloadV4": [Function],
314+
"getApiResponsePayload": [Function],
315+
"getLookerApiResponsePayload": [Function],
316316
},
317317
"time": Object {
318318
"default": undefined,

dist/dev/index.js

+1,421
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/prod/index.js

+6
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/tc.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -10,18 +10,18 @@ Collection of small Topcoder-related functions.
1010

1111
* [tc](#module_tc)
1212
* [.REVIEW_OPPORTUNITY_TYPES](#module_tc.REVIEW_OPPORTUNITY_TYPES)
13-
* [.getApiResponsePayloadV3(res)](#module_tc.getApiResponsePayloadV3) ⇒ <code>Promise</code>
13+
* [.getApiResponsePayload(res)](#module_tc.getApiResponsePayload) ⇒ <code>Promise</code>
1414

1515
<a name="module_tc.REVIEW_OPPORTUNITY_TYPES"></a>
1616

1717
### tc.REVIEW_OPPORTUNITY_TYPES
1818
Review Opportunity types
1919

2020
**Kind**: static constant of [<code>tc</code>](#module_tc)
21-
<a name="module_tc.getApiResponsePayloadV3"></a>
21+
<a name="module_tc.getApiResponsePayload"></a>
2222

23-
### tc.getApiResponsePayloadV3(res) ⇒ <code>Promise</code>
24-
Gets payload from a standard success response from TC API v3; or throws
23+
### tc.getApiResponsePayload(res) ⇒ <code>Promise</code>
24+
Gets payload from a standard success response from TC API; or throws
2525
an error in case of a failure response.
2626

2727
**Kind**: static method of [<code>tc</code>](#module_tc)

0 commit comments

Comments
 (0)