Skip to content

Commit

Permalink
Adds prettier check precommit, removes prettier test
Browse files Browse the repository at this point in the history
  • Loading branch information
Don Mosites committed Aug 20, 2021
1 parent 8add67e commit 65a41b4
Show file tree
Hide file tree
Showing 7 changed files with 30 additions and 25 deletions.
5 changes: 5 additions & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

CI=true yarn test
yarn prettier --check ./src --plugin @trivago/prettier-plugin-sort-imports
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
"lint": "prettier --write \"./src/**/*.{ts,tsx}\"",
"test": "craco test",
"eject": "react-scripts eject",
"prepare": "husky install",
"storybook": "start-storybook -p 6006 -s public",
"build-storybook": "build-storybook -s public"
},
Expand Down Expand Up @@ -39,11 +40,11 @@
"classnames": "^2.3.1",
"erc-20-abi": "^1.0.0",
"ethers": "^5.4.4",
"framer-motion": "^4.1.17",
"i18next": "^20.4.0",
"i18next-browser-languagedetector": "^6.1.2",
"i18next-http-backend": "^1.3.0",
"jayson": "^3.6.4",
"framer-motion": "^4.1.17",
"lodash.uniqby": "^4.7.0",
"react": "^17.0.2",
"react-blockies": "^1.4.1",
Expand Down Expand Up @@ -72,6 +73,7 @@
"@types/react-blockies": "^1.4.1",
"@types/react-router-dom": "^5.1.8",
"autoprefixer": "^9",
"husky": "^7.0.1",
"jest-canvas-mock": "^2.3.1",
"postcss": "^7",
"tailwindcss": "npm:@tailwindcss/postcss7-compat"
Expand Down
6 changes: 4 additions & 2 deletions src/components/Content/Introduction.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,10 @@ const Introduction = () => {
<Container>
<Title type="h1">Welcome to AirSwap</Title>
<Paragraph>
We are an open developer community building decentralized trading systems.
<br /><br />
We are an open developer community building decentralized trading
systems.
<br />
<br />
More content will be displayed here soon.
</Paragraph>
<Link href="https://chat.airswap.io/">Join the Discord →</Link>
Expand Down
10 changes: 7 additions & 3 deletions src/components/Content/Organization.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,15 @@ const Organization = () => {
<Container>
<Title type="h1">Stake to Join</Title>
<Paragraph>
We are an open developer community building decentralized trading systems.
<br /><br />
We are an open developer community building decentralized trading
systems.
<br />
<br />
More content will be displayed here soon.
</Paragraph>
<Link href="https://activate.codefi.network/staking/airswap/governance">Stake your tokens →</Link>
<Link href="https://activate.codefi.network/staking/airswap/governance">
Stake your tokens →
</Link>
</Container>
</>
);
Expand Down
8 changes: 5 additions & 3 deletions src/components/Content/Products.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,10 @@ const Products = () => {
<Container>
<Title type="h1">Peer-to-peer Trading</Title>
<Paragraph>
We are an open developer community building decentralized trading systems.
<br /><br />
We are an open developer community building decentralized trading
systems.
<br />
<br />
More content will be displayed here soon.
</Paragraph>
<Link href="https://docs.airswap.io/">Check the docs →</Link>
Expand All @@ -17,4 +19,4 @@ const Products = () => {
);
};

export default Products;
export default Products;
16 changes: 0 additions & 16 deletions src/prettier.spec.ts

This file was deleted.

6 changes: 6 additions & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -5153,6 +5153,7 @@
"@types/react" "*"
hoist-non-react-statics "^3.3.0"
redux "^4.0.0"

"@types/react-router-dom@^5.1.8":
version "5.1.8"
resolved "https://registry.yarnpkg.com/@types/react-router-dom/-/react-router-dom-5.1.8.tgz#bf3e1c8149b3d62eaa206d58599de82df0241192"
Expand Down Expand Up @@ -11122,6 +11123,11 @@ human-signals@^1.1.1:
resolved "https://registry.yarnpkg.com/human-signals/-/human-signals-1.1.1.tgz"
integrity sha512-SEQu7vl8KjNL2eoGBLF3+wAjpsNfA9XMlXAYj/3EdaNfAlxKthD1xjEQfGOUhllCGGJVNY34bRr6lPINhNjyZw==

husky@^7.0.1:
version "7.0.1"
resolved "https://registry.yarnpkg.com/husky/-/husky-7.0.1.tgz#579f4180b5da4520263e8713cc832942b48e1f1c"
integrity sha512-gceRaITVZ+cJH9sNHqx5tFwbzlLCVxtVZcusME8JYQ8Edy5mpGDOqD8QBCdMhpyo9a+JXddnujQ4rpY2Ff9SJA==

i18next-browser-languagedetector@^6.1.2:
version "6.1.2"
resolved "https://registry.yarnpkg.com/i18next-browser-languagedetector/-/i18next-browser-languagedetector-6.1.2.tgz#68565a28b929cbc98ab6a56826ef2faf0e927ff8"
Expand Down

0 comments on commit 65a41b4

Please sign in to comment.