Skip to content

Commit d7ec3af

Browse files
author
Jason Barry
authored
fix: eslint-disable copied files (#13)
1 parent f5fd22c commit d7ec3af

File tree

3 files changed

+3
-4
lines changed

3 files changed

+3
-4
lines changed

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1+
/* eslint-disable no-console */
12
import fs, { copyFileSync } from "fs";
23

34
const SITE_ID = "321a7119-6008-49a8-9d2f-e20602b1b349";
45

5-
/* eslint-disable no-console */
66
export const onPreBuild = async ({ inputs, netlifyConfig, utils }) => {
77
console.log(` Current working directory: ${process.cwd()}`);
88
const config = JSON.stringify(inputs, null, 2);

src/__csp-nonce.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
/* eslint-disable import/extensions */
2-
/* eslint-disable import/no-unresolved */
1+
/* eslint-disable */
32
// @ts-expect-error
43
import { cryptoRandomString } from "https://deno.land/x/[email protected]/mod.ts";
54
// @ts-expect-error

src/__csp-violations.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1+
/* eslint-disable */
12
const handler = async (event) => {
23
try {
34
const { "csp-report": cspReport } = JSON.parse(event.body);
45
if (cspReport) {
5-
// eslint-disable-next-line no-console
66
console.log(JSON.stringify(cspReport));
77
}
88
} catch (err) {

0 commit comments

Comments
 (0)