From 79a7a03d03e655ea8c4411b830b842282373877a Mon Sep 17 00:00:00 2001 From: Juan Cruz Viotti Date: Tue, 8 Aug 2017 08:42:04 -0700 Subject: [PATCH] chore: enforce single quotes in ESLint (#1679) We recently adopted the standardjs guidelines ESLint, which doesn't seem to enforce single quotes, even though the guidelines mention it. See: https://github.com/resin-io/etcher/pull/1663#discussion_r131623802 Signed-off-by: Juan Cruz Viotti --- .eslintrc.yml | 3 +++ tests/gui/components/svg-icon.spec.js | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/.eslintrc.yml b/.eslintrc.yml index 1672a22e51..369a4fec04 100644 --- a/.eslintrc.yml +++ b/.eslintrc.yml @@ -265,6 +265,9 @@ rules: operator-assignment: - error - always + quotes: + - error + - single quote-props: - error - as-needed diff --git a/tests/gui/components/svg-icon.spec.js b/tests/gui/components/svg-icon.spec.js index 5274f7cead..5eca6b21cd 100644 --- a/tests/gui/components/svg-icon.spec.js +++ b/tests/gui/components/svg-icon.spec.js @@ -75,7 +75,7 @@ describe('Browser: SVGIcon', function () { it('should use an empty src if there is a parsererror', function () { // The following is invalid, because there's no closing tag for `foreignObject` const iconContents = '' - const imgData = `data:image/svg+xml,` + const imgData = 'data:image/svg+xml,' $rootScope.iconContents = iconContents const element = $compile('Resin.io')($rootScope)