aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-web/src/main/js/apps/settings/components
diff options
context:
space:
mode:
Diffstat (limited to 'server/sonar-web/src/main/js/apps/settings/components')
-rw-r--r--server/sonar-web/src/main/js/apps/settings/components/App.js2
-rw-r--r--server/sonar-web/src/main/js/apps/settings/components/Definition.js5
-rw-r--r--server/sonar-web/src/main/js/apps/settings/components/DefinitionChanges.js4
-rw-r--r--server/sonar-web/src/main/js/apps/settings/components/DefinitionDefaults.js2
-rw-r--r--server/sonar-web/src/main/js/apps/settings/components/EmailForm.js4
-rw-r--r--server/sonar-web/src/main/js/apps/settings/components/inputs/Input.js1
6 files changed, 9 insertions, 9 deletions
diff --git a/server/sonar-web/src/main/js/apps/settings/components/App.js b/server/sonar-web/src/main/js/apps/settings/components/App.js
index 9a55ff3b008..a2a5ffd14c9 100644
--- a/server/sonar-web/src/main/js/apps/settings/components/App.js
+++ b/server/sonar-web/src/main/js/apps/settings/components/App.js
@@ -32,7 +32,7 @@ import '../styles.css';
type Props = {
component: { key: string },
defaultCategory: ?string,
- fetchSettings(componentKey: ?string): Promise<any>,
+ fetchSettings(componentKey: ?string): Promise<*>,
location: { query: {} }
};
diff --git a/server/sonar-web/src/main/js/apps/settings/components/Definition.js b/server/sonar-web/src/main/js/apps/settings/components/Definition.js
index 7f607de7f78..1fcc33d6c26 100644
--- a/server/sonar-web/src/main/js/apps/settings/components/Definition.js
+++ b/server/sonar-web/src/main/js/apps/settings/components/Definition.js
@@ -28,7 +28,7 @@ import DefinitionChanges from './DefinitionChanges';
import { getPropertyName, getPropertyDescription, getSettingValue, isDefaultOrInherited } from '../utils';
import { translateWithParameters, translate } from '../../../helpers/l10n';
import { resetValue, saveValue } from '../store/actions';
-import { failValidation, passValidation } from '../store/settingsPage/validationMessages/actions';
+import { passValidation } from '../store/settingsPage/validationMessages/actions';
import { cancelChange, changeValue } from '../store/settingsPage/changedValues/actions';
import { TYPE_PASSWORD } from '../constants';
import {
@@ -52,7 +52,6 @@ class Definition extends React.Component {
cancelChange: React.PropTypes.func.isRequired,
saveValue: React.PropTypes.func.isRequired,
resetValue: React.PropTypes.func.isRequired,
- failValidation: React.PropTypes.func.isRequired,
passValidation: React.PropTypes.func.isRequired
};
@@ -197,5 +196,5 @@ const mapStateToProps = (state, ownProps) => ({
export default connect(
mapStateToProps,
- { changeValue, saveValue, resetValue, failValidation, passValidation, cancelChange }
+ { changeValue, saveValue, resetValue, passValidation, cancelChange }
)(Definition);
diff --git a/server/sonar-web/src/main/js/apps/settings/components/DefinitionChanges.js b/server/sonar-web/src/main/js/apps/settings/components/DefinitionChanges.js
index 97d48d20d8b..2e1afc3adbf 100644
--- a/server/sonar-web/src/main/js/apps/settings/components/DefinitionChanges.js
+++ b/server/sonar-web/src/main/js/apps/settings/components/DefinitionChanges.js
@@ -32,13 +32,13 @@ export default class DefinitionChanges extends React.Component {
return shallowCompare(this, nextProps, nextState);
}
- handleSaveClick (e: any) {
+ handleSaveClick (e: Object) {
e.preventDefault();
e.target.blur();
this.props.onSave();
}
- handleCancelChange (e: any) {
+ handleCancelChange (e: Object) {
e.preventDefault();
e.target.blur();
this.props.onCancel();
diff --git a/server/sonar-web/src/main/js/apps/settings/components/DefinitionDefaults.js b/server/sonar-web/src/main/js/apps/settings/components/DefinitionDefaults.js
index 9d561ac6174..830bcac102f 100644
--- a/server/sonar-web/src/main/js/apps/settings/components/DefinitionDefaults.js
+++ b/server/sonar-web/src/main/js/apps/settings/components/DefinitionDefaults.js
@@ -29,7 +29,7 @@ export default class DefinitionDefaults extends React.Component {
onReset: React.PropTypes.func.isRequired
};
- handleReset (e: any) {
+ handleReset (e: Object) {
e.preventDefault();
e.target.blur();
this.props.onReset();
diff --git a/server/sonar-web/src/main/js/apps/settings/components/EmailForm.js b/server/sonar-web/src/main/js/apps/settings/components/EmailForm.js
index 1af5a0a8014..f4e551206b7 100644
--- a/server/sonar-web/src/main/js/apps/settings/components/EmailForm.js
+++ b/server/sonar-web/src/main/js/apps/settings/components/EmailForm.js
@@ -77,7 +77,7 @@ class EmailForm extends React.Component {
<input
id="test-email-to"
type="email"
- required
+ required={true}
value={this.state.recipient}
disabled={this.state.loading}
onChange={e => this.setState({ recipient: e.target.value })}/>
@@ -100,7 +100,7 @@ class EmailForm extends React.Component {
</label>
<textarea
id="test-email-title"
- required
+ required={true}
rows="5"
value={this.state.message}
disabled={this.state.loading}
diff --git a/server/sonar-web/src/main/js/apps/settings/components/inputs/Input.js b/server/sonar-web/src/main/js/apps/settings/components/inputs/Input.js
index 02fcbfacef2..b2ddc8e6959 100644
--- a/server/sonar-web/src/main/js/apps/settings/components/inputs/Input.js
+++ b/server/sonar-web/src/main/js/apps/settings/components/inputs/Input.js
@@ -26,6 +26,7 @@ import { TYPE_PROPERTY_SET } from '../../constants';
export default class Input extends React.Component {
static propTypes = {
+ /* eslint-disable react/no-unused-prop-types */
setting: React.PropTypes.object.isRequired,
value: React.PropTypes.any,
onChange: React.PropTypes.func.isRequired