chore: lint before commit

This commit is contained in:
Isaac
2023-02-13 15:07:35 +00:00
parent c3d6d70316
commit 1daab7fda9
3 changed files with 268 additions and 4 deletions

View File

@@ -10,11 +10,15 @@
"keygen": "node scripts/keygen",
"lint": "eslint src scripts --fix",
"preinstall": "node scripts/preinstall",
"prepare": "husky install",
"postinstall": "node scripts/postinstall",
"start": "node .",
"studio": "npx prisma studio",
"test": "echo \"There's nothing to test\" && exit 1"
},
"lint-staged": {
"**/*.js": ["npm run lint --"]
},
"repository": {
"type": "git",
"url": "git+https://github.com/discord-tickets/bot.git"
@@ -72,6 +76,7 @@
"eslint": "^8.33.0",
"eslint-plugin-unused-imports": "^2.0.0",
"husky": "^8.0.3",
"lint-staged": "^13.1.1",
"nodemon": "^2.0.20"
},
"optionalDependencies": {
@@ -80,4 +85,4 @@
"utf-8-validate": "^5.0.10",
"zlib-sync": "^0.1.8"
}
}
}