Skip to content

Commit

Permalink
chore: prettier on all files (#732)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexandre-abrioux authored Jan 17, 2022
1 parent 4004e56 commit 020a91a
Show file tree
Hide file tree
Showing 134 changed files with 5,920 additions and 15,229 deletions.
4 changes: 2 additions & 2 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ references:
postgres_user: graph-node
postgres_pass: let-me-in
postgres_db: graph-node
ipfs: "localhost:5001"
ipfs: 'localhost:5001'
ethereum: 'private:http://localhost:8545'
GRAPH_ALLOW_NON_DETERMINISTIC_IPFS: 1
postgres_image: &postgres_image
Expand Down Expand Up @@ -414,7 +414,7 @@ jobs:
done
echo Failed waiting for Node initialization && exit 1
- run:
name: "Confirm TheGraph mode"
name: 'Confirm TheGraph mode'
command: |
NODE_ENDPOINT=$(wget -O- http://localhost:3000/status | jq .dataAccess.endpoint -r)
if [ "$NODE_ENDPOINT" != "http://localhost:8000/subgraphs/name/RequestNetwork/request-storage" ] ; then
Expand Down
29 changes: 12 additions & 17 deletions .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,8 @@
"ecmaVersion": 10,
"sourceType": "module"
},
"extends": [
"eslint:recommended",
"prettier"
],
"plugins": [
"jsdoc",
"import",
"prefer-arrow"
],
"extends": ["eslint:recommended", "prettier"],
"plugins": ["jsdoc", "import", "prefer-arrow"],
"rules": {
"arrow-parens": ["off", "always"],
"curly": ["error", "all"],
Expand All @@ -24,8 +17,15 @@
"ignorePatterns": [
"/packages/docs/",
"/packages/*/dist/",
"/packages/*/coverage/",
// FIXME: tests should be linted
"/packages/*/test/"
"/packages/*/test/",
"/packages/payment-detection/src/thegraph/generated/",
"/packages/request-client.js/docs/",
"/packages/smart-contracts/build/",
"/packages/smart-contracts/cache/",
"/packages/smart-contracts/types/",
"/packages/smart-contracts/src/types/"
],
"overrides": [
{
Expand All @@ -34,13 +34,8 @@
"parserOptions": {
"project": "tsconfig.json"
},
"extends": [
"plugin:@typescript-eslint/recommended",
"prettier"
],
"plugins": [
"@typescript-eslint"
],
"extends": ["plugin:@typescript-eslint/recommended", "prettier"],
"plugins": ["@typescript-eslint"],
"rules": {
"@typescript-eslint/no-floating-promises": "error",
"@typescript-eslint/no-unused-vars": "error"
Expand Down
69 changes: 39 additions & 30 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,35 +1,44 @@
# See http://help.github.com/ignore-files/ for more about ignoring files.

# compiled output
dist

# dependencies
node_modules

# Coverage
coverage
.nyc_output
coverage.lcov

# logs
lerna-debug.log
yarn-error.log

# OS specific files
.DS_Store
# -----------------------
# .prettierignore is a symbolic link to this files
# do not create .gitignore files in subdirectories if you want its entries to be ignored by Prettier
# -----------------------

# local environment variables
.env
.env.*
/.env*

# stryker
.stryker-tmp
# logs
/lerna-debug.log
/yarn-error.log

# typescript
tsconfig.tsbuildinfo
# dependencies
/node_modules/
/packages/*/node_modules/

# ignore smart-contracts generated types
packages/smart-contracts/types
packages/smart-contracts/src/types
# ignore thegraph generated types
packages/payment-detection/src/thegraph/generated
# compiled output
/packages/*/dist/
/packages/*/tsconfig.tsbuildinfo

# coverage
/packages/*/coverage/

# docs generated files
/packages/docs/.docusaurus/
/packages/docs/build/
/packages/docs/docs/client/
/packages/docs/docs/guides/4-request-payment/1-multisig.md
/packages/docs/docs/guides/5-request-client/2-erc20-payment-detection.md
/packages/docs/docs/guides/5-request-client/3-eth-payment-detection.md
/packages/docs/docs/guides/5-request-client/4-btc-payment-detection.md
/packages/docs/docs/guides/5-request-client/5-declarative-payment-network.md

# payment-detection generated files
/packages/payment-detection/src/thegraph/generated/

# request-client.js generated files
/packages/request-client.js/docs/

# smart-contracts generated files
/packages/smart-contracts/build/
/packages/smart-contracts/cache/
/packages/smart-contracts/types/
/packages/smart-contracts/src/types/
5 changes: 1 addition & 4 deletions .lintstagedrc.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
{
"*.[jt]s": [
"eslint --fix --quiet",
"prettier --write"
]
"*.[jt]s": ["eslint --fix --quiet", "prettier --write"]
}
1 change: 0 additions & 1 deletion .prettierignore

This file was deleted.

1 change: 1 addition & 0 deletions .prettierignore
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@
"publish-manual-prerelease": "lerna publish prerelease --conventional-commits --exact",
"publish-prerelease": "yarn lerna publish --preid development --skip-git --yes --canary",
"test": "lerna run test",
"format": "prettier packages/**/src/**/*.ts -w",
"format:check": "prettier packages/**/src/**/*.ts -c",
"format": "prettier . -w",
"format:check": "prettier . -c",
"link:all": "for d in packages/*; do pushd $d; yarn link; popd; done",
"unlink:all": "for d in packages/*; do pushd $d; yarn unlink; popd; done"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/advanced-logic/.vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
"mochaExplorer.files": "**/test/**/*.ts",
"mochaExplorer.require": "ts-node/register",
"mochaExplorer.cwd": "../.."
}
}
Loading

0 comments on commit 020a91a

Please sign in to comment.