Skip to content

Commit

Permalink
chore: update ts lint and ci
Browse files Browse the repository at this point in the history
  • Loading branch information
ErKeLost committed Oct 18, 2024
1 parent 2a0ad60 commit 8a69321
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 20 deletions.
24 changes: 12 additions & 12 deletions .github/workflows/lint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,15 +22,15 @@ jobs:
run: cargo fmt
- name: Run cargo clippy
run: cargo clippy
lint:
name: TS Code Lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 18
- name: Install Dependencies
run: npm install -g [email protected] && pnpm i --frozen-lockfile
- name: Run lint
run: npx biome check --no-errors-on-unmatched --files-ignore-unknown=true
# lint:
# name: TS Code Lint
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v3
# - uses: actions/setup-node@v3
# with:
# node-version: 18
# - name: Install Dependencies
# run: npm install -g [email protected] && pnpm i --frozen-lockfile
# - name: Run lint
# run: npx biome check --no-errors-on-unmatched --files-ignore-unknown=true
15 changes: 9 additions & 6 deletions examples/refactor-react/src/main.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ import "./main.css";
import reactLogo from "/react.svg";
import FarmLogo from "./assets/logo.png";
// import { a } from './a.js'
// import { Button } from 'antd'
// import { HappyProvider } from '@ant-design/happy-work-theme';
import { Button } from 'antd'
import { HappyProvider } from '@ant-design/happy-work-theme';
export function Main() {
const [count, setCount] = useState(0);
// console.log(a);
Expand All @@ -19,13 +19,16 @@ export function Main() {
<img src={reactLogo} className="logo react" alt="React logo" />
</a>
</div>
{/* <HappyProvider> */}
{/* <Button type="primary">Primary Button</Button> */}
{/* </HappyProvider> */}
<HappyProvider>
<Button type="primary">Primary Button</Button>
<Button type="primary">Primary Button</Button>
<Button type="primary">Primary Button</Button>
<Button type="primary">Primary Button</Button>
</HappyProvider>
<h1>Farm + react</h1>
<div className="card">
<button onClick={() => setCount((count) => count + 1)}>
count is 2222222222222233422222{count}
count is 222222222222222222233422222{count}
</button>
<p>
Edit <code>src/main.tsx</code> and save to test HMR
Expand Down
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,13 @@
"test": "cross-env NODE_OPTIONS=--trace-exit vitest run"
},
"devDependencies": {
"@farmfe/core": "workspace:*",
"@farmfe/cli": "workspace:*",
"@biomejs/biome": "1.8.3",
"@changesets/cli": "^2.26.0",
"@codspeed/vitest-plugin": "^3.1.1",
"@commitlint/cli": "^17.0.3",
"@commitlint/config-conventional": "^17.0.3",
"@farmfe/cli": "workspace:*",
"@farmfe/core": "workspace:*",
"@types/node": "22.5.0",
"@vitest/coverage-v8": "2.0.4",
"cross-env": "^7.0.3",
Expand All @@ -41,6 +41,7 @@
"husky": "^9.0.11",
"lint-staged": "^13.0.3",
"nanospinner": "^1.1.0",
"node-emoji": "^2.1.3",
"playwright-chromium": "^1.42.1",
"rimraf": "6.0.1",
"rollup": "^3.29.4",
Expand Down
3 changes: 3 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 8a69321

Please sign in to comment.