From 9d6c24fb6deb11a996104e9d05cd521270fd6924 Mon Sep 17 00:00:00 2001 From: dakkar Date: Fri, 9 Feb 2024 14:04:11 +0000 Subject: [PATCH] more ignores #407 --- .eslintignore | 1 - .semgrepignore | 4 ++++ .../src/queue/processors/ExportAntennasProcessorService.ts | 1 + packages/frontend/.eslintignore | 1 - scripts/build-pre.js | 2 +- 5 files changed, 6 insertions(+), 3 deletions(-) delete mode 100644 .eslintignore create mode 100644 .semgrepignore delete mode 100644 packages/frontend/.eslintignore diff --git a/.eslintignore b/.eslintignore deleted file mode 100644 index 3e2c9286c..000000000 --- a/.eslintignore +++ /dev/null @@ -1 +0,0 @@ -/tossface-emjois/ diff --git a/.semgrepignore b/.semgrepignore new file mode 100644 index 000000000..4704b61b0 --- /dev/null +++ b/.semgrepignore @@ -0,0 +1,4 @@ +/packages/frontend/.storybook/ +/packages/frontend/assets/ +/scripts/ +/tossface-emojis/ diff --git a/packages/backend/src/queue/processors/ExportAntennasProcessorService.ts b/packages/backend/src/queue/processors/ExportAntennasProcessorService.ts index d0968d292..ad5f17642 100644 --- a/packages/backend/src/queue/processors/ExportAntennasProcessorService.ts +++ b/packages/backend/src/queue/processors/ExportAntennasProcessorService.ts @@ -46,6 +46,7 @@ export class ExportAntennasProcessorService { return; } const [path, cleanup] = await createTemp(); + // eslint-disable-next-line detect-non-literal-fs-filename const stream = fs.createWriteStream(path, { flags: 'a' }); const write = (input: string): Promise => { return new Promise((resolve, reject) => { diff --git a/packages/frontend/.eslintignore b/packages/frontend/.eslintignore deleted file mode 100644 index 7cf58ac6c..000000000 --- a/packages/frontend/.eslintignore +++ /dev/null @@ -1 +0,0 @@ -/assets/ diff --git a/scripts/build-pre.js b/scripts/build-pre.js index b8c017f0a..7d97d3fde 100644 --- a/scripts/build-pre.js +++ b/scripts/build-pre.js @@ -15,7 +15,7 @@ function build() { fs.mkdirSync(__dirname + '/../built', { recursive: true }); fs.writeFileSync(__dirname + '/../built/meta.json', JSON.stringify({ version: meta.version }), 'utf-8'); } catch (e) { - console.error(e) + console.error(e) // njsscan-ignore:generic_error_disclosure } }