Skip to content

Issue 1732 #1735

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
47 changes: 46 additions & 1 deletion .eslintrc
Original file line number Diff line number Diff line change
@@ -1,6 +1,51 @@
{
"extends": "./node_modules/topcoder-react-utils/config/eslint/default.json",
"rules": {
"jsx-a11y/anchor-is-valid": false
"jsx-a11y/anchor-is-valid": false,
"jsx-a11y/label-has-for": [
2,
{
"components": [
"Label"
],
"required": {
"some": [
"nesting",
"id"
]
},
"allowChildren": false
}
],
"jsx-a11y/label-has-associated-control": [
2,
{
"labelComponents": [
"CustomLabel"
],
"labelAttributes": [
"inputLabel"
],
"controlComponents": [
"CustomInput"
],
"depth": 3
}
],
"no-unused-vars": "off",
"no-undef": "off",
"react/jsx-no-undef": [
false
],
"react/require-default-props": [
false
],
"linebreak-style": 0,
"global-require": 0,
"eslint linebreak-style": [
0,
"error",
"windows"
]
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -355,5 +355,5 @@ SideBar.propTypes = {
isDevelop: PT.bool,
environment: PT.string,
codeRepo: PT.string,
isMM:PT.bool,
isMM: PT.bool,
};
Original file line number Diff line number Diff line change
Expand Up @@ -177,4 +177,3 @@
margin-bottom: 3 * $base-unit;
}
}

Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,7 @@
@include xs-to-sm {
display: none;
}

.handle {
color: $tc-dark-blue-110;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,4 +55,3 @@
padding: 6px 0;
}
}

Original file line number Diff line number Diff line change
Expand Up @@ -55,4 +55,3 @@
padding: 6px 0;
}
}

Original file line number Diff line number Diff line change
Expand Up @@ -55,4 +55,3 @@
padding: 6px 0;
}
}

Original file line number Diff line number Diff line change
Expand Up @@ -55,4 +55,3 @@
padding: 6px 0;
}
}

Original file line number Diff line number Diff line change
Expand Up @@ -55,4 +55,3 @@
padding: 6px 0;
}
}

4 changes: 2 additions & 2 deletions src/shared/reducers/contentful/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,10 @@
import _ from 'lodash';
import actions from 'actions/contentful';

import space from './space';

import { errors, logger } from 'topcoder-react-lib';
import { config } from 'topcoder-react-utils';
import space from './space';

const { fireErrorMessage } = errors;

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

const { error, payload } = action;

const newState = _.clone(state);
const spaceName = payload.spaceName || config.CONTENTFUL.DEFAULT_SPACE_NAME;
const environment = payload.environment || config.CONTENTFUL.DEFAULT_ENVIRONMENT;
Expand Down