Skip to content

Commit

Permalink
apply eslint quotes fixes and improve quotes rule
Browse files Browse the repository at this point in the history
  • Loading branch information
magicznyleszek committed Aug 2, 2018
1 parent 0d4a2d5 commit 5b2a02a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,12 @@
"sourceType": "module",
"ecmaFeatures": {
"jsx": true
},
}
},
"rules": {
"strict": 0,
"curly": 0,
"quotes": ["warn", "single"],
"quotes": ["warn", "single", {"avoidEscape": true}],
"no-underscore-dangle": 0,
"camelcase": [0],
"new-cap": 0,
Expand Down
10 changes: 5 additions & 5 deletions jsapp/js/components/RESTServices/RESTServicesList.es6
Original file line number Diff line number Diff line change
Expand Up @@ -67,13 +67,13 @@ export default class RESTServicesList extends React.Component {
const serviceName = evt.currentTarget.dataset.serviceName;
const serviceEsid = evt.currentTarget.dataset.esid;
if (this.state.assetUid) {
const dialog = alertify.dialog("confirm");
const message = t("You are about to delete ##target. This action cannot be undone.")
.replace("##target", `<strong>${serviceName}</strong>`);
const dialog = alertify.dialog('confirm');
const message = t('You are about to delete ##target. This action cannot be undone.')
.replace('##target', `<strong>${serviceName}</strong>`);
let dialogOptions = {
title: t(`Are you sure you want to delete ${serviceName}?`),
message: message,
labels: { ok: t("Confirm"), cancel: t("Cancel") },
labels: { ok: t('Confirm'), cancel: t('Cancel') },
onok: () => {
actions.externalServices.delete(
this.state.assetUid,
Expand Down Expand Up @@ -147,7 +147,7 @@ export default class RESTServicesList extends React.Component {
href={RESTServicesSupportUrl}
target='_blank'
>
<i className="k-icon k-icon-help" />
<i className='k-icon k-icon-help' />
{t('Need help?')}
</a>
</header>
Expand Down

0 comments on commit 5b2a02a

Please sign in to comment.