diff options
author | Stas Vilchik <vilchiks@gmail.com> | 2016-12-22 17:11:21 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-12-22 17:11:21 +0100 |
commit | bc07b29494abd5dff7875175df91df38d0b908ac (patch) | |
tree | 05f82f8ca3787011e2a0810e7d85c9d81e4b222f /server/sonar-web/src/main/js/api | |
parent | e52ca10a4a1b07d05c894e0d8564ffa1b5af3e47 (diff) | |
download | sonarqube-bc07b29494abd5dff7875175df91df38d0b908ac.tar.gz sonarqube-bc07b29494abd5dff7875175df91df38d0b908ac.zip |
upgrade eslint and its plugins, tune rules (#1481)
Diffstat (limited to 'server/sonar-web/src/main/js/api')
-rw-r--r-- | server/sonar-web/src/main/js/api/components.js | 2 | ||||
-rw-r--r-- | server/sonar-web/src/main/js/api/issue-filters.js | 2 | ||||
-rw-r--r-- | server/sonar-web/src/main/js/api/issues.js | 3 | ||||
-rw-r--r-- | server/sonar-web/src/main/js/api/languages.js | 2 | ||||
-rw-r--r-- | server/sonar-web/src/main/js/api/measure-filters.js | 2 | ||||
-rw-r--r-- | server/sonar-web/src/main/js/api/measures.js | 2 | ||||
-rw-r--r-- | server/sonar-web/src/main/js/api/metrics.js | 2 | ||||
-rw-r--r-- | server/sonar-web/src/main/js/api/nav.js | 2 | ||||
-rw-r--r-- | server/sonar-web/src/main/js/api/quality-gates.js | 4 | ||||
-rw-r--r-- | server/sonar-web/src/main/js/api/time-machine.js | 2 | ||||
-rw-r--r-- | server/sonar-web/src/main/js/api/user-tokens.js | 2 | ||||
-rw-r--r-- | server/sonar-web/src/main/js/api/users.js | 2 |
12 files changed, 13 insertions, 14 deletions
diff --git a/server/sonar-web/src/main/js/api/components.js b/server/sonar-web/src/main/js/api/components.js index 8c422a1c9ba..fa6ce518734 100644 --- a/server/sonar-web/src/main/js/api/components.js +++ b/server/sonar-web/src/main/js/api/components.js @@ -18,7 +18,7 @@ * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ // @flow -import { getJSON, postJSON, post } from '../helpers/request.js'; +import { getJSON, postJSON, post } from '../helpers/request'; export function getComponents (data?: Object) { const url = '/api/components/search'; diff --git a/server/sonar-web/src/main/js/api/issue-filters.js b/server/sonar-web/src/main/js/api/issue-filters.js index f2bd4226eab..0bb0e7c8c24 100644 --- a/server/sonar-web/src/main/js/api/issue-filters.js +++ b/server/sonar-web/src/main/js/api/issue-filters.js @@ -17,7 +17,7 @@ * along with this program; if not, write to the Free Software Foundation, * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ -import { post } from '../helpers/request.js'; +import { post } from '../helpers/request'; export function toggleIssueFilter (id) { const url = '/issues/toggle_fav'; diff --git a/server/sonar-web/src/main/js/api/issues.js b/server/sonar-web/src/main/js/api/issues.js index 21146b1bea9..d658aed91c3 100644 --- a/server/sonar-web/src/main/js/api/issues.js +++ b/server/sonar-web/src/main/js/api/issues.js @@ -18,8 +18,7 @@ * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ import _ from 'underscore'; - -import { getJSON } from '../helpers/request.js'; +import { getJSON } from '../helpers/request'; export function getFacets (query, facets) { const url = '/api/issues/search'; diff --git a/server/sonar-web/src/main/js/api/languages.js b/server/sonar-web/src/main/js/api/languages.js index 4b3a00b764d..f596da1f76e 100644 --- a/server/sonar-web/src/main/js/api/languages.js +++ b/server/sonar-web/src/main/js/api/languages.js @@ -17,7 +17,7 @@ * along with this program; if not, write to the Free Software Foundation, * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ -import { getJSON } from '../helpers/request.js'; +import { getJSON } from '../helpers/request'; export function getLanguages () { const url = '/api/languages/list'; diff --git a/server/sonar-web/src/main/js/api/measure-filters.js b/server/sonar-web/src/main/js/api/measure-filters.js index ed64ba09db7..5530a6c30a1 100644 --- a/server/sonar-web/src/main/js/api/measure-filters.js +++ b/server/sonar-web/src/main/js/api/measure-filters.js @@ -17,7 +17,7 @@ * along with this program; if not, write to the Free Software Foundation, * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ -import { post } from '../helpers/request.js'; +import { post } from '../helpers/request'; export function toggleMeasureFilter (id) { const url = '/measures/toggle_fav'; diff --git a/server/sonar-web/src/main/js/api/measures.js b/server/sonar-web/src/main/js/api/measures.js index b9ccc591132..c130bfb6ee3 100644 --- a/server/sonar-web/src/main/js/api/measures.js +++ b/server/sonar-web/src/main/js/api/measures.js @@ -17,7 +17,7 @@ * along with this program; if not, write to the Free Software Foundation, * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ -import { getJSON } from '../helpers/request.js'; +import { getJSON } from '../helpers/request'; export function getMeasures (componentKey, metrics) { const url = '/api/measures/component'; diff --git a/server/sonar-web/src/main/js/api/metrics.js b/server/sonar-web/src/main/js/api/metrics.js index 45f2500288c..d08b65f945a 100644 --- a/server/sonar-web/src/main/js/api/metrics.js +++ b/server/sonar-web/src/main/js/api/metrics.js @@ -17,7 +17,7 @@ * along with this program; if not, write to the Free Software Foundation, * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ -import { getJSON } from '../helpers/request.js'; +import { getJSON } from '../helpers/request'; export function getMetrics () { const url = '/api/metrics/search'; diff --git a/server/sonar-web/src/main/js/api/nav.js b/server/sonar-web/src/main/js/api/nav.js index 424c0a68536..6f53ec289b0 100644 --- a/server/sonar-web/src/main/js/api/nav.js +++ b/server/sonar-web/src/main/js/api/nav.js @@ -17,7 +17,7 @@ * along with this program; if not, write to the Free Software Foundation, * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ -import { getJSON } from '../helpers/request.js'; +import { getJSON } from '../helpers/request'; export function getGlobalNavigation () { const url = '/api/navigation/global'; diff --git a/server/sonar-web/src/main/js/api/quality-gates.js b/server/sonar-web/src/main/js/api/quality-gates.js index edab4f545ea..af6e09b3fb6 100644 --- a/server/sonar-web/src/main/js/api/quality-gates.js +++ b/server/sonar-web/src/main/js/api/quality-gates.js @@ -92,13 +92,13 @@ export function getGateForProject (projectKey) { return getJSON(url, data).then(r => r.qualityGate); } -export function associateGateWithProject(gateId, projectKey) { +export function associateGateWithProject (gateId, projectKey) { const url = '/api/qualitygates/select'; const data = { gateId, projectKey }; return post(url, data); } -export function dissociateGateWithProject(gateId, projectKey) { +export function dissociateGateWithProject (gateId, projectKey) { const url = '/api/qualitygates/deselect'; const data = { gateId, projectKey }; return post(url, data); diff --git a/server/sonar-web/src/main/js/api/time-machine.js b/server/sonar-web/src/main/js/api/time-machine.js index adf44fdbcac..25d65c43c71 100644 --- a/server/sonar-web/src/main/js/api/time-machine.js +++ b/server/sonar-web/src/main/js/api/time-machine.js @@ -17,7 +17,7 @@ * along with this program; if not, write to the Free Software Foundation, * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ -import { getJSON } from '../helpers/request.js'; +import { getJSON } from '../helpers/request'; export function getTimeMachineData (componentKey, metrics) { const url = '/api/timemachine/index'; diff --git a/server/sonar-web/src/main/js/api/user-tokens.js b/server/sonar-web/src/main/js/api/user-tokens.js index 493b0cb065e..3d93320f373 100644 --- a/server/sonar-web/src/main/js/api/user-tokens.js +++ b/server/sonar-web/src/main/js/api/user-tokens.js @@ -17,7 +17,7 @@ * along with this program; if not, write to the Free Software Foundation, * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ -import { getJSON, postJSON, post } from '../helpers/request.js'; +import { getJSON, postJSON, post } from '../helpers/request'; /** * List tokens for given user login diff --git a/server/sonar-web/src/main/js/api/users.js b/server/sonar-web/src/main/js/api/users.js index e5d5d15f7bc..9573d2c2131 100644 --- a/server/sonar-web/src/main/js/api/users.js +++ b/server/sonar-web/src/main/js/api/users.js @@ -17,7 +17,7 @@ * along with this program; if not, write to the Free Software Foundation, * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ -import { getJSON, post } from '../helpers/request.js'; +import { getJSON, post } from '../helpers/request'; export function getCurrentUser () { const url = '/api/users/current'; |