Skip to content

Commit

Permalink
chore(website): apply linter for website and remove unused packages
Browse files Browse the repository at this point in the history
- [x] Remove maci-common
- [x] Remove maci-server
- [x] Linter fixes
- [x] Add linter checks for tsx files
- [x] Add commitlint workflow
  • Loading branch information
0xmad committed Dec 8, 2023
1 parent fa16f6f commit 1a3b343
Show file tree
Hide file tree
Showing 42 changed files with 628 additions and 8,855 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/commitlint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Commitlint

on:
pull_request:

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
commitlint:
runs-on: ubuntu-22.04

steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Use Node.js 20
uses: actions/setup-node@v4
with:
node-version: 20
cache: "npm"

- name: Update npm to latest version
run: npm install --global npm@latest

- name: Install
run: |
npm install
npm run bootstrap
- run: npx commitlint --from ${{ github.event.pull_request.base.sha }} --to ${{ github.event.pull_request.head.sha }} --verbose
2 changes: 1 addition & 1 deletion .lintstagedrc.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"**/*.{ts,js}": ["prettier --ignore-unknown --write", "eslint --fix"],
"**/*.{sol, yaml, yml, md, json}": ["prettier --ignore-unknown --write"]
"*": ["prettier --ignore-unknown --write"]
}
1 change: 1 addition & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,4 @@ package-lock.json
CHANGELOG.md
.eslintignore
circuits/ts/verifier_groth16.sol
website/.docusaurus/
12 changes: 0 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,11 @@ Below you can find a list of the packages included in this repository.
| ------------------------------------------------- | ----------------------------------------------------------------------- | ---------------------------------------------------------------------------------- |
| [maci-circuits][circuits-package] | [![NPM Package][circuits-npm-badge]][circuits-npm-link] | [![Actions Status][circuits-actions-badge]][circuits-actions-link] |
| [maci-cli][cli-package] | [![NPM Package][cli-npm-badge]][cli-npm-link] | [![Actions Status][cli-actions-badge]][cli-actions-link] |
| [maci-common][common-package] | [![NPM Package][common-npm-badge]][common-npm-link] | [![Actions Status][common-actions-badge]][common-actions-link] |
| [maci-contracts][contracts-package] | [![NPM Package][contracts-npm-badge]][contracts-npm-link] | [![Actions Status][contracts-actions-badge]][contracts-actions-link] |
| [maci-core][core-package] | [![NPM Package][core-npm-badge]][core-npm-link] | [![Actions Status][core-actions-badge]][core-actions-link] |
| [maci-crypto][crypto-package] | [![NPM Package][crypto-npm-badge]][crypto-npm-link] | [![Actions Status][crypto-actions-badge]][crypto-actions-link] |
| [maci-domainobjs][domainobjs-package] | [![NPM Package][domainobjs-npm-badge]][domainobjs-npm-link] | [![Actions Status][domainobjs-actions-badge]][domainobjs-actions-link] |
| [maci-integrationTests][integrationTests-package] | [![NPM Package][integrationTests-npm-badge]][integrationTests-npm-link] | [![Actions Status][integrationTests-actions-badge]][integrationTests-actions-link] |
| [maci-server][server-package] | [![NPM Package][server-npm-badge]][server-npm-link] | [![Actions Status][server-actions-badge]][server-actions-link] |

## Local Development and testing

Expand Down Expand Up @@ -81,11 +79,6 @@ CI pipeline ensures that we have automated tests that constantly validate. For m
[cli-actions-badge]: https://github.com/privacy-scaling-explorations/maci/actions/workflows/e2e.yml/badge.svg
[cli-npm-link]: https://www.npmjs.com/package/maci-cli
[cli-actions-link]: https://github.com/privacy-scaling-explorations/maci/actions?query=workflow%3ACI
[common-package]: ./common
[common-npm-badge]: https://img.shields.io/npm/v/maci-common.svg
[common-npm-link]: https://www.npmjs.com/package/maci-common
[common-actions-badge]: https://github.com/privacy-scaling-explorations/maci/actions/workflows/build.yml/badge.svg
[common-actions-link]: https://github.com/privacy-scaling-explorations/maci/actions?query=workflow%3Acommon
[contracts-package]: ./contracts
[contracts-npm-badge]: https://img.shields.io/npm/v/maci-contracts.svg
[contracts-npm-link]: https://www.npmjs.com/package/maci-contracts
Expand All @@ -111,8 +104,3 @@ CI pipeline ensures that we have automated tests that constantly validate. For m
[integrationTests-npm-link]: https://www.npmjs.com/package/maci-integrationtests
[integrationTests-actions-badge]: https://github.com/privacy-scaling-explorations/maci/actions/workflows/e2e.yml/badge.svg
[integrationTests-actions-link]: https://github.com/privacy-scaling-explorations/maci/actions?query=workflow%3ACI
[server-package]: ./server
[server-npm-badge]: https://img.shields.io/npm/v/maci-server.svg
[server-npm-link]: https://www.npmjs.com/package/maci-server
[server-actions-badge]: https://github.com/privacy-scaling-explorations/maci/actions/workflows/build.yml/badge.svg
[server-actions-link]: https://github.com/privacy-scaling-explorations/maci/actions?query=workflow%3Aserver
1 change: 0 additions & 1 deletion cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@
"ethers": "^6.9.0",
"hardhat": "^2.19.2",
"maci-circuits": "^1.1.2",
"maci-common": "^1.1.2",
"maci-contracts": "^1.1.2",
"maci-core": "^1.1.2",
"maci-crypto": "^1.1.2",
Expand Down
17 changes: 0 additions & 17 deletions common/CHANGELOG.md

This file was deleted.

8 changes: 0 additions & 8 deletions common/README.md

This file was deleted.

14 changes: 0 additions & 14 deletions common/index.js

This file was deleted.

10 changes: 0 additions & 10 deletions common/package.json

This file was deleted.

Loading

0 comments on commit 1a3b343

Please sign in to comment.