From 50df9a479e859281509cd932b8822f608d6da7f7 Mon Sep 17 00:00:00 2001 From: Abhinav Sinha <37282098+zeborg@users.noreply.github.com> Date: Mon, 14 Jun 2021 10:40:42 +0530 Subject: [PATCH 1/2] Added 'Prettier' linting & autofix workflow --- .github/workflows/prettier.yml | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 .github/workflows/prettier.yml diff --git a/.github/workflows/prettier.yml b/.github/workflows/prettier.yml new file mode 100644 index 0000000..6289ec4 --- /dev/null +++ b/.github/workflows/prettier.yml @@ -0,0 +1,30 @@ +name: Prettier + +on: + push: + branches: [ development, master ] + pull_request: + branches: [ development, master ] + +jobs: + lint: + name: Run prettier + runs-on: ubuntu-latest + + steps: + - name: Check out Git repository + uses: actions/checkout@v2 + + - name: Set up Node.js + uses: actions/setup-node@v1 + with: + node-version: 12 + + - name: Install Node.js dependencies + run: npm ci + + - name: Run linter + uses: wearerequired/lint-action@v1 + with: + prettier: true + auto_fix: true From b5ec9aff542512d30f2486d64b77d3c1ec1e56af Mon Sep 17 00:00:00 2001 From: Lint Action Date: Mon, 14 Jun 2021 05:11:28 +0000 Subject: [PATCH 2/2] Fix code style issues with Prettier --- design/README.md | 1 + src/components/CreateNewEvent.js | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/design/README.md b/design/README.md index 46aac2e..b414517 100644 --- a/design/README.md +++ b/design/README.md @@ -1,4 +1,5 @@ # Current Designs + diff --git a/src/components/CreateNewEvent.js b/src/components/CreateNewEvent.js index 17c2e00..923f489 100644 --- a/src/components/CreateNewEvent.js +++ b/src/components/CreateNewEvent.js @@ -44,7 +44,7 @@ const useStyles = makeStyles(theme => ({ width: '200px', height: '38px', borderRadius: '20px', - marginRight: '15px', + marginRight: '15px' }, createbtn: { marginTop: '60px', @@ -60,7 +60,7 @@ const useStyles = makeStyles(theme => ({ width: '200px', height: '38px', borderRadius: '20px', - marginRight: '60px', + marginRight: '60px' }, inputDiv: { background: 'rgba(42, 23, 89, 0.25)',