This repository has been archived by the owner on Jan 24, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
58 changed files
with
3,068 additions
and
6,122 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,32 +1,34 @@ | ||
{ | ||
"env": { | ||
"browser": false, | ||
"node": true, | ||
"es6": false | ||
}, | ||
"extends": "eslint:recommended", | ||
"parserOptions": { | ||
"ecmaVersion": 2017, | ||
"sourceType": "module" | ||
}, | ||
"rules": { | ||
"indent": [ | ||
"error", | ||
"tab" | ||
], | ||
"linebreak-style": [ | ||
"error", | ||
"unix" | ||
], | ||
"quotes": [ | ||
"error", | ||
"double" | ||
], | ||
"semi": [ | ||
"error", | ||
"always" | ||
], | ||
"no-console":"off", | ||
"no-unused-vars":"error" | ||
} | ||
"parser": "@typescript-eslint/parser", | ||
"extends": [ | ||
"eslint:recommended", | ||
"plugin:@typescript-eslint/eslint-recommended", | ||
"plugin:@typescript-eslint/recommended" // uses the recommended rules from the @typescript-eslint/eslint-plugin | ||
], | ||
"parserOptions": { | ||
"ecmaVersion": 2018, | ||
"sourceType": "module" | ||
}, | ||
"ignorePatterns": ["dist", "src/streamingDelegate.ts"], | ||
"rules": { | ||
"quotes": ["warn", "double"], | ||
"indent": ["warn", 2, { "SwitchCase": 1 }], | ||
"linebreak-style": ["warn", "unix"], | ||
"semi": ["warn", "always"], | ||
"comma-dangle": ["off", "always-multiline"], | ||
"dot-notation": "warn", | ||
"eqeqeq": "warn", | ||
"curly": ["warn", "all"], | ||
"brace-style": ["warn"], | ||
"prefer-arrow-callback": ["warn"], | ||
"max-len": ["warn", 140], | ||
"no-console": ["warn"], // use the provided Homebridge log method instead | ||
"lines-between-class-members": [ | ||
"warn", | ||
"always", | ||
{ "exceptAfterSingleLine": true } | ||
], | ||
"@typescript-eslint/explicit-function-return-type": "off", | ||
"@typescript-eslint/no-non-null-assertion": "off" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -80,3 +80,5 @@ typings/ | |
|
||
# End of https://www.gitignore.io/api/node | ||
persist | ||
|
||
dist |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -39,3 +39,7 @@ persist/ | |
src/ | ||
testing-config/ | ||
*.code-workspace | ||
.eslintrc | ||
.jshintrc | ||
.travis.yml | ||
.eslintignore |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,26 @@ | ||
language: node_js | ||
|
||
node_js: | ||
- 6.14.4 | ||
- 8.11.1 | ||
- 8.12.0 | ||
- 10.13.0 | ||
- 11.1.0 | ||
before_install: | ||
- curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add - | ||
- echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list | ||
- sudo apt-get update && sudo apt-get install yarn | ||
- yarn global add jshint tslint typescript homebridge eslint | ||
- homebridge --version | ||
- node | ||
- 10 | ||
- 11 | ||
|
||
env: | ||
- workerCount=3 | ||
|
||
matrix: | ||
fast_finish: true | ||
|
||
install: | ||
- npm install | ||
|
||
cache: | ||
directories: | ||
- node_modules | ||
|
||
git: | ||
depth: 1 | ||
|
||
script: | ||
- tslint -c ./tslint.json --project . | ||
- tsc | ||
- eslint -c .eslintrc.json *.js | ||
- jshint -c .jshintrc *.js | ||
- npm --verbose test | ||
- node --version | grep -v v6.*.* && npm --dry-run publish || echo Skipping publish dry-run for node 6.x | ||
- DEBUG=* timeout -k 20s -s SIGINT 15s homebridge -Q -P ./ -U ./testing-config ; test $? == 124 | ||
- timeout -k 20s -s SIGINT 15s node standalone.js ; test $? == 124 | ||
- npm run lint | ||
# - npm run build |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
{ | ||
"pluginAlias": "Homebridge-Bloomsky", | ||
"pluginType": "platform", | ||
"singular": true, | ||
"schema": { | ||
"type": "object", | ||
"properties": { | ||
"name": { | ||
"title": "Name", | ||
"type": "string", | ||
"required": true, | ||
"default": "Homebridge Bloomsky Platform" | ||
} | ||
} | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.