Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
44 changes: 44 additions & 0 deletions functions/eslint.config.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
//
// This source file is part of the ENGAGE-HF project based on the Stanford Spezi Template Application project
//
// SPDX-FileCopyrightText: 2023 Stanford University
//
// SPDX-License-Identifier: MIT
//

const { getEslintNodeConfig } = require('@stanfordspezi/spezi-web-configurations');

module.exports = [
...getEslintNodeConfig({ tsconfigRootDir: __dirname }),
{
rules: {
'import/extensions': [
'warn',
'ignorePackages',
{
ts: 'never',
tsx: 'never',
js: 'always',
jsx: 'never',
mjs: 'never',
},
],
// Disable prefer-arrow-functions to match original behavior
'prefer-arrow-functions/prefer-arrow-functions': 'off',
// Disable new ESLint recommended rules that surface pre-existing issues
'no-case-declarations': 'off',
'no-empty': 'off',
// Disable stylistic rule that surfaces pre-existing patterns
'@typescript-eslint/prefer-find': 'off',
// Disable import/no-cycle due to existing circular dependencies
'import/no-cycle': 'off',
},
},
{
files: ['**/*.test.ts'],
rules: {
'@typescript-eslint/no-unused-expressions': 'off',
'@typescript-eslint/no-unused-vars': 'off',
},
},
];
115 changes: 0 additions & 115 deletions functions/eslint.config.mjs

This file was deleted.

11 changes: 5 additions & 6 deletions functions/models/eslint.config.cjs
Original file line number Diff line number Diff line change
@@ -1,20 +1,19 @@
//
// This source file is part of the Stanford Biodesign Digital Health Spezi Firebase Template open-source project
// This source file is part of the ENGAGE-HF project based on the Stanford Spezi Template Application project
//
// SPDX-FileCopyrightText: 2025 Stanford University and the project authors (see CONTRIBUTORS.md)
// SPDX-FileCopyrightText: 2023 Stanford University
//
// SPDX-License-Identifier: MIT
//

const {
getEslintNodeConfig,
} = require('@stanfordspezi/spezi-web-configurations')
const { getEslintNodeConfig } = require('@stanfordspezi/spezi-web-configurations');

module.exports = [
...getEslintNodeConfig({ tsconfigRootDir: __dirname }),
{
rules: {
// Disable import/no-cycle due to existing circular dependencies in models
'import/no-cycle': 'off',
},
},
]
];
Loading