import { session, OnResponseStartedDetails } from "electron"

export const setContentSecurityPolicy = (): void => {
  session.defaultSession.webRequest.onHeadersReceived(
    (details: OnResponseStartedDetails, callback: Function): void => {
      callback({ responseHeaders: `default-src 'none'` })
    },
  )
}

import { session, OnResponseStartedDetails } from "electron"

export const setContentSecurityPolicy: () => void = () => {
  session.defaultSession.webRequest.onHeadersReceived(
    (details: OnResponseStartedDetails, callback: Function) => {
      callback({ responseHeaders: `default-src 'none'` })
    },
  )
}

--- 
+++ 
@@ -1,8 +1,8 @@
 import { session, OnResponseStartedDetails } from "electron"
 
-export const setContentSecurityPolicy: () => void = () => {
+export const setContentSecurityPolicy = (): void => {
   session.defaultSession.webRequest.onHeadersReceived(
-    (details: OnResponseStartedDetails, callback: Function) => {
+    (details: OnResponseStartedDetails, callback: Function): void => {
       callback({ responseHeaders: `default-src 'none'` })
     },
   )
Fix linting errors in ContentSecurityPolicy
