diff options
author | philippe-perrin-sonarsource <philippe.perrin@sonarsource.com> | 2019-07-18 17:17:58 +0200 |
---|---|---|
committer | SonarTech <sonartech@sonarsource.com> | 2019-07-19 20:21:16 +0200 |
commit | 46fea6a78e91056d85dc46ca8ab050829b9e1015 (patch) | |
tree | 5423291f04df49b7dbac69943806dc44a9095896 /server/sonar-web/src/main/js/apps/quality-profiles/changelog | |
parent | 1f0b0d4b14918e93290409c7a277e3ab1b79def6 (diff) | |
download | sonarqube-46fea6a78e91056d85dc46ca8ab050829b9e1015.tar.gz sonarqube-46fea6a78e91056d85dc46ca8ab050829b9e1015.zip |
Sort import in sonar-web
Diffstat (limited to 'server/sonar-web/src/main/js/apps/quality-profiles/changelog')
7 files changed, 12 insertions, 12 deletions
diff --git a/server/sonar-web/src/main/js/apps/quality-profiles/changelog/Changelog.tsx b/server/sonar-web/src/main/js/apps/quality-profiles/changelog/Changelog.tsx index 38515f1a09d..798169075ba 100644 --- a/server/sonar-web/src/main/js/apps/quality-profiles/changelog/Changelog.tsx +++ b/server/sonar-web/src/main/js/apps/quality-profiles/changelog/Changelog.tsx @@ -17,16 +17,16 @@ * along with this program; if not, write to the Free Software Foundation, * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ +import * as isSameMinute from 'date-fns/is_same_minute'; +import { sortBy } from 'lodash'; import * as React from 'react'; import { Link } from 'react-router'; -import { sortBy } from 'lodash'; -import * as isSameMinute from 'date-fns/is_same_minute'; import { parseDate } from 'sonar-ui-common/helpers/dates'; import { translate } from 'sonar-ui-common/helpers/l10n'; -import ChangesList from './ChangesList'; import DateTimeFormatter from '../../../components/intl/DateTimeFormatter'; import { getRulesUrl } from '../../../helpers/urls'; import { ProfileChangelogEvent } from '../types'; +import ChangesList from './ChangesList'; interface Props { events: ProfileChangelogEvent[]; diff --git a/server/sonar-web/src/main/js/apps/quality-profiles/changelog/ChangelogContainer.tsx b/server/sonar-web/src/main/js/apps/quality-profiles/changelog/ChangelogContainer.tsx index d0211605f04..aa92d3750f9 100644 --- a/server/sonar-web/src/main/js/apps/quality-profiles/changelog/ChangelogContainer.tsx +++ b/server/sonar-web/src/main/js/apps/quality-profiles/changelog/ChangelogContainer.tsx @@ -21,12 +21,12 @@ import * as React from 'react'; import { withRouter, WithRouterProps } from 'react-router'; import { parseDate, toShortNotSoISOString } from 'sonar-ui-common/helpers/dates'; import { translate } from 'sonar-ui-common/helpers/l10n'; -import Changelog from './Changelog'; -import ChangelogSearch from './ChangelogSearch'; -import ChangelogEmpty from './ChangelogEmpty'; import { getProfileChangelog } from '../../../api/quality-profiles'; -import { getProfileChangelogPath } from '../utils'; import { Profile, ProfileChangelogEvent } from '../types'; +import { getProfileChangelogPath } from '../utils'; +import Changelog from './Changelog'; +import ChangelogEmpty from './ChangelogEmpty'; +import ChangelogSearch from './ChangelogSearch'; interface Props extends WithRouterProps { organization: string | null; diff --git a/server/sonar-web/src/main/js/apps/quality-profiles/changelog/ChangelogSearch.tsx b/server/sonar-web/src/main/js/apps/quality-profiles/changelog/ChangelogSearch.tsx index f7a9937adef..d348cdf6712 100644 --- a/server/sonar-web/src/main/js/apps/quality-profiles/changelog/ChangelogSearch.tsx +++ b/server/sonar-web/src/main/js/apps/quality-profiles/changelog/ChangelogSearch.tsx @@ -18,8 +18,8 @@ * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ import * as React from 'react'; -import { translate } from 'sonar-ui-common/helpers/l10n'; import { Button } from 'sonar-ui-common/components/controls/buttons'; +import { translate } from 'sonar-ui-common/helpers/l10n'; import DateRangeInput from '../../../components/controls/DateRangeInput'; interface Props { diff --git a/server/sonar-web/src/main/js/apps/quality-profiles/changelog/ChangesList.tsx b/server/sonar-web/src/main/js/apps/quality-profiles/changelog/ChangesList.tsx index 2f27ed4c65d..62f4285966e 100644 --- a/server/sonar-web/src/main/js/apps/quality-profiles/changelog/ChangesList.tsx +++ b/server/sonar-web/src/main/js/apps/quality-profiles/changelog/ChangesList.tsx @@ -18,8 +18,8 @@ * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ import * as React from 'react'; -import SeverityChange from './SeverityChange'; import ParameterChange from './ParameterChange'; +import SeverityChange from './SeverityChange'; interface Props { changes: T.Dict<string | null>; diff --git a/server/sonar-web/src/main/js/apps/quality-profiles/changelog/__tests__/Changelog-test.tsx b/server/sonar-web/src/main/js/apps/quality-profiles/changelog/__tests__/Changelog-test.tsx index 4afbc84b778..c90da95cb97 100644 --- a/server/sonar-web/src/main/js/apps/quality-profiles/changelog/__tests__/Changelog-test.tsx +++ b/server/sonar-web/src/main/js/apps/quality-profiles/changelog/__tests__/Changelog-test.tsx @@ -19,9 +19,9 @@ */ import { shallow } from 'enzyme'; import * as React from 'react'; +import { ProfileChangelogEvent } from '../../types'; import Changelog from '../Changelog'; import ChangesList from '../ChangesList'; -import { ProfileChangelogEvent } from '../../types'; function createEvent(overrides?: Partial<ProfileChangelogEvent>): ProfileChangelogEvent { return { diff --git a/server/sonar-web/src/main/js/apps/quality-profiles/changelog/__tests__/ChangesList-test.tsx b/server/sonar-web/src/main/js/apps/quality-profiles/changelog/__tests__/ChangesList-test.tsx index 6fb2f6e823d..8b905783bf7 100644 --- a/server/sonar-web/src/main/js/apps/quality-profiles/changelog/__tests__/ChangesList-test.tsx +++ b/server/sonar-web/src/main/js/apps/quality-profiles/changelog/__tests__/ChangesList-test.tsx @@ -20,8 +20,8 @@ import { shallow } from 'enzyme'; import * as React from 'react'; import ChangesList from '../ChangesList'; -import SeverityChange from '../SeverityChange'; import ParameterChange from '../ParameterChange'; +import SeverityChange from '../SeverityChange'; it('should render changes', () => { const changes = { severity: 'BLOCKER', foo: 'bar' }; diff --git a/server/sonar-web/src/main/js/apps/quality-profiles/changelog/__tests__/SeverityChange-test.tsx b/server/sonar-web/src/main/js/apps/quality-profiles/changelog/__tests__/SeverityChange-test.tsx index 660d2bfcb13..1370cab088b 100644 --- a/server/sonar-web/src/main/js/apps/quality-profiles/changelog/__tests__/SeverityChange-test.tsx +++ b/server/sonar-web/src/main/js/apps/quality-profiles/changelog/__tests__/SeverityChange-test.tsx @@ -19,8 +19,8 @@ */ import { shallow } from 'enzyme'; import * as React from 'react'; -import SeverityChange from '../SeverityChange'; import SeverityHelper from '../../../../components/shared/SeverityHelper'; +import SeverityChange from '../SeverityChange'; it('should render SeverityHelper', () => { const output = shallow(<SeverityChange severity="BLOCKER" />).find(SeverityHelper); |