diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml new file mode 100644 index 00000000..93cc867d --- /dev/null +++ b/.github/workflows/lint.yml @@ -0,0 +1,28 @@ +name: Linting and formatting + +on: + push: + branches: + - "*" + pull_request: + branches: + - "*" + +jobs: + lint: + runs-on: ubuntu-latest + + steps: + - name: Checkout code + uses: actions/checkout@v2 + + - name: Set up Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v3 + with: + node-version: ${{ matrix.node-version }} + + - name: Install dependencies + run: yarn install + + - name: Run Lint + run: yarn lint && yarn format:check && yarn lint-staged diff --git a/README.md b/README.md index 67b39dfc..38e95bbc 100644 --- a/README.md +++ b/README.md @@ -66,6 +66,11 @@ format-fix: yarn run format:write ``` +> [!NOTE] +> Avoid using `type any` in your code. Always specify explicit types to ensure type safety and maintainability. + +
+ ## Join the Layer5 community!