Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

[WIP] [DO NOT MERGE] Backend Nest JS Template #2

Draft
wants to merge 9 commits into
base: main
Choose a base branch
from
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
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -128,3 +128,6 @@ dist
.yarn/build-state.yml
.yarn/install-state.gz
.pnp.*

# VS Code Settings
.vscode/
3 changes: 3 additions & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
npx lint-staged
npx license-check-and-add add
git add .
4 changes: 4 additions & 0 deletions .lintstagedrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"*.{js,jsx,ts,tsx}": ["prettier --write", "eslint --fix"],
"*.{json,css,md}": ["prettier --write"]
}
Empty file added .prettierignore
Empty file.
9 changes: 9 additions & 0 deletions .prettierrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
// This source file is part of the Stanford Spezi open-source project
//
// SPDX-FileCopyrightText: 2024 Stanford University and the project authors (see CONTRIBUTORS.md)
//
// SPDX-License-Identifier: MIT

const { prettierConfig } = require("@stanfordspezi/spezi-web-configurations");

module.exports = prettierConfig;
File renamed without changes.
5 changes: 5 additions & 0 deletions LICENSES/LICENSE.HEADER
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
This source file is part of the Stanford Spezi open-source project

SPDX-FileCopyrightText: 2024 Stanford University and the project authors (see CONTRIBUTORS.md)

SPDX-License-Identifier: MIT
9 changes: 9 additions & 0 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
// This source file is part of the Stanford Spezi open-source project
//
// SPDX-FileCopyrightText: 2024 Stanford University and the project authors (see CONTRIBUTORS.md)
//
// SPDX-License-Identifier: MIT

// const { getEslintConfig } = require("@stanfordspezi/spezi-web-configurations");

// module.exports = getEslintConfig({ tsconfigRootDir: __dirname });
37 changes: 37 additions & 0 deletions license-checker-config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
{
"ignore": [
"*.txt",
"*.md",
"LICENSE/**",
".husky/**",
".env/**",
"package.json",
"package-lock.json",
"eslint.config",
"prettierrc.js",
".prettierignore",
".lintstagedrc.json",
".gitignore"
],
"license": "LICENSES/LICENSE.HEADER",
"licenseFormats": {
"js": {
"append": "\n",
"eachLine": {
"prepend": "// "
}
},
"ts": {
"append": "\n",
"eachLine": {
"prepend": "// "
}
},
"dotfile|^Dockerfile": {
"eachLine": {
"prepend": "# "
}
}
},
"trailingWhitespace": "TRIM"
}
Loading