Skip to content

Commit

Permalink
Add husky
Browse files Browse the repository at this point in the history
  • Loading branch information
edwinhuish committed Dec 1, 2023
1 parent 8bb3468 commit 20ec98a
Show file tree
Hide file tree
Showing 5 changed files with 276 additions and 3 deletions.
4 changes: 4 additions & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

npx lint-staged
4 changes: 4 additions & 0 deletions lint-staged.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
export default {
'**/*.ts?(x)': () => 'tsc -p tsconfig.json --noEmit',
'*.{js,jsx,ts,tsx,vue}': 'eslint',
};
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "better-comments-next",
"displayName": "Better Comments (with embedded languages support)",
"displayName": "Better Comments Next",
"icon": "icon.png",
"description": "Improve your code commenting by annotating with alert, informational, TODOs, and more!",
"version": "3.0.11",
Expand Down Expand Up @@ -37,8 +37,6 @@
"browser": "./out/web/extension.js",
"main": "./out/extension",
"scripts": {
"package": "vsce package",
"publish": "vsce publish",
"vscode:prepublish": "npm run compile && npm run package-web",
"compile": "tsc -p .",
"watch": "tsc -watch -p .",
Expand Down Expand Up @@ -129,6 +127,8 @@
"eslint": "^8.40.0",
"eslint-gitignore": "^0.1.0",
"eslint-plugin-jsdoc": "^46.8.2",
"husky": "^8.0.3",
"lint-staged": "^15.1.0",
"ovsx": "^0.8.3",
"path-browserify": "^1.0.1",
"process": "^0.11.10",
Expand Down
Loading

0 comments on commit 20ec98a

Please sign in to comment.