Skip to content

Commit

Permalink
chore: git hooks lint-staged (#41)
Browse files Browse the repository at this point in the history
* chore: git hooks lint-staged

* chore: 2.3.0 version
  • Loading branch information
IgnacioNMiranda authored Dec 28, 2021
1 parent f908c7c commit 230d906
Show file tree
Hide file tree
Showing 6 changed files with 457 additions and 241 deletions.
1 change: 1 addition & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,6 @@ module.exports = {
rules: {
'no-unused-vars': 'off',
'@typescript-eslint/no-unused-vars': 'warn',
'no-use-before-define': 'off',
},
}
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,6 @@ node_modules
# Ignore built ts files
dist

yarn-error.log
yarn-error.log

.eslintcache
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/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

npx lint-staged
25 changes: 16 additions & 9 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
{
"name": "chibi-knight",
"version": "2.2.0",
"version": "2.3.0",
"description": "A multipurpose discord bot",
"main": "dist/app.js",
"scripts": {
"start": "node dist/app.js",
"dev": "tsc-watch --onSuccess \"sh -c 'tsc-alias && node dist/app.js'\"",
"build": "rm -rf dist && tsc && tsc-alias",
"test": "echo \"Error: no test specified\" && exit 1",
"lint": "eslint \"{src, test}/**/*.ts\" --fix"
"lint": "eslint \"{src, test}/**/*.{js,ts}\" --fix",
"prepare": "husky install"
},
"repository": {
"type": "git",
Expand All @@ -25,27 +26,33 @@
},
"private": "true",
"dependencies": {
"@sapphire/framework": "^2.2.1",
"@sapphire/framework": "^2.2.2",
"@sapphire/plugin-logger": "^2.1.1",
"discord.js": "^13.4.0",
"dotenv": "^10.0.0",
"mongoose": "^6.1.3"
"mongoose": "^6.1.4"
},
"devDependencies": {
"@typegoose/typegoose": "^9.4.0",
"@types/mongoose": "^5.11.97",
"@types/node": "^17.0.4",
"@typescript-eslint/eslint-plugin": "^5.8.0",
"@typescript-eslint/parser": "^5.8.0",
"eslint": "^7.32.0",
"@types/node": "^17.0.5",
"@typescript-eslint/eslint-plugin": "^5.8.1",
"@typescript-eslint/parser": "^5.8.1",
"eslint": "^8.5.0",
"eslint-config-prettier": "^8.3.0",
"eslint-config-standard": "^16.0.3",
"eslint-plugin-import": "^2.25.3",
"eslint-plugin-node": "^11.1.0",
"eslint-plugin-promise": "^5.2.0",
"eslint-plugin-promise": "^6.0.0",
"husky": "^7.0.4",
"lint-staged": "^12.1.4",
"prettier": "^2.5.1",
"tsc-alias": "^1.5.0",
"tsc-watch": "^4.6.0",
"typescript": "^4.5.4"
},
"lint-staged": {
"*.{js,ts}": "eslint --cache --fix",
"*.{js,ts,md}": "prettier --write"
}
}
Loading

0 comments on commit 230d906

Please sign in to comment.