Skip to content

Commit

Permalink
Re-enable husky (#1009)
Browse files Browse the repository at this point in the history
Fix: #1008
  • Loading branch information
minggangw authored Dec 10, 2024
1 parent 112ffdb commit 7ecd090
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 13 deletions.
1 change: 1 addition & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
lint-staged
1 change: 1 addition & 0 deletions .npmignore
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,4 @@ tutorials/
.vscode/
.gitignore
.prettierrc.yml
.husky/
29 changes: 16 additions & 13 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@
"test": "node --expose-gc ./scripts/run_test.js && npm run dtslint",
"dtslint": "node scripts/generate_tsd.js",
"lint": "eslint --max-warnings=0 --ext js,ts index.js types scripts lib example rosidl_gen rosidl_parser test benchmark/rclnodejs && node ./scripts/cpplint.js",
"format": "clang-format -i -style=file ./src/*.cpp ./src/*.hpp && prettier --write \"{lib,rosidl_gen,rostsd_gen,rosidl_parser,types,example,test,scripts,benchmark}/**/*.{js,md,ts}\" ./*.{js,md,ts}"
"format": "clang-format -i -style=file ./src/*.cpp ./src/*.hpp && prettier --write \"{lib,rosidl_gen,rostsd_gen,rosidl_parser,types,example,test,scripts,benchmark}/**/*.{js,md,ts}\" ./*.{js,md,ts}",
"prepare": "husky"
},
"bin": {
"generate-ros-messages": "./scripts/generate_messages.js"
Expand All @@ -41,26 +42,28 @@
"type": "git",
"url": "git+https://github.com/RobotWebTools/rclnodejs.git"
},
"//": "Pin deep-equal to ^1.1.1",
"devDependencies": {
"@babel/eslint-parser": "^7.25.9",
"@typescript-eslint/eslint-plugin": "^6.21.0",
"@typescript-eslint/parser": "^6.21.0",
"@typescript-eslint/eslint-plugin": "^8.18.0",
"@typescript-eslint/parser": "^8.18.0",
"babel-eslint": "^10.1.0",
"clang-format": "^1.8.0",
"commander": "^11.1.0",
"commander": "^12.1.0",
"deep-equal": "^1.1.1",
"eslint": "^8.57.1",
"eslint": "^9.16.0",
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-prettier": "^5.2.1",
"husky": "^8.0.3",
"husky": "^9.1.7",
"jsdoc": "^4.0.4",
"lint-staged": "^14.0.1",
"mocha": "^10.8.2",
"lint-staged": "^15.2.10",
"mocha": "^11.0.2",
"prettier": "^3.4.2",
"sinon": "^15.2.0",
"sinon": "^19.0.2",
"tree-kill": "^1.2.2",
"typescript": "^4.9.5"
"typescript": "^5.7.2"
},
"//": "Pin int64-napi to ^1.0.2",
"dependencies": {
"@rclnodejs/ref-array-di": "^1.2.2",
"@rclnodejs/ref-napi": "^4.0.0",
Expand All @@ -77,8 +80,8 @@
"mkdirp": "^3.0.1",
"mz": "^2.7.0",
"nan": "^2.22.0",
"rimraf": "^5.0.10",
"uuid": "^9.0.1",
"rimraf": "^6.0.1",
"uuid": "^11.0.3",
"walk": "^2.3.15"
},
"husky": {
Expand All @@ -97,4 +100,4 @@
"engines": {
"node": ">= 16.13.0"
}
}
}

0 comments on commit 7ecd090

Please sign in to comment.