diff --git a/.editorconfig b/.editorconfig index 196a82b..f7d5e95 100644 --- a/.editorconfig +++ b/.editorconfig @@ -9,7 +9,20 @@ insert_final_newline = true max_line_length = 200 trim_trailing_whitespace = true -[{*.cjs, *.js}] +[{*.ats,*.ts}] +indent_size = 2 +tab_width = 2 +ij_continuation_indent_size = 2 +ij_typescript_force_quote_style = true +ij_typescript_keep_simple_methods_in_one_line = true +ij_typescript_method_call_chain_wrap = normal +ij_typescript_object_literal_wrap = split_into_lines +ij_typescript_spaces_within_imports = true +ij_typescript_spaces_within_object_literal_braces = true +ij_typescript_use_double_quotes = false +ij_typescript_var_declaration_wrap = split_into_lines + +[{*.cjs,*.js}] indent_size = 2 tab_width = 2 ij_continuation_indent_size = 2 @@ -22,12 +35,6 @@ ij_javascript_spaces_within_object_literal_braces = true ij_javascript_use_double_quotes = false ij_javascript_var_declaration_wrap = split_into_lines -[{*.ats, *.ts}] -indent_size = 2 -tab_width = 2 -ij_continuation_indent_size = 2 -ij_typescript_spaces_within_imports = true - [{*.htm, *.html, *.ng, *.sht, *.shtm, *.shtml}] ij_html_attribute_wrap = off ij_html_space_inside_empty_tag = true diff --git a/.eslintrc.json b/.eslintrc.json index c7e5a6e..9a01072 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -17,10 +17,10 @@ "sourceType": "script" }, "rules": { - "no-console": [ + "max-len": [ "off" ], - "max-len": [ + "no-console": [ "off" ] }, diff --git a/index.js b/index.js index d3c0a1a..21903b7 100644 --- a/index.js +++ b/index.js @@ -845,7 +845,7 @@ ADTPulsePlatform.prototype.portalSync = function portalSync() { .login() .then((response) => { const version = _.get(response, 'info.version'); - const supportedVersion = ['21.0.0-344', '21.0.0-353']; + const supportedVersion = ['21.0.0-353', '21.0.0-354']; if (version !== undefined && !supportedVersion.includes(version) && version !== this.sessionVersion) { this.logMessage(`Web Portal version ${version} detected. Test plugin to ensure system compatibility...`, 20); diff --git a/package.json b/package.json index dfb6729..80d02c8 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "homebridge-adt-pulse", "displayName": "Homebridge ADT Pulse", - "version": "2.0.3", + "version": "2.0.4", "description": "Homebridge security system platform for ADT Pulse", "main": "index.js", "private": false,