Skip to content

Commit

Permalink
ts port
Browse files Browse the repository at this point in the history
  • Loading branch information
foxriver76 committed Feb 3, 2023
1 parent daeaf17 commit 7c906c3
Show file tree
Hide file tree
Showing 29 changed files with 3,826 additions and 4,639 deletions.
163 changes: 0 additions & 163 deletions .eslintrc.js

This file was deleted.

100 changes: 100 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,100 @@
{
"root": true,
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": 2018,
"sourceType": "module",
"project": "./tsconfig.json"
},
"extends": [
"plugin:@typescript-eslint/recommended",
"plugin:prettier/recommended"
],
"plugins": [],
"rules": {
"@typescript-eslint/no-parameter-properties": "off",
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/no-use-before-define": [
"error",
{
"functions": false,
"typedefs": false,
"classes": false
}
],
"@typescript-eslint/no-unused-vars": [
"error",
{
"ignoreRestSiblings": true,
"argsIgnorePattern": "^_"
}
],
"@typescript-eslint/explicit-function-return-type": [
"warn",
{
"allowExpressions": true,
"allowTypedFunctionExpressions": true
}
],
"@typescript-eslint/no-object-literal-type-assertion": "off",
"@typescript-eslint/interface-name-prefix": "off",
"@typescript-eslint/no-non-null-assertion": "off",
"no-var": "error",
"prefer-const": "error",
"no-trailing-spaces": "error",
"curly": "error",
"brace-style": "error",
"arrow-parens": [
"error",
"as-needed"
],
"no-console": "off",
"no-unused-vars": [
"error",
{
"argsIgnorePattern": "^_",
"caughtErrors": "all"
}
],
"no-useless-escape": "warn",
"no-constant-condition": "off",
"no-multiple-empty-lines": [
"error",
{
"max": 1,
"maxEOF": 1
}
],
"no-throw-literal": "error",
"prefer-promise-reject-errors": "error",
"no-return-await": "error",
"eqeqeq": [
"error",
"always"
],
"semi": [
"error",
"always"
],
"comma-dangle": [
"error",
{
"arrays": "never",
"objects": "never",
"imports": "never",
"exports": "never",
"functions": "ignore"
}
]
},
"overrides": [
{
"files": [
"*.test.ts"
],
"rules": {
"@typescript-eslint/explicit-function-return-type": "off"
}
}
]
}
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -908,6 +908,11 @@ The adapter is tested with an DENON AVR-X1200W and a Marantz SR5009.
Placeholder for the next version (at the beginning of the line):
### __WORK IN PROGRESS__
-->
### __WORK IN PROGRESS__
* (foxriver76) typescript port
* (foxriver76) fixed issues with decoding of input state
### 1.13.4 (2022-04-11)
* (foxriver76) we now respect `requestInterval` on determining the AVR model too
Expand Down
7 changes: 7 additions & 0 deletions build/lib/states.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
/// <reference types="iobroker" />
export declare const commonCommands: ioBroker.AnyObject[];
export declare const usCommandsZone: ioBroker.StateObject[];
export declare const usCommands: ioBroker.StateObject[];
export declare const lfcCommands: Record<string, ioBroker.SettableStateObject>;
export declare const subwooferTwoStates: Record<string, ioBroker.SettableStateObject>;
export declare const displayHttpStates: Record<string, ioBroker.SettableStateObject>;
Loading

0 comments on commit 7c906c3

Please sign in to comment.