Skip to content

Commit

Permalink
Centralize ESLint and Prettier configuration (#3)
Browse files Browse the repository at this point in the history
# Centralize ESLint and Prettier configuration

## ♻️ Current situation & Problem
ESLint and Prettier configuration is copied between projects. It can be
centralized.

Demonstration of usage:
StanfordSpezi/spezi-web-design-system#39


## ⚙️ Release Notes 
* Centralize ESLint and Prettier configuration

## 📝 Code of Conduct & Contributing Guidelines 

By submitting creating this pull request, you agree to follow our [Code
of
Conduct](https://github.com/StanfordSpezi/.github/blob/main/CODE_OF_CONDUCT.md)
and [Contributing
Guidelines](https://github.com/StanfordSpezi/.github/blob/main/CONTRIBUTING.md):
- [x] I agree to follow the [Code of
Conduct](https://github.com/StanfordSpezi/.github/blob/main/CODE_OF_CONDUCT.md)
and [Contributing
Guidelines](https://github.com/StanfordSpezi/.github/blob/main/CONTRIBUTING.md).
  • Loading branch information
arkadiuszbachorski authored Jan 28, 2025
1 parent 5de2002 commit 5491080
Show file tree
Hide file tree
Showing 51 changed files with 4,126 additions and 9,198 deletions.
20 changes: 0 additions & 20 deletions .dockerignore

This file was deleted.

112 changes: 0 additions & 112 deletions .eslintrc.json

This file was deleted.

6 changes: 0 additions & 6 deletions .eslintrc.json.license

This file was deleted.

26 changes: 6 additions & 20 deletions .github/workflows/build-and-test.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#
# This source file is part of the Stanford Biodesign Digital Health Next.js Template open-source project
# This source file is part of the Stanford Biodesign Digital Health Spezi Web Configurations open-source project
#
# SPDX-FileCopyrightText: 2023 Stanford University and the project authors (see CONTRIBUTORS.md)
# SPDX-FileCopyrightText: 2024 Stanford University and the project authors (see CONTRIBUTORS.md)
#
# SPDX-License-Identifier: MIT
#
Expand All @@ -13,6 +13,9 @@ concurrency:
cancel-in-progress: true

on:
push:
branches:
- main
pull_request:
workflow_dispatch:
workflow_call:
Expand All @@ -23,21 +26,4 @@ jobs:
uses: StanfordBDHG/.github/.github/workflows/reuse.yml@v2
markdownlinkcheck:
name: Markdown Link Check
uses: StanfordBDHG/.github/.github/workflows/markdown-link-check.yml@v2
eslint:
name: ESLint
uses: StanfordBDHG/.github/.github/workflows/eslint.yml@v2
permissions:
contents: read
checks: write
testandcoverage:
name: Test and Coverage
uses: StanfordBDHG/.github/.github/workflows/npm-test-and-coverage.yml@v2
secrets:
token: ${{ secrets.CODECOV_TOKEN }}
dockercomposetest:
name: Docker Compose & Test
uses: StanfordBDHG/.github/.github/workflows/docker-compose-test.yml@v2
with:
dockerComposeFile: docker-compose-development.yml
testscript: test.sh
uses: StanfordBDHG/.github/.github/workflows/markdown-link-check.yml@v2
38 changes: 0 additions & 38 deletions .github/workflows/codeql.yml

This file was deleted.

31 changes: 31 additions & 0 deletions .github/workflows/deployment.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
#
# This source file is part of the Stanford Biodesign Digital Health Spezi Web Configurations open-source project
#
# SPDX-FileCopyrightText: 2024 Stanford University and the project authors (see CONTRIBUTORS.md)
#
# SPDX-License-Identifier: MIT
#

name: Deployment

on:
release:
types: [published]
workflow_dispatch:

concurrency:
group: production
cancel-in-progress: false

jobs:
publishpackage:
name: Publish Package
uses: StanfordBDHG/.github/.github/workflows/npm-publish-package.yml@v2
permissions:
contents: read
id-token: write
packages: write
secrets:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
with:
packageVersion: ${{ github.event.release.tag_name }}
40 changes: 0 additions & 40 deletions .github/workflows/main.yml

This file was deleted.

4 changes: 2 additions & 2 deletions .github/workflows/monthly-markdown-link-check.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#
# This source file is part of the Stanford Biodesign Digital Health Next.js Template open-source project
# This source file is part of the Stanford Biodesign Digital Health Spezi Web Configurations open-source project
#
# SPDX-FileCopyrightText: 2023 Stanford University and the project authors (see CONTRIBUTORS.md)
# SPDX-FileCopyrightText: 2024 Stanford University and the project authors (see CONTRIBUTORS.md)
#
# SPDX-License-Identifier: MIT
#
Expand Down
12 changes: 5 additions & 7 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#
# This source file is part of the Stanford Biodesign Digital Health Next.js Template open-source project
# This source file is part of the Stanford Biodesign Digital Health Spezi Web Configurations open-source project
#
# SPDX-FileCopyrightText: 2023 Stanford University and the project authors (see CONTRIBUTORS.md)
# SPDX-FileCopyrightText: 2024 Stanford University and the project authors (see CONTRIBUTORS.md)
#
# SPDX-License-Identifier: MIT
#
Expand All @@ -17,12 +17,8 @@
# testing
/coverage

# next.js
/.next/
/out/

# production
/build
/dist

# misc
.DS_Store
Expand All @@ -43,6 +39,8 @@ yarn-error.log*
*.tsbuildinfo
next-env.d.ts

.parcel-cache

# lint
eslint_report.json

Expand Down
10 changes: 0 additions & 10 deletions .prettierignore

This file was deleted.

16 changes: 0 additions & 16 deletions .prettierrc.cjs

This file was deleted.

11 changes: 6 additions & 5 deletions CITATION.cff
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#
# This source file is part of the Stanford Biodesign Digital Health Next.js Template open-source project
# This source file is part of the Stanford Biodesign Digital Health Spezi Web Configurations open-source project
#
# SPDX-FileCopyrightText: 2023 Stanford University and the project authors (see CONTRIBUTORS.md)
# SPDX-FileCopyrightText: 2024 Stanford University and the project authors (see CONTRIBUTORS.md)
#
# SPDX-License-Identifier: MIT
#
Expand All @@ -15,6 +15,7 @@ authors:
- family-names: 'Ravi'
given-names: 'Vishnu'
orcid: 'https://orcid.org/0000-0003-0359-1275'
title: 'NextJSTemplate'
doi: '10.5281/zenodo.10052055'
url: 'https://github.com/StanfordBDHG/NextJSTemplate'
- family-names: 'Arkadiusz'
given-names: 'Bachorski'
title: 'spezi-web-configurations'
url: 'https://github.com/StanfordSpezi/spezi-web-configurations
Loading

0 comments on commit 5491080

Please sign in to comment.