diff --git a/.eslintrc b/.eslintrc index 9d2867ce..dcd9b880 100644 --- a/.eslintrc +++ b/.eslintrc @@ -25,7 +25,7 @@ "settings": { "import/resolver": { "alias": { - "extensions": [".js"], + "extensions": [".js", ".jsx"], "map": [["@", "./src"]] } } diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS new file mode 100644 index 00000000..42a999ba --- /dev/null +++ b/.github/CODEOWNERS @@ -0,0 +1,4 @@ +# Learn how to add code owners here: +# https://help.github.com/en/articles/about-code-owners + +* @suyalcinkaya diff --git a/.github/pull_request_template.md b/.github/pull_request_template.md new file mode 100644 index 00000000..1affc1db --- /dev/null +++ b/.github/pull_request_template.md @@ -0,0 +1,27 @@ +### Description + +Please provide a brief description of what this PR accomplishes. + +If applicable, you should then provide a more detailed description including screenshots (if appropriate) to benefit +everyone. + +#### Type of change + +- [ ] :bug: Bug fix +- [ ] :rocket: New feature +- [ ] :boom: Breaking change + +### How do I test this? + +- Provide clear step-by-step instructions for easy reproduction. +- Highlight the current issue and explain how the change resolves it. +- Preferably provide links from the relevant Vercel Preview URL. + +### Checklist + +Did you remember to take care of the following? + +- [ ] `bun install` – for the new dependencies +- [ ] Verify `bun.lockb` file when there is a package addition or update +- [ ] Perform a self-review +- [ ] Provide comments, particularly in hard-to-understand areas diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 00000000..87c1b4d8 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,14 @@ +name: CI + +on: push + +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: oven-sh/setup-bun@v1 + - name: Install modules + run: bun install + - name: Run ESLint + run: bun lint diff --git a/.github/workflows/lint-pr.yml b/.github/workflows/lint-pr.yml new file mode 100644 index 00000000..fd1adc4a --- /dev/null +++ b/.github/workflows/lint-pr.yml @@ -0,0 +1,20 @@ +name: 'Lint PR' + +on: + pull_request_target: + types: + - opened + - edited + - synchronize + +permissions: + pull-requests: read + +jobs: + main: + name: Validate PR title + runs-on: ubuntu-latest + steps: + - uses: amannn/action-semantic-pull-request@v5 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/package.json b/package.json index e652dd55..40a80676 100644 --- a/package.json +++ b/package.json @@ -13,7 +13,7 @@ "prettier": "prettier --write \"**/*.{html,js,json,md,mdx,mjs}\"", "clear-cache": "rm -rf .next", "unused": "next-unused", - "lint": "eslint src --ext js" + "lint": "eslint . --ext .js,.jsx" }, "engines": { "node": "18.x"