Skip to content

Commit

Permalink
Merge pull request #12 from ethereum-optimism/cli-lint-typecheck
Browse files Browse the repository at this point in the history
CLI Linting & Typecheck
  • Loading branch information
nitaliano authored Nov 20, 2024
2 parents 61a9ad5 + 67ea115 commit 8c9c30b
Show file tree
Hide file tree
Showing 6 changed files with 433 additions and 2 deletions.
15 changes: 14 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,4 +45,17 @@ jobs:
uses: ./.github/actions/setup
- name: Run Tests
run: |
pnpm nx affected --base=$NX_BASE --head=$NX_HEAD --target=test
pnpm nx affected --base=$NX_BASE --head=$NX_HEAD --target=test
typecheck:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Setup
uses: ./.github/actions/setup
- name: Run Tests
run: |
pnpm nx affected --base=$NX_BASE --head=$NX_HEAD --target=typecheck
326 changes: 326 additions & 0 deletions Cargo.lock

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

5 changes: 5 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
[workspace]

members = [
"packages/toml-parser"
]
3 changes: 3 additions & 0 deletions packages/cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@
"build": "tsup",
"build:watch": "tsup --watch",
"dev": "tsx src/cli.tsx",
"lint": "oxlint",
"lint:fix": "oxlint --fix",
"start": "node dist/cli.js",
"typecheck": "tsc --noEmit"
},
Expand Down Expand Up @@ -42,6 +44,7 @@
"eslint-plugin-react-hooks": "^4.6.0",
"ink-testing-library": "^4.0.0",
"node-gyp": "^10.2.0",
"oxlint": "^0.12.0",
"prettier": "^2.8.7",
"resolve-tspaths": "^0.8.22",
"ts-node": "^10.9.1",
Expand Down
3 changes: 2 additions & 1 deletion packages/toml-parser/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@
"build": "napi build --release",
"test": "cargo test",
"lint": "cargo fmt --check",
"lint:fix": "cargo fmt && cargo fmt --check"
"lint:fix": "cargo fmt && cargo fmt --check",
"typecheck": "cargo check"
},
"dependencies": {
"@napi-rs/cli": "^2.18.4"
Expand Down
Loading

0 comments on commit 8c9c30b

Please sign in to comment.