Skip to content

Commit

Permalink
chore: add initial husky config and other tools
Browse files Browse the repository at this point in the history
  • Loading branch information
kutsan committed Jun 8, 2021
1 parent 2dd05c6 commit 0ca387e
Show file tree
Hide file tree
Showing 7 changed files with 49 additions and 0 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 ""
4 changes: 4 additions & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

npx --no-install lint-staged
3 changes: 3 additions & 0 deletions commitlint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
module.exports = {
extends: ['@commitlint/config-conventional']
}
4 changes: 4 additions & 0 deletions lint-staged.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
module.exports = {
'*.lua': ['luacheck', 'stylua'],
'*.{js,json,md}': ['prettier --write']
}
28 changes: 28 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
{
"name": "@kutsan/dotfiles",
"version": "0.0.0",
"private": true,
"description": "My dotfiles: Experimental, ongoing configuration files, development environment and scripts for various Unix-like systems, text-based command-line applications and interfaces.",
"keywords": [
"vim",
"linux",
"dotfiles",
"zsh",
"tmux",
"unix",
"neovim"
],
"repository": "github:kutsan/dotfiles",
"license": "GPL-3.0",
"author": "Kutsan Kaplan <[email protected]> (https://kutsankaplan.com)",
"scripts": {
"prepare": "husky install"
},
"devDependencies": {
"@commitlint/cli": "^12.1.4",
"@commitlint/config-conventional": "^12.1.4",
"husky": "^6.0.0",
"lint-staged": "^11.0.0",
"prettier": "^2.3.1"
}
}
5 changes: 5 additions & 0 deletions prettier.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
module.exports = {
semi: false,
singleQuote: true,
trailingComma: 'none'
}

0 comments on commit 0ca387e

Please sign in to comment.