diff --git a/.eslintrc.json b/.eslintrc.json index 13a31dab..38103000 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -23,6 +23,8 @@ ] }, "extends": [ + "eslint:recommended", + "plugin:react/jsx-runtime", "standard-with-typescript", "eslint-config-prettier", "plugin:storybook/recommended", @@ -82,6 +84,7 @@ ], "promise/always-return": "off", "unicorn/number-literal-case": "off", - "unicorn/prefer-spread": "off" + "unicorn/prefer-spread": "off", + "react/jsx-key": "error" } } diff --git a/.github/workflows/deploy-push-master.yml b/.github/workflows/deploy-push-master.yml new file mode 100644 index 00000000..5158bc41 --- /dev/null +++ b/.github/workflows/deploy-push-master.yml @@ -0,0 +1,26 @@ +name: Build and Deploy to GitHub Pages + +on: + push: + branches: + - main + +jobs: + build-and-deploy: + runs-on: ubuntu-latest + + steps: + - name: Checkout Repository + uses: actions/checkout@v2 + + - name: Install Dependencies + run: yarn + + - name: Build Project + run: yarn build + + - name: Deploy to GitHub Pages + uses: peaceiris/actions-gh-pages@v3 + with: + github_token: ${{ secrets.GITHUB_TOKEN }} + publish_dir: ./dist diff --git a/.husky/pre-commit b/.husky/pre-commit index bb8caf10..86287a5c 100644 --- a/.husky/pre-commit +++ b/.husky/pre-commit @@ -1,5 +1,5 @@ #!/usr/bin/env sh . "$(dirname -- "$0")/_/husky.sh" -npx eslint "src/**/*.ts" -npx commitlint --edit "$1" +yarn lint +yarn commitlint --edit diff --git a/README.md b/README.md index c7bff8f3..a3b0edba 100644 --- a/README.md +++ b/README.md @@ -46,11 +46,3 @@ npm run dev - [Storybook.js](https://storybook.js.org/): Isolated component development environment