Skip to content

Commit

Permalink
Merge pull request #3 from holochain-apps/code-organization-and-linting
Browse files Browse the repository at this point in the history
Code organization, cleanup, linting, packages updates
  • Loading branch information
Zequez authored Aug 13, 2024
2 parents a80feea + 8819c41 commit 118d1b2
Show file tree
Hide file tree
Showing 78 changed files with 4,998 additions and 4,541 deletions.
13 changes: 6 additions & 7 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: "test"
on:
# Trigger the workflow on push or pull request,
# but only for the main branch
push:
push:
branches: [ main, develop ]
pull_request:
branches: [ main, develop ]
Expand All @@ -11,20 +11,19 @@ jobs:
testbuild:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4

- name: Install nix
uses: cachix/install-nix-action@v18
uses: cachix/install-nix-action@v27
with:
install_url: https://releases.nixos.org/nix/nix-2.12.0/install
install_url: https://releases.nixos.org/nix/nix-2.18.2/install
extra_nix_config: |
experimental-features = flakes nix-command
- uses: cachix/cachix-action@v10
- uses: cachix/cachix-action@v15
with:
name: holochain-ci

- name: Install and test
run: |
nix develop --command bash -c "npm i && npm t"
nix develop --command bash -c "npm i && npm t && cd ui && npm run check"
21 changes: 21 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"printWidth": 100,
"tabWidth": 2,
"useTabs": false,
"semi": true,
"singleQuote": true,
"quoteProps": "as-needed",
"jsxSingleQuote": false,
"trailingComma": "all",
"bracketSpacing": true,
"arrowParens": "always",
"proseWrap": "always",
"htmlWhitespaceSensitivity": "strict",
"plugins": ["prettier-plugin-svelte", "@trivago/prettier-plugin-sort-imports"],
"endOfLine": "auto",
"importOrder": ["holochain|lightningrodlabs", "^~\/shared\/(.*)$", "^[./]"],
"importOrderSeparation": true,
"importOrderSortSpecifiers": true,
"importOrderCaseInsensitive": true,
"overrides": [{ "files": "*.svelte", "options": { "parser": "svelte" } }]
}
Loading

0 comments on commit 118d1b2

Please sign in to comment.