From d7ed1196bdd44d7734d41d91a5e72a71785e0a08 Mon Sep 17 00:00:00 2001 From: Julien Dessaux Date: Thu, 5 Jan 2023 02:09:07 +0100 Subject: switched to single quotes string in eslint --- middlewares/helmet.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'middlewares/helmet.js') diff --git a/middlewares/helmet.js b/middlewares/helmet.js index 5ced2c3..67d6e98 100644 --- a/middlewares/helmet.js +++ b/middlewares/helmet.js @@ -1,10 +1,10 @@ -import helmet from "helmet"; +import helmet from 'helmet'; const myHelmet = helmet({ contentSecurityPolicy: { directives: { ...helmet.contentSecurityPolicy.getDefaultDirectives(), - "script-src": ["'self'", "'unsafe-inline'"], + 'script-src': ['\'self\'', '\'unsafe-inline\''], }, }, }); -- cgit v1.2.3