diff options
author | Stas Vilchik <vilchiks@gmail.com> | 2016-06-29 10:19:22 +0200 |
---|---|---|
committer | Stas Vilchik <vilchiks@gmail.com> | 2016-06-29 10:19:22 +0200 |
commit | a142bec0b8d2e252aebeae383cc0ca3fe9f657bd (patch) | |
tree | 354a66acd72a8a3b594a62e07d86f3556191cff0 /server/sonar-web/src/main/js | |
parent | 35fcfd2d718f8eede0f5f26106853e16f02f4769 (diff) | |
download | sonarqube-a142bec0b8d2e252aebeae383cc0ca3fe9f657bd.tar.gz sonarqube-a142bec0b8d2e252aebeae383cc0ca3fe9f657bd.zip |
update js linters
Diffstat (limited to 'server/sonar-web/src/main/js')
11 files changed, 10 insertions, 10 deletions
diff --git a/server/sonar-web/src/main/js/apps/code/utils.js b/server/sonar-web/src/main/js/apps/code/utils.js index b236ee82d92..eb63248fb13 100644 --- a/server/sonar-web/src/main/js/apps/code/utils.js +++ b/server/sonar-web/src/main/js/apps/code/utils.js @@ -18,7 +18,6 @@ * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ import without from 'lodash/without'; -import sortBy from 'lodash/sortBy'; import { addComponent, diff --git a/server/sonar-web/src/main/js/apps/component-measures/components/IconBubbles.js b/server/sonar-web/src/main/js/apps/component-measures/components/IconBubbles.js index a0914801a08..b5411d4cc81 100644 --- a/server/sonar-web/src/main/js/apps/component-measures/components/IconBubbles.js +++ b/server/sonar-web/src/main/js/apps/component-measures/components/IconBubbles.js @@ -20,7 +20,7 @@ import React from 'react'; export default function IconBubbles () { - /* jscs:disable maximumLineLength */ + /* eslint max-len: 0 */ return ( <svg className="measure-tab-icon" viewBox="0 0 512 448" diff --git a/server/sonar-web/src/main/js/apps/component-measures/components/IconHistory.js b/server/sonar-web/src/main/js/apps/component-measures/components/IconHistory.js index 06057097841..85dac4e9dec 100644 --- a/server/sonar-web/src/main/js/apps/component-measures/components/IconHistory.js +++ b/server/sonar-web/src/main/js/apps/component-measures/components/IconHistory.js @@ -20,7 +20,7 @@ import React from 'react'; export default function IconHistory () { - /* jscs:disable maximumLineLength */ + /* eslint max-len: 0 */ return ( <svg className="measure-tab-icon" viewBox="0 0 512 448" diff --git a/server/sonar-web/src/main/js/apps/component-measures/components/IconList.js b/server/sonar-web/src/main/js/apps/component-measures/components/IconList.js index 116c5395ac0..6725685c36b 100644 --- a/server/sonar-web/src/main/js/apps/component-measures/components/IconList.js +++ b/server/sonar-web/src/main/js/apps/component-measures/components/IconList.js @@ -20,7 +20,7 @@ import React from 'react'; export default function ListIcon () { - /* jscs:disable maximumLineLength */ + /* eslint max-len: 0 */ return ( <svg className="measure-tab-icon" viewBox="0 0 448 448" diff --git a/server/sonar-web/src/main/js/apps/component-measures/components/IconTree.js b/server/sonar-web/src/main/js/apps/component-measures/components/IconTree.js index cbd60958e7f..1b9cb2ca79d 100644 --- a/server/sonar-web/src/main/js/apps/component-measures/components/IconTree.js +++ b/server/sonar-web/src/main/js/apps/component-measures/components/IconTree.js @@ -20,7 +20,7 @@ import React from 'react'; export default function IconTree () { - /* jscs:disable maximumLineLength */ + /* eslint max-len: 0 */ return ( <svg className="measure-tab-icon" viewBox="0 0 448 448" diff --git a/server/sonar-web/src/main/js/apps/quality-profiles/details/ProfileInheritance.js b/server/sonar-web/src/main/js/apps/quality-profiles/details/ProfileInheritance.js index 1d972030e00..b83eaf2e090 100644 --- a/server/sonar-web/src/main/js/apps/quality-profiles/details/ProfileInheritance.js +++ b/server/sonar-web/src/main/js/apps/quality-profiles/details/ProfileInheritance.js @@ -20,7 +20,7 @@ import React from 'react'; import ProfileInheritanceBox from './ProfileInheritanceBox'; import ChangeParentView from '../views/ChangeParentView'; -import { ProfileType, ProfilesListType } from '../propTypes'; +import { ProfileType } from '../propTypes'; import { translate } from '../../../helpers/l10n'; import { getProfileInheritance } from '../../../api/quality-profiles'; diff --git a/server/sonar-web/src/main/js/components/controls/DateInput.js b/server/sonar-web/src/main/js/components/controls/DateInput.js index 59581521bc4..2d15e9130c7 100644 --- a/server/sonar-web/src/main/js/components/controls/DateInput.js +++ b/server/sonar-web/src/main/js/components/controls/DateInput.js @@ -65,6 +65,7 @@ export default class DateInput extends React.Component { render () { const inputProps = pick(this.props, ['placeholder', 'name']); + /* eslint max-len: 0 */ return ( <span className="date-input-control"> <input diff --git a/server/sonar-web/src/main/js/components/controls/FavoriteBase.js b/server/sonar-web/src/main/js/components/controls/FavoriteBase.js index 5d1f68361be..04ee1fc4640 100644 --- a/server/sonar-web/src/main/js/components/controls/FavoriteBase.js +++ b/server/sonar-web/src/main/js/components/controls/FavoriteBase.js @@ -67,7 +67,7 @@ export default class FavoriteBase extends React.Component { } renderSVG () { - /* jscs:disable maximumLineLength */ + /* eslint max-len: 0 */ return ( <svg width="16" height="16"> <path diff --git a/server/sonar-web/src/main/js/components/shared/pending-icon.js b/server/sonar-web/src/main/js/components/shared/pending-icon.js index 51dbfa48dcb..8a9488ff0e5 100644 --- a/server/sonar-web/src/main/js/components/shared/pending-icon.js +++ b/server/sonar-web/src/main/js/components/shared/pending-icon.js @@ -21,7 +21,7 @@ import React from 'react'; export default React.createClass({ render() { - /* jscs:disable maximumLineLength */ + /* eslint max-len: 0 */ return ( <svg width="16" height="16" className="icon-pending"> <g transform="matrix(0.0364583,0,0,0.0364583,1,-0.166667)"> diff --git a/server/sonar-web/src/main/js/components/shared/pin-icon.js b/server/sonar-web/src/main/js/components/shared/pin-icon.js index 5a6c1870697..418dadc9b34 100644 --- a/server/sonar-web/src/main/js/components/shared/pin-icon.js +++ b/server/sonar-web/src/main/js/components/shared/pin-icon.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. */ -/* jscs:disable maximumLineLength */ +/* eslint max-len: 0 */ import React from 'react'; const PinIcon = () => ( diff --git a/server/sonar-web/src/main/js/helpers/handlebars/changelog.js b/server/sonar-web/src/main/js/helpers/handlebars/changelog.js index 01ef3366245..ab583714f33 100644 --- a/server/sonar-web/src/main/js/helpers/handlebars/changelog.js +++ b/server/sonar-web/src/main/js/helpers/handlebars/changelog.js @@ -25,7 +25,7 @@ module.exports = function (diff) { if (diff.key === 'file') { return translate('issue.change.issue_was_moved'); } - + if (diff.newValue != null) { message = translateWithParameters('issue.changelog.changed_to', translate('issue.changelog.field', diff.key), diff.newValue); |