aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-web/src
diff options
context:
space:
mode:
Diffstat (limited to 'server/sonar-web/src')
-rw-r--r--server/sonar-web/src/main/js/api/news.ts1
-rw-r--r--server/sonar-web/src/main/js/api/quality-profiles.ts2
-rw-r--r--server/sonar-web/src/main/js/app/components/MigrationContainer.tsx1
-rw-r--r--server/sonar-web/src/main/js/app/utils/handleRequiredAuthentication.ts5
-rw-r--r--server/sonar-web/src/main/js/app/utils/handleRequiredAuthorization.ts5
-rw-r--r--server/sonar-web/src/main/js/apps/code/components/__tests__/App-test.tsx1
-rw-r--r--server/sonar-web/src/main/js/apps/coding-rules/components/CustomRuleFormModal.tsx2
-rw-r--r--server/sonar-web/src/main/js/apps/coding-rules/components/RuleDetailsCustomRules.tsx2
-rw-r--r--server/sonar-web/src/main/js/apps/coding-rules/components/RuleDetailsDescription.tsx2
-rw-r--r--server/sonar-web/src/main/js/apps/coding-rules/query.ts2
-rw-r--r--server/sonar-web/src/main/js/apps/component-measures/components/__tests__/App-test.tsx1
-rw-r--r--server/sonar-web/src/main/js/apps/component-measures/config/bubbles.ts1
-rw-r--r--server/sonar-web/src/main/js/apps/component-measures/config/complementary.ts1
-rw-r--r--server/sonar-web/src/main/js/apps/component-measures/drilldown/__tests__/ComponentList-test.tsx1
-rw-r--r--server/sonar-web/src/main/js/apps/component-measures/drilldown/__tests__/FilesView-test.tsx1
-rw-r--r--server/sonar-web/src/main/js/apps/create/organization/__tests__/ChooseRemoteOrganizationStep-test.tsx2
-rw-r--r--server/sonar-web/src/main/js/apps/create/organization/__tests__/CreateOrganization-test.tsx8
-rw-r--r--server/sonar-web/src/main/js/apps/create/organization/utils.ts1
-rw-r--r--server/sonar-web/src/main/js/apps/issues/components/BulkChangeModal.tsx4
-rw-r--r--server/sonar-web/src/main/js/apps/issues/sidebar/RuleFacet.tsx1
-rw-r--r--server/sonar-web/src/main/js/apps/maintenance/components/App.tsx1
-rw-r--r--server/sonar-web/src/main/js/apps/maintenance/components/MaintenanceAppContainer.tsx1
-rw-r--r--server/sonar-web/src/main/js/apps/maintenance/components/SetupAppContainer.tsx1
-rw-r--r--server/sonar-web/src/main/js/apps/overview/qualityGate/QualityGateCondition.tsx2
-rw-r--r--server/sonar-web/src/main/js/apps/projectActivity/components/GraphsTooltipsContentIssues.tsx2
-rw-r--r--server/sonar-web/src/main/js/apps/projectActivity/utils.ts4
-rw-r--r--server/sonar-web/src/main/js/apps/projects/components/__tests__/AllProjects-test.tsx2
-rw-r--r--server/sonar-web/src/main/js/apps/projects/components/__tests__/ProjectCardLeak-test.tsx2
-rw-r--r--server/sonar-web/src/main/js/apps/projects/query.ts1
-rw-r--r--server/sonar-web/src/main/js/apps/projects/utils.ts1
-rw-r--r--server/sonar-web/src/main/js/apps/projects/visualizations/__tests__/SimpleBubbleChart-test.tsx1
-rw-r--r--server/sonar-web/src/main/js/apps/sessions/components/LoginContainer.tsx5
-rw-r--r--server/sonar-web/src/main/js/components/icons-components/QualifierIcon.tsx1
-rw-r--r--server/sonar-web/src/main/js/helpers/urls.ts2
34 files changed, 15 insertions, 55 deletions
diff --git a/server/sonar-web/src/main/js/api/news.ts b/server/sonar-web/src/main/js/api/news.ts
index a262a9e14ea..6e246198027 100644
--- a/server/sonar-web/src/main/js/api/news.ts
+++ b/server/sonar-web/src/main/js/api/news.ts
@@ -17,7 +17,6 @@
* 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 camelcase */
import { getCorsJSON } from '../helpers/request';
interface PrismicRef {
diff --git a/server/sonar-web/src/main/js/api/quality-profiles.ts b/server/sonar-web/src/main/js/api/quality-profiles.ts
index 93e0c1d5064..d07a6194341 100644
--- a/server/sonar-web/src/main/js/api/quality-profiles.ts
+++ b/server/sonar-web/src/main/js/api/quality-profiles.ts
@@ -242,7 +242,6 @@ export function removeGroup(parameters: AddRemoveGroupParameters): Promise<void
}
export interface BulkActivateParameters {
- /* eslint-disable camelcase */
activation?: boolean;
active_severities?: string;
asc?: boolean;
@@ -264,7 +263,6 @@ export interface BulkActivateParameters {
targetSeverity?: string;
template_key?: string;
types?: string;
- /* eslint-enable camelcase */
}
export function bulkActivateRules(data: BulkActivateParameters) {
diff --git a/server/sonar-web/src/main/js/app/components/MigrationContainer.tsx b/server/sonar-web/src/main/js/app/components/MigrationContainer.tsx
index ab47d5f6402..921b99ae58c 100644
--- a/server/sonar-web/src/main/js/app/components/MigrationContainer.tsx
+++ b/server/sonar-web/src/main/js/app/components/MigrationContainer.tsx
@@ -27,7 +27,6 @@ export default class MigrationContainer extends React.PureComponent<WithRouterPr
this.props.router.push({
pathname: '/maintenance',
query: {
- // eslint-disable-next-line camelcase
return_to: window.location.pathname + window.location.search + window.location.hash
}
});
diff --git a/server/sonar-web/src/main/js/app/utils/handleRequiredAuthentication.ts b/server/sonar-web/src/main/js/app/utils/handleRequiredAuthentication.ts
index aaf5732e0ba..c2fa838ddd3 100644
--- a/server/sonar-web/src/main/js/app/utils/handleRequiredAuthentication.ts
+++ b/server/sonar-web/src/main/js/app/utils/handleRequiredAuthentication.ts
@@ -22,8 +22,5 @@ import getHistory from './getHistory';
export default function handleRequiredAuthentication() {
const history = getHistory();
const returnTo = window.location.pathname + window.location.search + window.location.hash;
- history.replace({
- pathname: '/sessions/new',
- query: { return_to: returnTo } // eslint-disable-line camelcase
- });
+ history.replace({ pathname: '/sessions/new', query: { return_to: returnTo } });
}
diff --git a/server/sonar-web/src/main/js/app/utils/handleRequiredAuthorization.ts b/server/sonar-web/src/main/js/app/utils/handleRequiredAuthorization.ts
index a3a32b38ba6..abef1f710b5 100644
--- a/server/sonar-web/src/main/js/app/utils/handleRequiredAuthorization.ts
+++ b/server/sonar-web/src/main/js/app/utils/handleRequiredAuthorization.ts
@@ -28,8 +28,5 @@ export default function handleRequiredAuthorization() {
const returnTo = window.location.pathname + window.location.search + window.location.hash;
store.dispatch(requireAuthorization());
- history.replace({
- pathname: '/sessions/new',
- query: { return_to: returnTo } // eslint-disable-line camelcase
- });
+ history.replace({ pathname: '/sessions/new', query: { return_to: returnTo } });
}
diff --git a/server/sonar-web/src/main/js/apps/code/components/__tests__/App-test.tsx b/server/sonar-web/src/main/js/apps/code/components/__tests__/App-test.tsx
index 42b5af7bb2f..6adceba5c56 100644
--- a/server/sonar-web/src/main/js/apps/code/components/__tests__/App-test.tsx
+++ b/server/sonar-web/src/main/js/apps/code/components/__tests__/App-test.tsx
@@ -17,7 +17,6 @@
* 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 camelcase */
import * as React from 'react';
import { shallow } from 'enzyme';
import { App } from '../App';
diff --git a/server/sonar-web/src/main/js/apps/coding-rules/components/CustomRuleFormModal.tsx b/server/sonar-web/src/main/js/apps/coding-rules/components/CustomRuleFormModal.tsx
index d36fa16ea74..43433e1c308 100644
--- a/server/sonar-web/src/main/js/apps/coding-rules/components/CustomRuleFormModal.tsx
+++ b/server/sonar-web/src/main/js/apps/coding-rules/components/CustomRuleFormModal.tsx
@@ -87,7 +87,6 @@ export default class CustomRuleFormModal extends React.PureComponent<Props, Stat
}
prepareRequest = () => {
- /* eslint-disable camelcase */
const { customRule, organization, templateRule } = this.props;
const params = Object.keys(this.state.params)
.map(key => `${key}=${csvEscape(this.state.params[key])}`)
@@ -109,7 +108,6 @@ export default class CustomRuleFormModal extends React.PureComponent<Props, Stat
template_key: templateRule.key,
type: this.state.type
});
- /* eslint-enable camelcase */
};
handleFormSubmit = (event: React.SyntheticEvent<HTMLFormElement>) => {
diff --git a/server/sonar-web/src/main/js/apps/coding-rules/components/RuleDetailsCustomRules.tsx b/server/sonar-web/src/main/js/apps/coding-rules/components/RuleDetailsCustomRules.tsx
index ac0e20cafed..3e5a9bebcac 100644
--- a/server/sonar-web/src/main/js/apps/coding-rules/components/RuleDetailsCustomRules.tsx
+++ b/server/sonar-web/src/main/js/apps/coding-rules/components/RuleDetailsCustomRules.tsx
@@ -65,9 +65,7 @@ export default class RuleDetailsCustomRules extends React.PureComponent<Props, S
searchRules({
f: 'name,severity,params',
organization: this.props.organization,
- /* eslint-disable camelcase */
template_key: this.props.ruleDetails.key
- /* eslint-enable camelcase */
}).then(
({ rules }) => {
if (this.mounted) {
diff --git a/server/sonar-web/src/main/js/apps/coding-rules/components/RuleDetailsDescription.tsx b/server/sonar-web/src/main/js/apps/coding-rules/components/RuleDetailsDescription.tsx
index 7e8889b80ad..1b9ae650cb4 100644
--- a/server/sonar-web/src/main/js/apps/coding-rules/components/RuleDetailsDescription.tsx
+++ b/server/sonar-web/src/main/js/apps/coding-rules/components/RuleDetailsDescription.tsx
@@ -83,9 +83,7 @@ export default class RuleDetailsDescription extends React.PureComponent<Props, S
updateRule({
key: this.props.ruleDetails.key,
- /* eslint-disable camelcase */
markdown_note: text,
- /* eslint-enable camelcase*/
organization: this.props.organization
}).then(
ruleDetails => {
diff --git a/server/sonar-web/src/main/js/apps/coding-rules/query.ts b/server/sonar-web/src/main/js/apps/coding-rules/query.ts
index c893b5f1d77..6fc8f3c0209 100644
--- a/server/sonar-web/src/main/js/apps/coding-rules/query.ts
+++ b/server/sonar-web/src/main/js/apps/coding-rules/query.ts
@@ -93,7 +93,6 @@ export function parseQuery(query: RawQuery): Query {
}
export function serializeQuery(query: Query): RawQuery {
- /* eslint-disable camelcase */
return cleanQuery({
activation: serializeOptionalBoolean(query.activation),
active_severities: serializeStringArray(query.activationSeverities),
@@ -111,7 +110,6 @@ export function serializeQuery(query: Query): RawQuery {
tags: serializeStringArray(query.tags),
types: serializeStringArray(query.types)
});
- /* eslint-enable camelcase */
}
export function areQueriesEqual(a: RawQuery, b: RawQuery) {
diff --git a/server/sonar-web/src/main/js/apps/component-measures/components/__tests__/App-test.tsx b/server/sonar-web/src/main/js/apps/component-measures/components/__tests__/App-test.tsx
index 4880363f374..c8f9c2bd512 100644
--- a/server/sonar-web/src/main/js/apps/component-measures/components/__tests__/App-test.tsx
+++ b/server/sonar-web/src/main/js/apps/component-measures/components/__tests__/App-test.tsx
@@ -17,7 +17,6 @@
* 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 camelcase */
import * as React from 'react';
import { shallow } from 'enzyme';
import App from '../App';
diff --git a/server/sonar-web/src/main/js/apps/component-measures/config/bubbles.ts b/server/sonar-web/src/main/js/apps/component-measures/config/bubbles.ts
index 0b432457a90..0e8d195f988 100644
--- a/server/sonar-web/src/main/js/apps/component-measures/config/bubbles.ts
+++ b/server/sonar-web/src/main/js/apps/component-measures/config/bubbles.ts
@@ -46,7 +46,6 @@ export const bubbles: {
},
Coverage: { x: 'complexity', y: 'coverage', size: 'uncovered_lines', yDomain: [100, 0] },
Duplications: { x: 'ncloc', y: 'duplicated_lines', size: 'duplicated_blocks' },
- // eslint-disable-next-line camelcase
project_overview: {
x: 'sqale_index',
y: 'coverage',
diff --git a/server/sonar-web/src/main/js/apps/component-measures/config/complementary.ts b/server/sonar-web/src/main/js/apps/component-measures/config/complementary.ts
index 9c9824c6a4b..d9d8ecc9d26 100644
--- a/server/sonar-web/src/main/js/apps/component-measures/config/complementary.ts
+++ b/server/sonar-web/src/main/js/apps/component-measures/config/complementary.ts
@@ -17,7 +17,6 @@
* 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 camelcase */
export const complementary: { [metric: string]: string[] } = {
coverage: ['uncovered_lines', 'uncovered_conditions'],
line_coverage: ['uncovered_lines'],
diff --git a/server/sonar-web/src/main/js/apps/component-measures/drilldown/__tests__/ComponentList-test.tsx b/server/sonar-web/src/main/js/apps/component-measures/drilldown/__tests__/ComponentList-test.tsx
index 38c5bccbcac..3057039cb24 100644
--- a/server/sonar-web/src/main/js/apps/component-measures/drilldown/__tests__/ComponentList-test.tsx
+++ b/server/sonar-web/src/main/js/apps/component-measures/drilldown/__tests__/ComponentList-test.tsx
@@ -17,7 +17,6 @@
* 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 camelcase */
import * as React from 'react';
import { shallow } from 'enzyme';
import ComponentsList from '../ComponentsList';
diff --git a/server/sonar-web/src/main/js/apps/component-measures/drilldown/__tests__/FilesView-test.tsx b/server/sonar-web/src/main/js/apps/component-measures/drilldown/__tests__/FilesView-test.tsx
index b9cce0022db..61c0138d374 100644
--- a/server/sonar-web/src/main/js/apps/component-measures/drilldown/__tests__/FilesView-test.tsx
+++ b/server/sonar-web/src/main/js/apps/component-measures/drilldown/__tests__/FilesView-test.tsx
@@ -17,7 +17,6 @@
* 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 camelcase */
import * as React from 'react';
import { shallow } from 'enzyme';
import FilesView from '../FilesView';
diff --git a/server/sonar-web/src/main/js/apps/create/organization/__tests__/ChooseRemoteOrganizationStep-test.tsx b/server/sonar-web/src/main/js/apps/create/organization/__tests__/ChooseRemoteOrganizationStep-test.tsx
index 40d80e0b4bb..5c08a1d8072 100644
--- a/server/sonar-web/src/main/js/apps/create/organization/__tests__/ChooseRemoteOrganizationStep-test.tsx
+++ b/server/sonar-web/src/main/js/apps/create/organization/__tests__/ChooseRemoteOrganizationStep-test.tsx
@@ -43,7 +43,7 @@ it('should display unbound installations', () => {
submit(wrapper.find('form'));
expect(push).toHaveBeenCalledWith({
pathname: '/create-organization',
- query: { installation_id: installation.installationId } // eslint-disable-line camelcase
+ query: { installation_id: installation.installationId }
});
});
diff --git a/server/sonar-web/src/main/js/apps/create/organization/__tests__/CreateOrganization-test.tsx b/server/sonar-web/src/main/js/apps/create/organization/__tests__/CreateOrganization-test.tsx
index 1c505aab71d..14434ece244 100644
--- a/server/sonar-web/src/main/js/apps/create/organization/__tests__/CreateOrganization-test.tsx
+++ b/server/sonar-web/src/main/js/apps/create/organization/__tests__/CreateOrganization-test.tsx
@@ -117,7 +117,7 @@ it('should render with auto tab displayed', async () => {
it('should render with auto tab selected and manual disabled', async () => {
const wrapper = shallowRender({
currentUser: { ...user, externalProvider: 'github' },
- location: { query: { installation_id: 'foo' } } as Location // eslint-disable-line camelcase
+ location: { query: { installation_id: 'foo' } } as Location
});
expect(wrapper).toMatchSnapshot();
await waitAndUpdate(wrapper);
@@ -138,7 +138,7 @@ it('should render with auto personal organization bind page', async () => {
});
const wrapper = shallowRender({
currentUser: { ...user, externalProvider: 'github', personalOrganization: 'foo' },
- location: { query: { installation_id: 'foo' } } as Location // eslint-disable-line camelcase
+ location: { query: { installation_id: 'foo' } } as Location
});
expect(wrapper).toMatchSnapshot();
await waitAndUpdate(wrapper);
@@ -159,7 +159,7 @@ it('should slugify and find a uniq organization key', async () => {
});
const wrapper = shallowRender({
currentUser: { ...user, externalProvider: 'github' },
- location: { query: { installation_id: 'foo' } } as Location // eslint-disable-line camelcase
+ location: { query: { installation_id: 'foo' } } as Location
});
await waitAndUpdate(wrapper);
expect(getOrganizations).toHaveBeenCalledWith({
@@ -194,7 +194,7 @@ it('should reload the alm organization when the url query changes', async () =>
const wrapper = shallowRender({ currentUser: { ...user, externalProvider: 'github' } });
await waitAndUpdate(wrapper);
expect(getAlmOrganization).not.toHaveBeenCalled();
- wrapper.setProps({ location: { query: { installation_id: 'foo' } } }); // eslint-disable-line camelcase
+ wrapper.setProps({ location: { query: { installation_id: 'foo' } } });
expect(getAlmOrganization).toHaveBeenCalledWith({ installationId: 'foo' });
wrapper.setProps({ location: { query: {} } });
expect(wrapper.state('almOrganization')).toBeUndefined();
diff --git a/server/sonar-web/src/main/js/apps/create/organization/utils.ts b/server/sonar-web/src/main/js/apps/create/organization/utils.ts
index 1020a9288fa..ba213b597af 100644
--- a/server/sonar-web/src/main/js/apps/create/organization/utils.ts
+++ b/server/sonar-web/src/main/js/apps/create/organization/utils.ts
@@ -59,7 +59,6 @@ export const parseQuery = memoize(
export const serializeQuery = (query: Query): RawQuery =>
cleanQuery({
- // eslint-disable-next-line camelcase
installation_id: isGithub(query.almKey) ? serializeString(query.almInstallId) : undefined,
clientKey: isBitbucket(query.almKey) ? serializeString(query.almInstallId) : undefined
});
diff --git a/server/sonar-web/src/main/js/apps/issues/components/BulkChangeModal.tsx b/server/sonar-web/src/main/js/apps/issues/components/BulkChangeModal.tsx
index 6df59fe2ccb..0438b4d4c13 100644
--- a/server/sonar-web/src/main/js/apps/issues/components/BulkChangeModal.tsx
+++ b/server/sonar-web/src/main/js/apps/issues/components/BulkChangeModal.tsx
@@ -202,7 +202,7 @@ export default class BulkChangeModal extends React.PureComponent<Props, State> {
handleSubmit = (event: React.FormEvent<HTMLFormElement>) => {
event.preventDefault();
- /* eslint-disable camelcase */
+
const query = pickBy(
{
add_tags: this.state.addTags && this.state.addTags.map(t => t.value).join(),
@@ -216,7 +216,7 @@ export default class BulkChangeModal extends React.PureComponent<Props, State> {
},
x => x !== undefined
);
- /* eslint-enable camelcase */
+
const issueKeys = this.state.issues.map(issue => issue.key);
this.setState({ submitting: true });
diff --git a/server/sonar-web/src/main/js/apps/issues/sidebar/RuleFacet.tsx b/server/sonar-web/src/main/js/apps/issues/sidebar/RuleFacet.tsx
index 27dcbf3e4cb..645fe829f73 100644
--- a/server/sonar-web/src/main/js/apps/issues/sidebar/RuleFacet.tsx
+++ b/server/sonar-web/src/main/js/apps/issues/sidebar/RuleFacet.tsx
@@ -50,7 +50,6 @@ export default class RuleFacet extends React.PureComponent<Props> {
p: page,
ps: 30,
s: 'name',
- // eslint-disable-next-line camelcase
include_external: true
}).then(response => ({
paging: { pageIndex: response.p, pageSize: response.ps, total: response.total },
diff --git a/server/sonar-web/src/main/js/apps/maintenance/components/App.tsx b/server/sonar-web/src/main/js/apps/maintenance/components/App.tsx
index 5d682a3a54d..adfe9b1fce5 100644
--- a/server/sonar-web/src/main/js/apps/maintenance/components/App.tsx
+++ b/server/sonar-web/src/main/js/apps/maintenance/components/App.tsx
@@ -31,7 +31,6 @@ import { isSonarCloud } from '../../../helpers/system';
import '../styles.css';
interface Props {
- // eslint-disable-next-line camelcase
location: { query: { return_to?: string } };
setup: boolean;
}
diff --git a/server/sonar-web/src/main/js/apps/maintenance/components/MaintenanceAppContainer.tsx b/server/sonar-web/src/main/js/apps/maintenance/components/MaintenanceAppContainer.tsx
index 1a84ccdcd6d..518ee4a27d2 100644
--- a/server/sonar-web/src/main/js/apps/maintenance/components/MaintenanceAppContainer.tsx
+++ b/server/sonar-web/src/main/js/apps/maintenance/components/MaintenanceAppContainer.tsx
@@ -21,7 +21,6 @@ import * as React from 'react';
import App from './App';
interface Props {
- // eslint-disable-next-line camelcase
location: { query: { return_to: string } };
}
diff --git a/server/sonar-web/src/main/js/apps/maintenance/components/SetupAppContainer.tsx b/server/sonar-web/src/main/js/apps/maintenance/components/SetupAppContainer.tsx
index 4cd1e8fe5b5..382957cb5f2 100644
--- a/server/sonar-web/src/main/js/apps/maintenance/components/SetupAppContainer.tsx
+++ b/server/sonar-web/src/main/js/apps/maintenance/components/SetupAppContainer.tsx
@@ -21,7 +21,6 @@ import * as React from 'react';
import App from './App';
interface Props {
- // eslint-disable-next-line camelcase
location: { query: { return_to: string } };
}
diff --git a/server/sonar-web/src/main/js/apps/overview/qualityGate/QualityGateCondition.tsx b/server/sonar-web/src/main/js/apps/overview/qualityGate/QualityGateCondition.tsx
index 2946c0c3ca9..af96ccf0a1d 100644
--- a/server/sonar-web/src/main/js/apps/overview/qualityGate/QualityGateCondition.tsx
+++ b/server/sonar-web/src/main/js/apps/overview/qualityGate/QualityGateCondition.tsx
@@ -97,7 +97,6 @@ export default class QualityGateCondition extends React.PureComponent<Props> {
const metricKey = condition.measure.metric.key;
- /* eslint-disable camelcase */
const RATING_METRICS_MAPPING: { [metric: string]: [string, boolean] } = {
reliability_rating: [IssueType.Bug, false],
new_reliability_rating: [IssueType.Bug, true],
@@ -106,7 +105,6 @@ export default class QualityGateCondition extends React.PureComponent<Props> {
sqale_rating: [IssueType.CodeSmell, false],
new_maintainability_rating: [IssueType.CodeSmell, true]
};
- /* eslint-enable camelcase */
return RATING_METRICS_MAPPING[metricKey] ? (
<Link className={className} to={this.getUrlForType(...RATING_METRICS_MAPPING[metricKey])}>
diff --git a/server/sonar-web/src/main/js/apps/projectActivity/components/GraphsTooltipsContentIssues.tsx b/server/sonar-web/src/main/js/apps/projectActivity/components/GraphsTooltipsContentIssues.tsx
index 7165925255e..cf1ff8be80a 100644
--- a/server/sonar-web/src/main/js/apps/projectActivity/components/GraphsTooltipsContentIssues.tsx
+++ b/server/sonar-web/src/main/js/apps/projectActivity/components/GraphsTooltipsContentIssues.tsx
@@ -35,7 +35,7 @@ interface Props {
const METRIC_RATING: { [x: string]: string } = {
bugs: 'reliability_rating',
vulnerabilities: 'security_rating',
- code_smells: 'sqale_rating' // eslint-disable-line camelcase
+ code_smells: 'sqale_rating'
};
export default function GraphsTooltipsContentIssues(props: Props) {
diff --git a/server/sonar-web/src/main/js/apps/projectActivity/utils.ts b/server/sonar-web/src/main/js/apps/projectActivity/utils.ts
index 72d498c24b9..1e8cc597218 100644
--- a/server/sonar-web/src/main/js/apps/projectActivity/utils.ts
+++ b/server/sonar-web/src/main/js/apps/projectActivity/utils.ts
@@ -280,11 +280,11 @@ export function serializeQuery(query: Query): RawQuery {
export function serializeUrlQuery(query: Query): RawQuery {
return cleanQuery({
category: serializeString(query.category),
- custom_metrics: serializeStringArray(query.customMetrics), // eslint-disable-line camelcase
+ custom_metrics: serializeStringArray(query.customMetrics),
from: serializeDate(query.from),
graph: serializeGraph(query.graph),
id: serializeString(query.project),
to: serializeDate(query.to),
- selected_date: serializeDate(query.selectedDate) // eslint-disable-line camelcase
+ selected_date: serializeDate(query.selectedDate)
});
}
diff --git a/server/sonar-web/src/main/js/apps/projects/components/__tests__/AllProjects-test.tsx b/server/sonar-web/src/main/js/apps/projects/components/__tests__/AllProjects-test.tsx
index a6894a80b0a..babf7c999e0 100644
--- a/server/sonar-web/src/main/js/apps/projects/components/__tests__/AllProjects-test.tsx
+++ b/server/sonar-web/src/main/js/apps/projects/components/__tests__/AllProjects-test.tsx
@@ -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, camelcase */
+/* eslint-disable import/order */
import * as React from 'react';
import { shallow } from 'enzyme';
import AllProjects, { Props } from '../AllProjects';
diff --git a/server/sonar-web/src/main/js/apps/projects/components/__tests__/ProjectCardLeak-test.tsx b/server/sonar-web/src/main/js/apps/projects/components/__tests__/ProjectCardLeak-test.tsx
index 62c153454d7..2eb69814db0 100644
--- a/server/sonar-web/src/main/js/apps/projects/components/__tests__/ProjectCardLeak-test.tsx
+++ b/server/sonar-web/src/main/js/apps/projects/components/__tests__/ProjectCardLeak-test.tsx
@@ -17,7 +17,6 @@
* 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 camelcase */
import * as React from 'react';
import { shallow } from 'enzyme';
import ProjectCardLeak from '../ProjectCardLeak';
@@ -28,7 +27,6 @@ jest.mock(
() => () => 1000 * 60 * 60 * 24 * 30 * 8 // ~ 8 months
);
-/* eslint-disable camelcase */
const MEASURES = {
alert_status: 'OK',
reliability_rating: '1.0',
diff --git a/server/sonar-web/src/main/js/apps/projects/query.ts b/server/sonar-web/src/main/js/apps/projects/query.ts
index ebe03ae2677..d1bfdc68336 100644
--- a/server/sonar-web/src/main/js/apps/projects/query.ts
+++ b/server/sonar-web/src/main/js/apps/projects/query.ts
@@ -17,7 +17,6 @@
* 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 camelcase */
import { VISUALIZATIONS } from './utils';
import { RawQuery } from '../../helpers/query';
diff --git a/server/sonar-web/src/main/js/apps/projects/utils.ts b/server/sonar-web/src/main/js/apps/projects/utils.ts
index b1ebb722c26..abc41aeb328 100644
--- a/server/sonar-web/src/main/js/apps/projects/utils.ts
+++ b/server/sonar-web/src/main/js/apps/projects/utils.ts
@@ -17,7 +17,6 @@
* 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 camelcase */
import { uniq } from 'lodash';
import { Query, convertToFilter } from './query';
import { translate, translateWithParameters } from '../../helpers/l10n';
diff --git a/server/sonar-web/src/main/js/apps/projects/visualizations/__tests__/SimpleBubbleChart-test.tsx b/server/sonar-web/src/main/js/apps/projects/visualizations/__tests__/SimpleBubbleChart-test.tsx
index 5d0acd4b3c3..e5b3f083975 100644
--- a/server/sonar-web/src/main/js/apps/projects/visualizations/__tests__/SimpleBubbleChart-test.tsx
+++ b/server/sonar-web/src/main/js/apps/projects/visualizations/__tests__/SimpleBubbleChart-test.tsx
@@ -25,7 +25,6 @@ import { Visibility } from '../../../../app/types';
it('renders', () => {
const project1 = {
key: 'foo',
- // eslint-disable-next-line camelcase
measures: { complexity: '17.2', coverage: '53.5', ncloc: '1734', security_rating: '2' },
name: 'Foo',
tags: [],
diff --git a/server/sonar-web/src/main/js/apps/sessions/components/LoginContainer.tsx b/server/sonar-web/src/main/js/apps/sessions/components/LoginContainer.tsx
index a51599f362c..f112bcbd565 100644
--- a/server/sonar-web/src/main/js/apps/sessions/components/LoginContainer.tsx
+++ b/server/sonar-web/src/main/js/apps/sessions/components/LoginContainer.tsx
@@ -31,10 +31,7 @@ interface OwnProps {
location: {
hash?: string;
pathName: string;
- query: {
- advanced?: string;
- return_to?: string; // eslint-disable-line camelcase
- };
+ query: { advanced?: string; return_to?: string };
};
}
diff --git a/server/sonar-web/src/main/js/components/icons-components/QualifierIcon.tsx b/server/sonar-web/src/main/js/components/icons-components/QualifierIcon.tsx
index 8709528e309..730194fff83 100644
--- a/server/sonar-web/src/main/js/components/icons-components/QualifierIcon.tsx
+++ b/server/sonar-web/src/main/js/components/icons-components/QualifierIcon.tsx
@@ -34,7 +34,6 @@ const qualifierIcons: { [x: string]: (props: IconProps) => React.ReactElement<an
// deprecated:
cla: UnitTestIcon,
- // eslint-disable-next-line camelcase
dev_prj: ProjectIcon,
lib: LibraryIcon,
pac: DirectoryIcon
diff --git a/server/sonar-web/src/main/js/helpers/urls.ts b/server/sonar-web/src/main/js/helpers/urls.ts
index ecb965a112a..f195cd217e0 100644
--- a/server/sonar-web/src/main/js/helpers/urls.ts
+++ b/server/sonar-web/src/main/js/helpers/urls.ts
@@ -211,7 +211,7 @@ export function getDeprecatedActiveRulesUrl(
}
export function getRuleUrl(rule: string, organization: string | undefined) {
- return getRulesUrl({ open: rule, rule_key: rule }, organization); // eslint-disable-line camelcase
+ return getRulesUrl({ open: rule, rule_key: rule }, organization);
}
export function getMarkdownHelpUrl(): string {