Skip to content

Commit 020a91a

Browse files
chore: prettier on all files (#732)
1 parent 4004e56 commit 020a91a

File tree

134 files changed

+5920
-15229
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

134 files changed

+5920
-15229
lines changed

.circleci/config.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ references:
2424
postgres_user: graph-node
2525
postgres_pass: let-me-in
2626
postgres_db: graph-node
27-
ipfs: "localhost:5001"
27+
ipfs: 'localhost:5001'
2828
ethereum: 'private:http://localhost:8545'
2929
GRAPH_ALLOW_NON_DETERMINISTIC_IPFS: 1
3030
postgres_image: &postgres_image
@@ -414,7 +414,7 @@ jobs:
414414
done
415415
echo Failed waiting for Node initialization && exit 1
416416
- run:
417-
name: "Confirm TheGraph mode"
417+
name: 'Confirm TheGraph mode'
418418
command: |
419419
NODE_ENDPOINT=$(wget -O- http://localhost:3000/status | jq .dataAccess.endpoint -r)
420420
if [ "$NODE_ENDPOINT" != "http://localhost:8000/subgraphs/name/RequestNetwork/request-storage" ] ; then

.eslintrc

Lines changed: 12 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,8 @@
55
"ecmaVersion": 10,
66
"sourceType": "module"
77
},
8-
"extends": [
9-
"eslint:recommended",
10-
"prettier"
11-
],
12-
"plugins": [
13-
"jsdoc",
14-
"import",
15-
"prefer-arrow"
16-
],
8+
"extends": ["eslint:recommended", "prettier"],
9+
"plugins": ["jsdoc", "import", "prefer-arrow"],
1710
"rules": {
1811
"arrow-parens": ["off", "always"],
1912
"curly": ["error", "all"],
@@ -24,8 +17,15 @@
2417
"ignorePatterns": [
2518
"/packages/docs/",
2619
"/packages/*/dist/",
20+
"/packages/*/coverage/",
2721
// FIXME: tests should be linted
28-
"/packages/*/test/"
22+
"/packages/*/test/",
23+
"/packages/payment-detection/src/thegraph/generated/",
24+
"/packages/request-client.js/docs/",
25+
"/packages/smart-contracts/build/",
26+
"/packages/smart-contracts/cache/",
27+
"/packages/smart-contracts/types/",
28+
"/packages/smart-contracts/src/types/"
2929
],
3030
"overrides": [
3131
{
@@ -34,13 +34,8 @@
3434
"parserOptions": {
3535
"project": "tsconfig.json"
3636
},
37-
"extends": [
38-
"plugin:@typescript-eslint/recommended",
39-
"prettier"
40-
],
41-
"plugins": [
42-
"@typescript-eslint"
43-
],
37+
"extends": ["plugin:@typescript-eslint/recommended", "prettier"],
38+
"plugins": ["@typescript-eslint"],
4439
"rules": {
4540
"@typescript-eslint/no-floating-promises": "error",
4641
"@typescript-eslint/no-unused-vars": "error"

.gitignore

Lines changed: 39 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -1,35 +1,44 @@
1-
# See http://help.github.com/ignore-files/ for more about ignoring files.
2-
3-
# compiled output
4-
dist
5-
6-
# dependencies
7-
node_modules
8-
9-
# Coverage
10-
coverage
11-
.nyc_output
12-
coverage.lcov
13-
14-
# logs
15-
lerna-debug.log
16-
yarn-error.log
17-
18-
# OS specific files
19-
.DS_Store
1+
# -----------------------
2+
# .prettierignore is a symbolic link to this files
3+
# do not create .gitignore files in subdirectories if you want its entries to be ignored by Prettier
4+
# -----------------------
205

216
# local environment variables
22-
.env
23-
.env.*
7+
/.env*
248

25-
# stryker
26-
.stryker-tmp
9+
# logs
10+
/lerna-debug.log
11+
/yarn-error.log
2712

28-
# typescript
29-
tsconfig.tsbuildinfo
13+
# dependencies
14+
/node_modules/
15+
/packages/*/node_modules/
3016

31-
# ignore smart-contracts generated types
32-
packages/smart-contracts/types
33-
packages/smart-contracts/src/types
34-
# ignore thegraph generated types
35-
packages/payment-detection/src/thegraph/generated
17+
# compiled output
18+
/packages/*/dist/
19+
/packages/*/tsconfig.tsbuildinfo
20+
21+
# coverage
22+
/packages/*/coverage/
23+
24+
# docs generated files
25+
/packages/docs/.docusaurus/
26+
/packages/docs/build/
27+
/packages/docs/docs/client/
28+
/packages/docs/docs/guides/4-request-payment/1-multisig.md
29+
/packages/docs/docs/guides/5-request-client/2-erc20-payment-detection.md
30+
/packages/docs/docs/guides/5-request-client/3-eth-payment-detection.md
31+
/packages/docs/docs/guides/5-request-client/4-btc-payment-detection.md
32+
/packages/docs/docs/guides/5-request-client/5-declarative-payment-network.md
33+
34+
# payment-detection generated files
35+
/packages/payment-detection/src/thegraph/generated/
36+
37+
# request-client.js generated files
38+
/packages/request-client.js/docs/
39+
40+
# smart-contracts generated files
41+
/packages/smart-contracts/build/
42+
/packages/smart-contracts/cache/
43+
/packages/smart-contracts/types/
44+
/packages/smart-contracts/src/types/

.lintstagedrc.json

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
11
{
2-
"*.[jt]s": [
3-
"eslint --fix --quiet",
4-
"prettier --write"
5-
]
2+
"*.[jt]s": ["eslint --fix --quiet", "prettier --write"]
63
}

.prettierignore

Lines changed: 0 additions & 1 deletion
This file was deleted.

.prettierignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
.gitignore

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@
2727
"publish-manual-prerelease": "lerna publish prerelease --conventional-commits --exact",
2828
"publish-prerelease": "yarn lerna publish --preid development --skip-git --yes --canary",
2929
"test": "lerna run test",
30-
"format": "prettier packages/**/src/**/*.ts -w",
31-
"format:check": "prettier packages/**/src/**/*.ts -c",
30+
"format": "prettier . -w",
31+
"format:check": "prettier . -c",
3232
"link:all": "for d in packages/*; do pushd $d; yarn link; popd; done",
3333
"unlink:all": "for d in packages/*; do pushd $d; yarn unlink; popd; done"
3434
},

packages/advanced-logic/.vscode/settings.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22
"mochaExplorer.files": "**/test/**/*.ts",
33
"mochaExplorer.require": "ts-node/register",
44
"mochaExplorer.cwd": "../.."
5-
}
5+
}

0 commit comments

Comments
 (0)