diff --git a/.github/workflows/build-and-test.yml b/.github/workflows/build-and-test.yml index c2d8faf..20c8c18 100644 --- a/.github/workflows/build-and-test.yml +++ b/.github/workflows/build-and-test.yml @@ -24,6 +24,21 @@ jobs: uses: StanfordBDHG/.github/.github/workflows/swiftlint.yml@v2 permissions: contents: read + eslint: + name: eslint + runs-on: ubuntu-latest + permissions: + contents: read + defaults: + run: + working-directory: ./functions + steps: + - uses: actions/checkout@v4 + - name: Setup NodeJS + uses: actions/setup-node@v3 + - name: eslint + run: | + npm run lint markdownlinkcheck: name: Markdown Link Check uses: StanfordBDHG/.github/.github/workflows/markdown-link-check.yml@v2 diff --git a/functions/index.js b/functions/index.js index 050cc69..ac7fb84 100644 --- a/functions/index.js +++ b/functions/index.js @@ -8,7 +8,7 @@ const {onCall} = require("firebase-functions/v2/https"); const {logger, https} = require("firebase-functions/v2"); -const { FieldValue } = require('firebase-admin/firestore'); +const {FieldValue} = require("firebase-admin/firestore"); const admin = require("firebase-admin"); admin.initializeApp(); diff --git a/functions/package.json b/functions/package.json index c87f248..de40a13 100644 --- a/functions/package.json +++ b/functions/package.json @@ -8,8 +8,7 @@ "shell": "firebase functions:shell", "start": "npm run shell", "deploy": "firebase deploy --only functions", - "logs": "firebase functions:log", - "compile": "tsc --project tsconfig-compile.json" + "logs": "firebase functions:log" }, "engines": { "node": "20" diff --git a/functions/tsconfig.template.json b/functions/tsconfig.template.json deleted file mode 100644 index 17ed72e..0000000 --- a/functions/tsconfig.template.json +++ /dev/null @@ -1,37 +0,0 @@ -{ - "compilerOptions": { - /* Basic Options */ - "target": "es2022", /* Specify ECMAScript target version: 'ES3' (default), 'ES5', 'ES2015', 'ES2016', 'ES2017', 'ES2018', 'ES2019', 'ES2020', or 'ESNEXT'. */ - "module": "commonjs", /* Specify module code generation: 'none', 'commonjs', 'amd', 'system', 'umd', 'es2015', 'es2020', or 'ESNext'. */ - "lib": ["es2022", "dom", "webworker"], /* Specify library files to be included in the compilation. */ - "allowJs": true, /* Allow javascript files to be compiled. */ - "checkJs": true, /* Report errors in .js files. */ - "outDir": "./dist", /* Redirect output structure to the directory. */ - "noEmit": true, /* Do not emit outputs. */ - "resolveJsonModule": true, - "typeRoots": [ - "./node_modules/@types" - ], - /* Strict Type-Checking Options */ - "strict": true, /* Enable all strict type-checking options. */ - "noImplicitAny": false, /* Raise error on expressions and declarations with an implied 'any' type. */ - "strictNullChecks": false, /* Enable strict null checks. */ - // "strictFunctionTypes": true, /* Enable strict checking of function types. */ - // "strictBindCallApply": true, /* Enable strict 'bind', 'call', and 'apply' methods on functions. */ - // "strictPropertyInitialization": true, /* Enable strict checking of property initialization in classes. */ - // "noImplicitThis": true, /* Raise error on 'this' expressions with an implied 'any' type. */ - // "alwaysStrict": true, /* Parse in strict mode and emit "use strict" for each source file. */ - - // See: https://github.com/microsoft/TypeScript/issues/20595 - "skipLibCheck": true, - - /* Additional Checks */ - "noUnusedLocals": false, /* Report errors on unused locals. */ - // "noUnusedParameters": true, /* Report errors on unused parameters. */ - // "noImplicitReturns": true, /* Report error when not all code paths in function return a value. */ - // "noFallthroughCasesInSwitch": true, /* Report errors for fallthrough cases in switch statement. */ - - "esModuleInterop": true, /* Enables emit interoperability between CommonJS and ES Modules via creation of namespace objects for all imports. Implies 'allowSyntheticDefaultImports'. */ - "forceConsistentCasingInFileNames": true /* Disallow inconsistently-cased references to the same file. */ - } -} diff --git a/functions/tsconfig.template.json.license b/functions/tsconfig.template.json.license deleted file mode 100644 index 3c3d843..0000000 --- a/functions/tsconfig.template.json.license +++ /dev/null @@ -1,5 +0,0 @@ -This source file is part of the StudyApplication based on the Stanford Spezi Template Application project - -SPDX-FileCopyrightText: 2022 Stanford University and the project authors (see CONTRIBUTORS.md) - -SPDX-License-Identifier: MIT