Skip to content

Commit 3b1475f

Browse files
authored
Merge pull request #24 from BeyteFlow/test
add preview option
2 parents 7150caa + 2f7dd53 commit 3b1475f

7 files changed

Lines changed: 672 additions & 116 deletions

File tree

.github/workflows/autofix.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: autofix.ci
2+
3+
on:
4+
pull_request:
5+
push:
6+
branches: [ "main" ]
7+
8+
permissions:
9+
contents: write
10+
11+
jobs:
12+
autofix:
13+
runs-on: ubuntu-latest
14+
steps:
15+
- uses: actions/checkout@v4
16+
17+
- uses: actions/setup-node@v4
18+
with:
19+
node-version: 'lts/*'
20+
cache: 'npm'
21+
22+
- run: npm ci
23+
24+
- name: Run fixes
25+
run: |
26+
# --ignore-unknown stops it from crashing on things like favicon.svg
27+
npx prettier --write "src/**/*.{ts,tsx,js,jsx,json,css,md}" "public/**/*" "*.{js,ts,json,md}" --ignore-unknown
28+
29+
# ESLint targets your source code logic
30+
npx eslint src --ext .ts,.tsx --fix
31+
32+
- uses: autofix-ci/action@v1
33+
if: always()

.prettierignore

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
.github/
2+
node_modules/
3+
dist/
4+
build/
5+
*.lock

__tests__/apiGenerate.test.ts

Lines changed: 0 additions & 70 deletions
This file was deleted.

0 commit comments

Comments
 (0)