diff --git a/.eslintrc.json b/.eslintrc.json index 06d95155c..6fcef7c27 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -22,6 +22,7 @@ "no-console": "off", "no-extra-semi": "off", "semi": ["error", "always"], - "comma-dangle": ["error", "always-multiline"] + "comma-dangle": ["error", "always-multiline"], + "quotes": ["error", "single"] } } diff --git a/frontend/src/app.spec.js b/frontend/src/app.spec.js index 21a381a68..ab7385448 100644 --- a/frontend/src/app.spec.js +++ b/frontend/src/app.spec.js @@ -1,4 +1,4 @@ -import { App } from "./app"; +import { App } from './app'; const TEST_UTILS = [ { name: 'util1' }, diff --git a/frontend/src/main.js b/frontend/src/main.js index eb76d102e..aa509bdc3 100644 --- a/frontend/src/main.js +++ b/frontend/src/main.js @@ -15,9 +15,9 @@ window.App = app; // return; // } -// const contentType = response.headers.get("content-type"); +// const contentType = response.headers.get('content-type'); // if (!contentType.match(options.accept)) { -// throw new Error('Server returned with "' + contentType + '" when "' + options.accept + '" was expected'); +// throw new Error('Server returned with '' + contentType + '' when '' + options.accept + '' was expected'); // } // } diff --git a/frontend/src/services/html-helpers/html-helpers.js b/frontend/src/services/html-helpers/html-helpers.js index 92d3168b5..8e6137b6c 100644 --- a/frontend/src/services/html-helpers/html-helpers.js +++ b/frontend/src/services/html-helpers/html-helpers.js @@ -3,7 +3,7 @@ export class HtmlHelpers { // `parseResponse` takes a raw HttpClient response and an options object. // Returns an object with `element` being an contextual fragment of the // HTML in the response and `ifPrefix` being the prefix that was used to - // "unique-ify" the ids of the received HTML. + // 'unique-ify' the ids of the received HTML. // Original Response IDs can optionally be kept by adding `keepIds: true` // to the `options` object. parseResponse(response, options = {}) { diff --git a/frontend/src/services/html-helpers/html-helpers.spec.js b/frontend/src/services/html-helpers/html-helpers.spec.js index c77015b26..f092e17fa 100644 --- a/frontend/src/services/html-helpers/html-helpers.spec.js +++ b/frontend/src/services/html-helpers/html-helpers.spec.js @@ -1,4 +1,4 @@ -import { HtmlHelpers } from "./html-helpers"; +import { HtmlHelpers } from './html-helpers'; describe('HtmlHelpers', () => { let htmlHelpers; diff --git a/frontend/src/services/http-client/http-client.spec.js b/frontend/src/services/http-client/http-client.spec.js index e61e248f0..a0f76584d 100644 --- a/frontend/src/services/http-client/http-client.spec.js +++ b/frontend/src/services/http-client/http-client.spec.js @@ -1,4 +1,4 @@ -import { HttpClient } from "./http-client"; +import { HttpClient } from './http-client'; const TEST_URL = 'http://example.com'; const FAKE_RESPONSE = { diff --git a/frontend/src/services/i18n/i18n.spec.js b/frontend/src/services/i18n/i18n.spec.js index 76e5348c0..1b4edf3c4 100644 --- a/frontend/src/services/i18n/i18n.spec.js +++ b/frontend/src/services/i18n/i18n.spec.js @@ -1,4 +1,4 @@ -import { I18n } from "./i18n"; +import { I18n } from './i18n'; describe('I18n', () => { let i18n; diff --git a/frontend/src/utils/alerts/alerts.scss b/frontend/src/utils/alerts/alerts.scss index cd0492f11..d2faf1b22 100644 --- a/frontend/src/utils/alerts/alerts.scss +++ b/frontend/src/utils/alerts/alerts.scss @@ -20,7 +20,7 @@ &::before { content: '\f077'; position: absolute; - font-family: "Font Awesome 5 Free"; + font-family: 'Font Awesome 5 Free'; left: 50%; top: 0; height: 30px; @@ -126,7 +126,7 @@ &::before { content: '\f05a'; position: absolute; - font-family: "Font Awesome 5 Free"; + font-family: 'Font Awesome 5 Free'; font-size: 24px; top: 50%; left: 50%; @@ -164,7 +164,7 @@ &::before { content: '\f00d'; position: absolute; - font-family: "Font Awesome 5 Free"; + font-family: 'Font Awesome 5 Free'; top: 50%; left: 50%; display: flex; diff --git a/frontend/src/utils/alerts/alerts.spec.js b/frontend/src/utils/alerts/alerts.spec.js index 6d0440391..c823488c6 100644 --- a/frontend/src/utils/alerts/alerts.spec.js +++ b/frontend/src/utils/alerts/alerts.spec.js @@ -1,4 +1,4 @@ -import { Alerts } from "./alerts"; +import { Alerts } from './alerts'; const MOCK_APP = { httpClient: { diff --git a/frontend/src/utils/asidenav/asidenav.md b/frontend/src/utils/asidenav/asidenav.md index 87fda9847..0aa73b0f7 100644 --- a/frontend/src/utils/asidenav/asidenav.md +++ b/frontend/src/utils/asidenav/asidenav.md @@ -11,7 +11,7 @@ Correctly positions hovered asidenav submenus and handles the favorites button o