Add husky

This commit is contained in:
GHOSCHT 2021-06-30 08:37:09 +02:00
parent 2fdef65cf7
commit d275bac0a9
5 changed files with 39 additions and 1 deletions

3
.gitignore vendored
View file

@ -1 +1,2 @@
.vscode/*
.vscode/*
node_modules

1
.husky/.gitignore vendored Normal file
View file

@ -0,0 +1 @@
_

4
.husky/pre-commit Normal file
View file

@ -0,0 +1,4 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"
yarn --cwd ./Dashboard run lint

24
package.json Normal file
View file

@ -0,0 +1,24 @@
{
"name": "smart-lamp-control",
"version": "1.0.0",
"description": "[![Dashboard Build](https://github.com/GHOSCHT/light-control/workflows/Dashboard%20Build/badge.svg)](https://github.com/GHOSCHT/light-control/actions?query=workflow%3A%22Dashboard+Build%22)\r [![Arduino Build](https://github.com/GHOSCHT/light-control/workflows/Arduino%20Build/badge.svg)](https://github.com/GHOSCHT/light-control/actions?query=workflow%3A%22Arduino+Build%22)\r [![Dashboard Lint](https://github.com/GHOSCHT/light-control/workflows/Dashboard%20Lint/badge.svg)](https://github.com/GHOSCHT/light-control/actions?query=workflow%3A%22Dashboard+Lint%22)\r [![Codacy Badge](https://app.codacy.com/project/badge/Grade/a9b402f8172d416db53b7dd282133094)](https://www.codacy.com/manual/GHOSCHT/light-control?utm_source=github.com&utm_medium=referral&utm_content=GHOSCHT/light-control&utm_campaign=Badge_Grade)",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"prepare": "husky install"
},
"repository": {
"type": "git",
"url": "git+https://github.com/GHOSCHT/light-control.git"
},
"keywords": [],
"author": "",
"license": "ISC",
"bugs": {
"url": "https://github.com/GHOSCHT/light-control/issues"
},
"homepage": "https://github.com/GHOSCHT/light-control#readme",
"devDependencies": {
"husky": "^6.0.0"
}
}

8
yarn.lock Normal file
View file

@ -0,0 +1,8 @@
# THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.
# yarn lockfile v1
husky@^6.0.0:
version "6.0.0"
resolved "https://registry.yarnpkg.com/husky/-/husky-6.0.0.tgz#810f11869adf51604c32ea577edbc377d7f9319e"
integrity sha512-SQS2gDTB7tBN486QSoKPKQItZw97BMOd+Kdb6ghfpBc0yXyzrddI0oDV5MkDAbuB4X2mO3/nj60TRMcYxwzZeQ==