aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-web/src/main/js/apps/web-api
diff options
context:
space:
mode:
authorStas Vilchik <vilchiks@gmail.com>2016-12-22 17:11:21 +0100
committerGitHub <noreply@github.com>2016-12-22 17:11:21 +0100
commitbc07b29494abd5dff7875175df91df38d0b908ac (patch)
tree05f82f8ca3787011e2a0810e7d85c9d81e4b222f /server/sonar-web/src/main/js/apps/web-api
parente52ca10a4a1b07d05c894e0d8564ffa1b5af3e47 (diff)
downloadsonarqube-bc07b29494abd5dff7875175df91df38d0b908ac.tar.gz
sonarqube-bc07b29494abd5dff7875175df91df38d0b908ac.zip
upgrade eslint and its plugins, tune rules (#1481)
Diffstat (limited to 'server/sonar-web/src/main/js/apps/web-api')
-rw-r--r--server/sonar-web/src/main/js/apps/web-api/components/Action.js1
-rw-r--r--server/sonar-web/src/main/js/apps/web-api/components/DeprecatedBadge.js1
-rw-r--r--server/sonar-web/src/main/js/apps/web-api/components/Domain.js1
-rw-r--r--server/sonar-web/src/main/js/apps/web-api/components/InternalBadge.js1
-rw-r--r--server/sonar-web/src/main/js/apps/web-api/components/Params.js1
-rw-r--r--server/sonar-web/src/main/js/apps/web-api/components/ResponseExample.js1
-rw-r--r--server/sonar-web/src/main/js/apps/web-api/components/Search.js7
7 files changed, 6 insertions, 7 deletions
diff --git a/server/sonar-web/src/main/js/apps/web-api/components/Action.js b/server/sonar-web/src/main/js/apps/web-api/components/Action.js
index cfe3a6df465..b6d5165e9ee 100644
--- a/server/sonar-web/src/main/js/apps/web-api/components/Action.js
+++ b/server/sonar-web/src/main/js/apps/web-api/components/Action.js
@@ -19,7 +19,6 @@
*/
import React from 'react';
import { Link } from 'react-router';
-
import { getActionKey } from '../utils';
import Params from './Params';
import ResponseExample from './ResponseExample';
diff --git a/server/sonar-web/src/main/js/apps/web-api/components/DeprecatedBadge.js b/server/sonar-web/src/main/js/apps/web-api/components/DeprecatedBadge.js
index bf7b8c0d235..8680de0f2b1 100644
--- a/server/sonar-web/src/main/js/apps/web-api/components/DeprecatedBadge.js
+++ b/server/sonar-web/src/main/js/apps/web-api/components/DeprecatedBadge.js
@@ -18,7 +18,6 @@
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
import React from 'react';
-
import { translate } from '../../../helpers/l10n';
export default function DeprecatedBadge ({ since }) {
diff --git a/server/sonar-web/src/main/js/apps/web-api/components/Domain.js b/server/sonar-web/src/main/js/apps/web-api/components/Domain.js
index 6fd54950711..6bfed0921c5 100644
--- a/server/sonar-web/src/main/js/apps/web-api/components/Domain.js
+++ b/server/sonar-web/src/main/js/apps/web-api/components/Domain.js
@@ -18,7 +18,6 @@
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
import React from 'react';
-
import Action from './Action';
import InternalBadge from './InternalBadge';
import { getActionKey } from '../utils';
diff --git a/server/sonar-web/src/main/js/apps/web-api/components/InternalBadge.js b/server/sonar-web/src/main/js/apps/web-api/components/InternalBadge.js
index 013af802b04..0602d7d0e68 100644
--- a/server/sonar-web/src/main/js/apps/web-api/components/InternalBadge.js
+++ b/server/sonar-web/src/main/js/apps/web-api/components/InternalBadge.js
@@ -18,7 +18,6 @@
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
import React from 'react';
-
import { translate } from '../../../helpers/l10n';
export default function InternalBadge () {
diff --git a/server/sonar-web/src/main/js/apps/web-api/components/Params.js b/server/sonar-web/src/main/js/apps/web-api/components/Params.js
index 68649ad2a8b..623eba819f2 100644
--- a/server/sonar-web/src/main/js/apps/web-api/components/Params.js
+++ b/server/sonar-web/src/main/js/apps/web-api/components/Params.js
@@ -18,7 +18,6 @@
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
import React from 'react';
-
import InternalBadge from './InternalBadge';
import DeprecatedBadge from './DeprecatedBadge';
diff --git a/server/sonar-web/src/main/js/apps/web-api/components/ResponseExample.js b/server/sonar-web/src/main/js/apps/web-api/components/ResponseExample.js
index 70e1791c5b2..177be23b4f8 100644
--- a/server/sonar-web/src/main/js/apps/web-api/components/ResponseExample.js
+++ b/server/sonar-web/src/main/js/apps/web-api/components/ResponseExample.js
@@ -18,7 +18,6 @@
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
import React from 'react';
-
import { fetchResponseExample as fetchResponseExampleApi } from '../../../api/web-api';
export default class ResponseExample extends React.Component {
diff --git a/server/sonar-web/src/main/js/apps/web-api/components/Search.js b/server/sonar-web/src/main/js/apps/web-api/components/Search.js
index 0784a4a33ea..51f29c7dfa6 100644
--- a/server/sonar-web/src/main/js/apps/web-api/components/Search.js
+++ b/server/sonar-web/src/main/js/apps/web-api/components/Search.js
@@ -19,7 +19,6 @@
*/
import _ from 'underscore';
import React from 'react';
-
import Checkbox from '../../../components/controls/Checkbox';
import { TooltipsContainer } from '../../../components/mixins/tooltips-mixin';
import { translate } from '../../../helpers/l10n';
@@ -66,6 +65,9 @@ export default class Search extends React.Component {
<span
style={{ cursor: 'pointer' }}
title={translate('api_documentation.internal_tooltip')}
+ tabIndex="0"
+ role="checkbox"
+ aria-checked={showInternal ? 'true' : 'false'}
onClick={onToggleInternal}>
Show Internal API
</span>
@@ -85,6 +87,9 @@ export default class Search extends React.Component {
<span
style={{ cursor: 'pointer' }}
title={translate('api_documentation.deprecation_tooltip')}
+ tabIndex="0"
+ role="checkbox"
+ aria-checked={showOnlyDeprecated ? 'true' : 'false'}
onClick={onToggleDeprecated}>
Show Only Deprecated API
</span>