Skip to content

Commit

Permalink
build: add commitlint and prettier configs
Browse files Browse the repository at this point in the history
  • Loading branch information
timbru31 committed Jul 19, 2019
1 parent dc4fb9e commit 475f364
Show file tree
Hide file tree
Showing 8 changed files with 3,347 additions and 2,151 deletions.
6 changes: 6 additions & 0 deletions .huskyrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"hooks": {
"pre-commit": "lint-staged",
"commit-msg": "commitlint -E HUSKY_GIT_PARAMS"
}
}
3 changes: 3 additions & 0 deletions .lintstagedrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"*.{ts,json,css,md,yml}": ["prettier --write", "git add"]
}
9 changes: 9 additions & 0 deletions .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"recommendations": [
"EditorConfig.editorconfig",
"esbenp.prettier-vscode",
"ms-vscode.vscode-typescript-tslint-plugin",
"streetsidesoftware.code-spell-checker",
"mathiasfrohlich.kotlin"
]
}
12 changes: 3 additions & 9 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,6 @@
{
"cSpell.words": [
"Airbnb's",
"Brust",
"Dependabot",
"bodymovin",
"cocoapods",
"splashscreen"
],
"cSpell.words": ["Airbnb's", "Brust", "Dependabot", "bodymovin", "cocoapods", "splashscreen"],
"editor.formatOnSave": true,
"editor.formatOnPaste": true
"editor.formatOnPaste": true,
"editor.defaultFormatter": "esbenp.prettier-vscode"
}
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-angular'] };
Loading

0 comments on commit 475f364

Please sign in to comment.