Skip to content

Commit

Permalink
chore(config): add commit linter
Browse files Browse the repository at this point in the history
  • Loading branch information
Franck committed Jun 16, 2021
1 parent 390c533 commit 8c98fd9
Show file tree
Hide file tree
Showing 6 changed files with 816 additions and 8 deletions.
1 change: 1 addition & 0 deletions .husky/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
_
4 changes: 4 additions & 0 deletions .husky/commit-msg
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

npx --no-install commitlint --edit "$1"
3 changes: 3 additions & 0 deletions .prettierrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"singleQuote": true
}
1 change: 1 addition & 0 deletions commitlint.config.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
module.exports = { extends: ['@commitlint/config-conventional'] };
4 changes: 4 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"description": "Design tokens are all the values needed to construct and maintain a design system — spacing, color, typography, object styles, animation, etc.",
"main": "index.js",
"type": "module",
"private": true,
"scripts": {
"build": "node src/tokens.js",
"lint": "eslint src/*.js",
Expand All @@ -25,8 +26,11 @@
},
"homepage": "https://github.com/gsoft-inc/igloo-ui-tokens#readme",
"devDependencies": {
"@commitlint/cli": "^12.1.4",
"@commitlint/config-conventional": "^12.1.4",
"eslint": "^7.28.0",
"eslint-config-prettier": "^8.3.0",
"husky": "^6.0.0",
"prettier": "2.3.1",
"theo": "^8.1.5"
}
Expand Down
Loading

0 comments on commit 8c98fd9

Please sign in to comment.