Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: Add prettier configs #939

Merged
merged 33 commits into from
Jan 15, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
33 commits
Select commit Hold shift + click to select a range
fd29f90
chore: Add prettier configs for client/api. Adjust eslint rules for l…
msarcev Dec 28, 2023
366e3f6
feat: add prettier and eslint config to root
VmMad Jan 9, 2024
0c6c326
chore: run format script
VmMad Jan 9, 2024
9c1fe0e
fix: trailing commas
VmMad Jan 9, 2024
79b213d
fix: no mixed operators
VmMad Jan 9, 2024
ad595bc
feat: add ci and pre-commit
VmMad Jan 9, 2024
1b94613
feat: add stylelint to lint staged
VmMad Jan 9, 2024
567b72a
fix: scss files
VmMad Jan 9, 2024
b09971c
fix: stylelint conflicts
VmMad Jan 9, 2024
82545c7
fix: add missing ts config
VmMad Jan 9, 2024
595809f
chore: format
VmMad Jan 9, 2024
55c610c
chore: undo format
VmMad Jan 9, 2024
e4b75ff
Merge branch 'dev' into chore/add-prettier-config
VmMad Jan 9, 2024
1e60fa8
chore: format files
VmMad Jan 9, 2024
b625ede
fix: add missing installs
VmMad Jan 9, 2024
f3ce8a6
fix: ternaries
VmMad Jan 9, 2024
eb05295
fix: add missing stylelint config
VmMad Jan 9, 2024
8166952
fix: reformat tsconfig.json
VmMad Jan 9, 2024
5a5d38c
feat: set prettier in each folder
VmMad Jan 10, 2024
d832fa7
fix: add missing lint
VmMad Jan 10, 2024
0a5ee3a
fix: add missing lint in client
VmMad Jan 10, 2024
40e07fa
chore: commit tsconfig
VmMad Jan 10, 2024
be40130
fix: ci lint check
VmMad Jan 10, 2024
4c73699
feat: add prettier eslint plugin
VmMad Jan 10, 2024
c7f2164
chore: add missing ignore file
VmMad Jan 10, 2024
7fd0c41
chore: revert formatting on files
VmMad Jan 12, 2024
1525247
chore: revert formatting on eslintignore
VmMad Jan 12, 2024
d784cf2
chore: Remove eslint/max-len from api + Remove prettier plugins for e…
msarcev Jan 12, 2024
c155ff0
chore: run lintstaged only on src
VmMad Jan 12, 2024
e69896f
chore: Remove unused eslint-plugin-prettier from api/client
msarcev Jan 12, 2024
5dcb5d0
chore: run format
VmMad Jan 12, 2024
67f1421
fix: sync configuration from stylelint
VmMad Jan 12, 2024
3e83312
ci: simplify lint-check workflow
VmMad Jan 15, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
33 changes: 33 additions & 0 deletions .github/workflows/pr-lint-check.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Format & Lint Check

on:
pull_request:
types: [opened, reopened, synchronize]

jobs:
lint-check:
strategy:
fail-fast: false
matrix:
project: [api, client]
runs-on: ubuntu-latest
defaults:
run:
working-directory: ${{ matrix.project }}
steps:
- uses: actions/checkout@v2

- name: Setup Node.js
uses: actions/setup-node@v2
with:
node-version: "16"

- name: Install Dependencies
run: npm install

- name: Format Check
run: npm run format:check

- name: Lint Check
run: npm run lint:check

2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,5 @@ config.local.feed.json
config.staging.json
config.prod.json
env.js

**/.eslintcache
4 changes: 4 additions & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

npx lint-staged --allow-empty
3 changes: 3 additions & 0 deletions api/.eslintignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,5 @@
.eslintrc.js
*.d.ts

dist/**
node_modules/**
Loading
Loading