You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@annotator.apache.org by ra...@apache.org on 2020/05/05 05:09:50 UTC

[incubator-annotator] 01/03: Extract husky configuration

This is an automated email from the ASF dual-hosted git repository.

randall pushed a commit to branch clone-dist
in repository https://gitbox.apache.org/repos/asf/incubator-annotator.git

commit c6beefdbf8aa3bb54a8748476417a9f1ca715baa
Author: Randall Leeds <ra...@apache.org>
AuthorDate: Thu Apr 2 19:14:18 2020 -0700

    Extract husky configuration
---
 .eslintrc.js    | 1 +
 husky.config.js | 6 ++++++
 package.json    | 5 -----
 3 files changed, 7 insertions(+), 5 deletions(-)

diff --git a/.eslintrc.js b/.eslintrc.js
index 51592fb..1e51508 100644
--- a/.eslintrc.js
+++ b/.eslintrc.js
@@ -64,6 +64,7 @@ module.exports = {
         '.eslintrc.js',
         '.mocharc.js',
         'babel.config.js',
+        'husky.config.js',
         'nyc.config.js',
       ],
       env: {
diff --git a/husky.config.js b/husky.config.js
new file mode 100644
index 0000000..e4eb0ab
--- /dev/null
+++ b/husky.config.js
@@ -0,0 +1,6 @@
+module.exports = {
+  hooks: {
+    'pre-commit': 'lint-staged',
+  },
+  skipCI: true,
+};
diff --git a/package.json b/package.json
index 6c493d7..1ed4a05 100644
--- a/package.json
+++ b/package.json
@@ -30,11 +30,6 @@
     "web:build": "webpack  --config=web/webpack.config.js --mode development",
     "web:server": "webpack-dev-server --config=web/webpack.config.js --hot --mode development"
   },
-  "husky": {
-    "hooks": {
-      "pre-commit": "lint-staged"
-    }
-  },
   "devDependencies": {
     "@babel/cli": "^7.8.4",
     "@babel/core": "^7.8.7",