Skip to content

Commit 04f24ff

Browse files
author
rashmi73
committed
issue_1732 fixed linting issues resolved
1 parent 79cfd5e commit 04f24ff

File tree

3 files changed

+49
-4
lines changed

3 files changed

+49
-4
lines changed

.eslintrc

Lines changed: 46 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,51 @@
11
{
22
"extends": "./node_modules/topcoder-react-utils/config/eslint/default.json",
33
"rules": {
4-
"jsx-a11y/anchor-is-valid": false
4+
"jsx-a11y/anchor-is-valid": false,
5+
"jsx-a11y/label-has-for": [
6+
2,
7+
{
8+
"components": [
9+
"Label"
10+
],
11+
"required": {
12+
"some": [
13+
"nesting",
14+
"id"
15+
]
16+
},
17+
"allowChildren": false
18+
}
19+
],
20+
"jsx-a11y/label-has-associated-control": [
21+
2,
22+
{
23+
"labelComponents": [
24+
"CustomLabel"
25+
],
26+
"labelAttributes": [
27+
"inputLabel"
28+
],
29+
"controlComponents": [
30+
"CustomInput"
31+
],
32+
"depth": 3
33+
}
34+
],
35+
"no-unused-vars": "off",
36+
"no-undef": "off",
37+
"react/jsx-no-undef": [
38+
false
39+
],
40+
"react/require-default-props": [
41+
false
42+
],
43+
"linebreak-style": 0,
44+
"global-require": 0,
45+
"eslint linebreak-style": [
46+
0,
47+
"error",
48+
"windows"
49+
]
550
}
651
}

src/shared/components/challenge-detail/Specification/SideBar/index.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -355,5 +355,5 @@ SideBar.propTypes = {
355355
isDevelop: PT.bool,
356356
environment: PT.string,
357357
codeRepo: PT.string,
358-
isMM:PT.bool,
358+
isMM: PT.bool,
359359
};

src/shared/reducers/contentful/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,10 @@
1919
import _ from 'lodash';
2020
import actions from 'actions/contentful';
2121

22-
import space from './space';
2322

2423
import { errors, logger } from 'topcoder-react-lib';
2524
import { config } from 'topcoder-react-utils';
25+
import space from './space';
2626

2727
const { fireErrorMessage } = errors;
2828

@@ -58,7 +58,7 @@ function create(init) {
5858
if (!validActions.has(action.type)) return state;
5959

6060
const { error, payload } = action;
61-
61+
6262
const newState = _.clone(state);
6363
const spaceName = payload.spaceName || config.CONTENTFUL.DEFAULT_SPACE_NAME;
6464
const environment = payload.environment || config.CONTENTFUL.DEFAULT_ENVIRONMENT;

0 commit comments

Comments
 (0)