Skip to content

Commit

Permalink
add formatting and lint to ts example
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelvlach committed Jan 13, 2024
1 parent ee8ff5b commit a5a0491
Show file tree
Hide file tree
Showing 4 changed files with 1,510 additions and 7 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/examples.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,10 @@ jobs:
- uses: actions/checkout@v4
- uses: actions-rust-lang/setup-rust-toolchain@v1
- run: cargo clippy ${{ env.RUST_PROJECTS }} --all-targets --all-features -- -D warnings
- run: |
cd ../../examples/server_client_typescript
npm ci
npm run lint
agdb_examples_build:
runs-on: ubuntu-latest
Expand All @@ -54,3 +58,7 @@ jobs:
- uses: actions/checkout@v4
- uses: actions-rust-lang/setup-rust-toolchain@v1
- run: cargo fmt ${{ env.RUST_PROJECTS }} --check
- run: |
cd ../../examples/server_client_typescript
npm ci
npm run format:check
13 changes: 13 additions & 0 deletions examples/server_client_typescript/.eslintrc.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
module.exports = {
root: true,
extends: [
"eslint:recommended",
],
env: {
node: true,
},
parser: "@typescript-eslint/parser",
parserOptions: {
ecmaVersion: "latest"
},
};
Loading

0 comments on commit a5a0491

Please sign in to comment.