From f28464c313bcc8657b641b08fdd715919ac3b8c3 Mon Sep 17 00:00:00 2001 From: Biswadeep Purkayastha <98874428+metabiswadeep@users.noreply.github.com> Date: Mon, 19 Jun 2023 21:42:39 +0530 Subject: [PATCH] Create linting.yml --- .github/workflows/linting.yml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 .github/workflows/linting.yml diff --git a/.github/workflows/linting.yml b/.github/workflows/linting.yml new file mode 100644 index 0000000..bfb53cc --- /dev/null +++ b/.github/workflows/linting.yml @@ -0,0 +1,21 @@ +name: Linting + +on: [push, pull_request] + +jobs: + + Linting: + + runs-on: ubuntu-latest + + steps: + + - name: Checkout + uses: actions/checkout@v3 + with: + ref: ${{ github.head_ref }} + + - name: Lint code with prettier + uses: creyD/prettier_action@v4.3 + with: + prettier_options: --write **/*.{js,md}