@@ -37,7 +37,7 @@ | |||
"enzyme-adapter-react-16": "1.14.0", | |||
"enzyme-to-json": "3.3.5", | |||
"eslint": "5.16.0", | |||
"eslint-config-sonarqube": "0.5.0", | |||
"eslint-config-sonarqube": "0.5.1", | |||
"eslint-plugin-import": "2.18.0", | |||
"eslint-plugin-jsx-a11y": "6.2.1", | |||
"eslint-plugin-promise": "4.1.1", |
@@ -4146,10 +4146,10 @@ eslint-config-react-app@^3.0.0: | |||
dependencies: | |||
confusing-browser-globals "^1.0.6" | |||
eslint-config-sonarqube@0.5.0: | |||
version "0.5.0" | |||
resolved "https://repox.jfrog.io/repox/api/npm/npm/eslint-config-sonarqube/-/eslint-config-sonarqube-0.5.0.tgz#8b06475a46fe4a58c527894ab79e07acd8d8c345" | |||
integrity sha1-iwZHWkb+SljFJ4lKt54HrNjYw0U= | |||
eslint-config-sonarqube@0.5.1: | |||
version "0.5.1" | |||
resolved "https://repox.jfrog.io/repox/api/npm/npm/eslint-config-sonarqube/-/eslint-config-sonarqube-0.5.1.tgz#787f7226aea228fcc299dd996d1cc07e2c9f786b" | |||
integrity sha1-eH9yJq6iKPzCmd2ZbRzAfiyfeGs= | |||
eslint-import-resolver-node@^0.3.2: | |||
version "0.3.2" |
@@ -48,7 +48,7 @@ | |||
"enzyme-to-json": "3.3.5", | |||
"escape-string-regexp": "1.0.5", | |||
"eslint": "5.16.0", | |||
"eslint-config-sonarqube": "0.5.0", | |||
"eslint-config-sonarqube": "0.5.1", | |||
"eslint-plugin-import": "2.18.0", | |||
"eslint-plugin-jsx-a11y": "6.2.1", | |||
"eslint-plugin-promise": "4.1.1", |
@@ -3471,10 +3471,10 @@ escodegen@^1.9.1: | |||
optionalDependencies: | |||
source-map "~0.6.1" | |||
eslint-config-sonarqube@0.5.0: | |||
version "0.5.0" | |||
resolved "https://repox.jfrog.io/repox/api/npm/npm/eslint-config-sonarqube/-/eslint-config-sonarqube-0.5.0.tgz#8b06475a46fe4a58c527894ab79e07acd8d8c345" | |||
integrity sha1-iwZHWkb+SljFJ4lKt54HrNjYw0U= | |||
eslint-config-sonarqube@0.5.1: | |||
version "0.5.1" | |||
resolved "https://repox.jfrog.io/repox/api/npm/npm/eslint-config-sonarqube/-/eslint-config-sonarqube-0.5.1.tgz#787f7226aea228fcc299dd996d1cc07e2c9f786b" | |||
integrity sha1-eH9yJq6iKPzCmd2ZbRzAfiyfeGs= | |||
eslint-import-resolver-node@^0.3.2: | |||
version "0.3.2" |
@@ -87,7 +87,7 @@ | |||
"enzyme-to-json": "3.3.5", | |||
"escape-string-regexp": "1.0.5", | |||
"eslint": "5.16.0", | |||
"eslint-config-sonarqube": "0.5.0", | |||
"eslint-config-sonarqube": "0.5.1", | |||
"eslint-plugin-import": "2.18.0", | |||
"eslint-plugin-jsx-a11y": "6.2.1", | |||
"eslint-plugin-promise": "4.1.1", |
@@ -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. | |||
*/ | |||
/* eslint-disable import/order */ | |||
import { shallow } from 'enzyme'; | |||
import * as React from 'react'; | |||
import { click } from 'sonar-ui-common/helpers/testUtils'; |
@@ -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. | |||
*/ | |||
/* eslint-disable import/order */ | |||
import { shallow } from 'enzyme'; | |||
import * as React from 'react'; | |||
import { waitAndUpdate } from 'sonar-ui-common/helpers/testUtils'; |
@@ -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. | |||
*/ | |||
/* eslint-disable import/order */ | |||
import { shallow } from 'enzyme'; | |||
import * as React from 'react'; | |||
import { click } from 'sonar-ui-common/helpers/testUtils'; |
@@ -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. | |||
*/ | |||
/* eslint-disable import/order */ | |||
import { shallow } from 'enzyme'; | |||
import * as React from 'react'; | |||
import { click } from 'sonar-ui-common/helpers/testUtils'; |
@@ -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. | |||
*/ | |||
/* eslint-disable import/first, import/order */ | |||
/* eslint-disable import/first */ | |||
jest.mock('../../../../api/ce', () => ({ | |||
setWorkerCount: () => Promise.resolve() | |||
})); |
@@ -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. | |||
*/ | |||
/* eslint-disable import/order */ | |||
import { shallow } from 'enzyme'; | |||
import * as React from 'react'; | |||
import RuleDetailsTagsPopup, { Props } from '../RuleDetailsTagsPopup'; |
@@ -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. | |||
*/ | |||
/* eslint-disable import/order */ | |||
import { shallow } from 'enzyme'; | |||
import * as React from 'react'; | |||
import { click, waitAndUpdate } from 'sonar-ui-common/helpers/testUtils'; |
@@ -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. | |||
*/ | |||
/* eslint-disable import/order, import/first */ | |||
/* eslint-disable import/first */ | |||
import { mount, shallow } from 'enzyme'; | |||
import * as React from 'react'; | |||
import { searchProjectTags } from '../../../../api/components'; |
@@ -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. | |||
*/ | |||
/* eslint-disable import/first, import/order */ | |||
/* eslint-disable import/first */ | |||
jest.mock('../../../../api/measures', () => ({ | |||
getMeasures: jest.fn(() => Promise.resolve([])) | |||
})); |
@@ -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. | |||
*/ | |||
/* eslint-disable import/first, import/order */ | |||
/* eslint-disable import/first */ | |||
jest.mock('../../../../api/report', () => { | |||
const report = require.requireActual('../../../../api/report'); | |||
report.getReportStatus = jest.fn(() => Promise.resolve({})); |
@@ -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. | |||
*/ | |||
/* eslint-disable import/first, import/order */ | |||
/* eslint-disable import/first */ | |||
jest.mock('../../../../api/report', () => { | |||
const report = require.requireActual('../../../../api/report'); | |||
report.subscribe = jest.fn(() => Promise.resolve()); |
@@ -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. | |||
*/ | |||
/* eslint-disable import/order */ | |||
import { shallow } from 'enzyme'; | |||
import * as React from 'react'; | |||
import { click } from 'sonar-ui-common/helpers/testUtils'; |
@@ -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. | |||
*/ | |||
/* eslint-disable import/first, import/order */ | |||
/* eslint-disable import/first */ | |||
jest.mock('../../../../api/settings', () => ({ | |||
setSimpleSettingValue: jest.fn(() => Promise.resolve()), | |||
resetSettingValue: jest.fn(() => Promise.resolve()) |
@@ -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. | |||
*/ | |||
/* eslint-disable import/first, import/order */ | |||
/* eslint-disable import/first */ | |||
jest.mock('../../../api/quality-gates', () => ({ | |||
associateGateWithProject: jest.fn(() => Promise.resolve()), | |||
dissociateGateWithProject: jest.fn(() => Promise.resolve()), |
@@ -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. | |||
*/ | |||
/* eslint-disable import/first, import/order */ | |||
/* eslint-disable import/first */ | |||
jest.mock('../../../api/quality-profiles', () => ({ | |||
associateProject: jest.fn(() => Promise.resolve()), | |||
dissociateProject: jest.fn(() => Promise.resolve()), |
@@ -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. | |||
*/ | |||
/* eslint-disable import/order */ | |||
import { shallow } from 'enzyme'; | |||
import * as React from 'react'; | |||
import { get, save } from 'sonar-ui-common/helpers/storage'; |
@@ -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. | |||
*/ | |||
/* eslint-disable import/order */ | |||
import { shallow } from 'enzyme'; | |||
import * as React from 'react'; | |||
import App, { Props } from '../App'; |
@@ -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. | |||
*/ | |||
/* eslint-disable import/order */ | |||
import { mount, shallow } from 'enzyme'; | |||
import * as React from 'react'; | |||
import { parseDate } from 'sonar-ui-common/helpers/dates'; |
@@ -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. | |||
*/ | |||
/* eslint-disable import/first, import/order */ | |||
/* eslint-disable import/first */ | |||
jest.mock('../../../api/components', () => ({ | |||
createProject: jest.fn(({ name }: { name: string }) => | |||
Promise.resolve({ project: { key: name, name } }) |
@@ -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. | |||
*/ | |||
/* eslint-disable import/first, import/order */ | |||
/* eslint-disable import/first */ | |||
jest.mock('../../../api/components', () => ({ | |||
bulkDeleteProjects: jest.fn(() => Promise.resolve()) | |||
})); |
@@ -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. | |||
*/ | |||
/* eslint-disable import/order */ | |||
import { mount, shallow } from 'enzyme'; | |||
import * as React from 'react'; | |||
import { click, waitAndUpdate } from 'sonar-ui-common/helpers/testUtils'; |
@@ -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. | |||
*/ | |||
/* eslint-disable import/first, import/order */ | |||
/* eslint-disable import/first */ | |||
jest.mock('../../../../api/quality-profiles', () => ({ | |||
addUser: jest.fn(() => Promise.resolve()), | |||
addGroup: jest.fn(() => Promise.resolve()) |
@@ -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. | |||
*/ | |||
/* eslint-disable import/first, import/order */ | |||
/* eslint-disable import/first */ | |||
jest.mock('../../../../api/quality-profiles', () => ({ | |||
removeGroup: jest.fn(() => Promise.resolve()) | |||
})); |
@@ -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. | |||
*/ | |||
/* eslint-disable import/order */ | |||
import { shallow } from 'enzyme'; | |||
import * as React from 'react'; | |||
import DefinitionActions from '../DefinitionActions'; |
@@ -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. | |||
*/ | |||
/* eslint-disable import/order */ | |||
import { mount, shallow } from 'enzyme'; | |||
import * as React from 'react'; | |||
import { click, waitAndUpdate } from 'sonar-ui-common/helpers/testUtils'; |
@@ -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. | |||
*/ | |||
/* eslint-disable import/order */ | |||
import { shallow } from 'enzyme'; | |||
import * as React from 'react'; | |||
import { waitAndUpdate } from 'sonar-ui-common/helpers/testUtils'; |
@@ -3711,10 +3711,10 @@ escodegen@^1.9.1: | |||
optionalDependencies: | |||
source-map "~0.6.1" | |||
eslint-config-sonarqube@0.5.0: | |||
version "0.5.0" | |||
resolved "https://repox.jfrog.io/repox/api/npm/npm/eslint-config-sonarqube/-/eslint-config-sonarqube-0.5.0.tgz#8b06475a46fe4a58c527894ab79e07acd8d8c345" | |||
integrity sha1-iwZHWkb+SljFJ4lKt54HrNjYw0U= | |||
eslint-config-sonarqube@0.5.1: | |||
version "0.5.1" | |||
resolved "https://repox.jfrog.io/repox/api/npm/npm/eslint-config-sonarqube/-/eslint-config-sonarqube-0.5.1.tgz#787f7226aea228fcc299dd996d1cc07e2c9f786b" | |||
integrity sha1-eH9yJq6iKPzCmd2ZbRzAfiyfeGs= | |||
eslint-import-resolver-node@^0.3.2: | |||
version "0.3.2" |