Skip to content

Commit

Permalink
feat: lint-staged
Browse files Browse the repository at this point in the history
  • Loading branch information
0x4007 committed Aug 29, 2022
1 parent 162d1f2 commit 0204da9
Show file tree
Hide file tree
Showing 4 changed files with 1,058 additions and 19 deletions.
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,14 @@ yarn start

[localhost:3000](https://localhost:3000/)

## Committing Code

1. We [automatically enforce](https://github.com/conventional-changelog/commitlint) the [conventional commits](https://www.conventionalcommits.org/en/v1.0.0/) format for commit messages. This can be frustrating for junior developers, but I promise that you'll quickly get used to it!

> The Conventional Commits specification is a lightweight convention on top of commit messages. It provides an easy set of rules for creating an explicit commit history; which makes it easier to write automated tools on top of.
2. We use [prettier](https://github.com/prettier/prettier) and [eslint](https://github.com/eslint/eslint) on [staged files](https://github.com/okonet/lint-staged) in order to enforce a uniform code style. Please do not circumvent these rules or else technical debt may generate quickly.

## Metamask Development Wallet Setup

### Network Settings
Expand Down
1 change: 1 addition & 0 deletions commitlint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
module.exports = { extends: ["@commitlint/config-conventional"] };
3 changes: 3 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,8 @@
"__format:cspell": "cspell '**'"
},
"devDependencies": {
"@commitlint/cli": "^17.1.2",
"@commitlint/config-conventional": "^17.1.0",
"@ethersproject/abi": "^5.0.0",
"@ethersproject/bytes": "^5.0.0",
"@ethersproject/providers": "^5.6.8",
Expand All @@ -55,6 +57,7 @@
"eslint-config-prettier": "^8.5.0",
"eslint-plugin-prettier": "^4.2.1",
"eslint-plugin-tsc": "^2.0.0",
"lint-staged": "^13.0.3",
"nodemon": "^2.0.19",
"postcss": "^8.1.0",
"prettier": "2.7.1",
Expand Down
Loading

0 comments on commit 0204da9

Please sign in to comment.