-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' of github.com:thesis/acre into connect-wallet
- Loading branch information
Showing
5 changed files
with
88 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
# Auto-fix linting | ||
d2a058fe6cfbab6f82d0d977d1b2d8bd9f494df1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,55 @@ | ||
repos: | ||
- repo: local | ||
hooks: | ||
- id: lint-sol | ||
# Core | ||
- id: core-lint-sol | ||
name: "lint core sol" | ||
entry: /usr/bin/env bash -c "cd core/ && npm run lint:sol" | ||
files: '\.sol$' | ||
entry: /usr/bin/env bash -c "npm --prefix ./core/ run lint:sol" | ||
files: ^core/ | ||
types: [solidity] | ||
language: script | ||
description: "Checks solidity code according to the package's linter configuration" | ||
- id: lint-js | ||
- id: core-lint-js | ||
name: "lint core ts/js" | ||
entry: /usr/bin/env bash -c "cd core/ && npm run lint:js" | ||
files: '\.(ts|js)$' | ||
entry: /usr/bin/env bash -c "npm --prefix ./core/ run lint:js" | ||
files: ^core/ | ||
types_or: [ts, javascript] | ||
language: script | ||
description: "Checks TS/JS code according to the package's linter configuration" | ||
- id: lint-config | ||
- id: core-lint-config | ||
name: "lint core json/yaml" | ||
entry: /usr/bin/env bash -c "cd core/ && npm run lint:config" | ||
files: '\.(json|yaml)$' | ||
entry: /usr/bin/env bash -c "npm --prefix ./core/ run lint:config" | ||
files: ^core/ | ||
types_or: [json, yaml] | ||
language: script | ||
description: "Checks JSON/YAML code according to the package's linter configuration" | ||
# dApp | ||
- id: dapp-lint-js | ||
name: "lint dapp ts/js" | ||
entry: /usr/bin/env bash -c "npm --prefix ./dapp/ run lint:js" | ||
files: ^dapp/ | ||
types_or: [ts, tsx, javascript, jsx] | ||
language: script | ||
description: "Checks TS/JS code according to the package's linter configuration" | ||
- id: dapp-lint-config | ||
name: "lint dapp json/yaml" | ||
entry: /usr/bin/env bash -c "npm --prefix ./dapp/ run lint:config" | ||
files: ^dapp/ | ||
types_or: [json, yaml] | ||
language: script | ||
description: "Checks JSON/YAML code according to the package's linter configuration" | ||
# Website | ||
- id: website-lint-js | ||
name: "lint website ts/js" | ||
entry: /usr/bin/env bash -c "npm --prefix ./website/ run lint:js" | ||
files: ^website/ | ||
types_or: [ts, tsx, javascript, jsx] | ||
language: script | ||
description: "Checks TS/JS code according to the package's linter configuration" | ||
- id: website-lint-config | ||
name: "lint website json/yaml" | ||
entry: /usr/bin/env bash -c "npm --prefix ./website/ run lint:config" | ||
files: ^website/ | ||
types_or: [json, yaml] | ||
language: script | ||
description: "Checks JSON/YAML code according to the package's linter configuration" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,34 +1,34 @@ | ||
{ | ||
"id": "acre", | ||
"name": "ACRE", | ||
"url": "http://localhost:5173/", | ||
"homepageUrl": "http://localhost:5173/", | ||
"icon": "http://localhost:5173/acre.svg", | ||
"platform": "all", | ||
"apiVersion": "2.0.0", | ||
"manifestVersion": "1", | ||
"branch": "stable", | ||
"categories": [ | ||
"buy" | ||
], | ||
"currencies": [ | ||
"bitcoin", | ||
"bitcoin_testnet", | ||
"ethereum", | ||
"ethereum_goerli" | ||
], | ||
"content": { | ||
"shortDescription": { | ||
"en": "Bitcoin Liquid Staking" | ||
}, | ||
"description": { | ||
"en": "Bitcoin Liquid Staking" | ||
} | ||
"id": "acre", | ||
"name": "ACRE", | ||
"url": "http://localhost:5173/", | ||
"homepageUrl": "http://localhost:5173/", | ||
"icon": "http://localhost:5173/acre.svg", | ||
"platform": "all", | ||
"apiVersion": "2.0.0", | ||
"manifestVersion": "1", | ||
"branch": "stable", | ||
"categories": [ | ||
"buy" | ||
], | ||
"currencies": [ | ||
"bitcoin", | ||
"bitcoin_testnet", | ||
"ethereum", | ||
"ethereum_goerli" | ||
], | ||
"content": { | ||
"shortDescription": { | ||
"en": "Bitcoin Liquid Staking" | ||
}, | ||
"permissions": [ | ||
"account.request" | ||
], | ||
"domains": [ | ||
"http://*" | ||
] | ||
"description": { | ||
"en": "Bitcoin Liquid Staking" | ||
} | ||
}, | ||
"permissions": [ | ||
"account.request" | ||
], | ||
"domains": [ | ||
"http://*" | ||
] | ||
} |