-
-
Notifications
You must be signed in to change notification settings - Fork 57
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
## [3.8.0](https://github.com/OpenWonderLabs/homebridge-switchbot/releases/tag/v3.8.0) (2024-09-11) ### What's Changed - Added specific macOS Bluetooth permission instructions to Readme [#1026](#1026), Thanks [@rSffsE](https://github.com/rSffsE) - Added partial support for `Roller Shade` deviceType. Currently only supports status. - Added `silentModeSwitch` config option for both `Curtain` & `Blind Titl` deviceTypes, allowing two switches to be display for Closing and Moding Mode. If turned on then Silent Mode is enabled. - Added option to allow invalid Characters in displayName with config `allowInvalidCharacters` - Added `dry` config option to enable Dry Status support for Water Detector - Fixed Platform BLE Scanning events not registering - Fix `On` state for robot vacuum cleaners [#1028](#1028), Thanks [@JannThomas](https://github.com/JannThomas) - Housekeeping and updated dependencies. **Full Changelog**: v3.7.0...v3.8.0
- Loading branch information
1 parent
11d4dc4
commit 75340ab
Showing
49 changed files
with
22,388 additions
and
18,380 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
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 |
---|---|---|
@@ -1,96 +1,51 @@ | ||
import pluginJs from '@eslint/js'; | ||
import tseslint from 'typescript-eslint'; | ||
import stylistic from '@stylistic/eslint-plugin' | ||
import antfu from '@antfu/eslint-config' | ||
|
||
|
||
export default tseslint.config({ | ||
plugins: { | ||
'@stylistic': stylistic, | ||
'@typescript-eslint': tseslint.plugin, | ||
}, | ||
languageOptions: { | ||
parser: tseslint.parser, | ||
parserOptions: { | ||
project: true, | ||
export default antfu( | ||
{ | ||
ignores: ['dist', 'docs'], | ||
jsx: false, | ||
typescript: true, | ||
formatters: { | ||
markdown: true, | ||
}, | ||
rules: { | ||
'curly': ['error', 'multi-line'], | ||
'import/extensions': ['error', 'ignorePackages'], | ||
'import/order': 0, | ||
'jsdoc/check-alignment': 'error', | ||
'jsdoc/check-line-alignment': 'error', | ||
'no-undef': 'error', | ||
'perfectionist/sort-exports': 'error', | ||
'perfectionist/sort-imports': [ | ||
'error', | ||
{ | ||
groups: [ | ||
'builtin-type', | ||
'external-type', | ||
'internal-type', | ||
['parent-type', 'sibling-type', 'index-type'], | ||
'builtin', | ||
'external', | ||
'internal', | ||
['parent', 'sibling', 'index'], | ||
'object', | ||
'unknown', | ||
], | ||
order: 'asc', | ||
type: 'natural', | ||
}, | ||
], | ||
'perfectionist/sort-named-exports': 'error', | ||
'perfectionist/sort-named-imports': 'error', | ||
'sort-imports': 0, | ||
'style/brace-style': ['error', '1tbs', { allowSingleLine: true }], | ||
'style/quote-props': ['error', 'consistent-as-needed'], | ||
'test/no-only-tests': 'error', | ||
'unicorn/no-useless-spread': 'error', | ||
'unused-imports/no-unused-vars': ['error', { caughtErrors: 'none' }], | ||
'no-new': 0, // Disable the no-new rule | ||
'new-cap': 0, // Disable the new-cap rule | ||
'no-undef': 0, // Disable the no-undef rule | ||
}, | ||
}, | ||
files: ['**/*.ts'], | ||
ignores: ['.dist/*'], | ||
extends: [ | ||
pluginJs.configs.recommended, | ||
...tseslint.configs.recommended, | ||
], | ||
rules: { | ||
'@typescript-eslint/array-type': 'error', | ||
'@typescript-eslint/consistent-type-imports': 'error', | ||
'@stylistic/type-annotation-spacing': 'error', | ||
'@stylistic/quotes': [ | ||
'warn', | ||
'single', | ||
], | ||
'@stylistic/indent': [ | ||
'warn', | ||
2, | ||
{ | ||
'SwitchCase': 1, | ||
}, | ||
], | ||
'@stylistic/linebreak-style': [ | ||
'warn', | ||
'unix', | ||
], | ||
'@stylistic/semi': [ | ||
'warn', | ||
'always', | ||
], | ||
'@stylistic/comma-dangle': [ | ||
'warn', | ||
'always-multiline', | ||
], | ||
'@stylistic/dot-notation': 'off', | ||
'eqeqeq': 'warn', | ||
'curly': [ | ||
'warn', | ||
'all', | ||
], | ||
'@stylistic/brace-style': [ | ||
'warn', | ||
], | ||
'prefer-arrow-callback': [ | ||
'warn', | ||
], | ||
'@stylistic/max-len': [ | ||
'warn', | ||
150, | ||
], | ||
'no-console': [ | ||
'warn', | ||
], // use the provided Homebridge log method instead | ||
'no-non-null-assertion': [ | ||
'off', | ||
], | ||
'@stylistic/comma-spacing': [ | ||
'error', | ||
], | ||
'@stylistic/no-multi-spaces': [ | ||
'warn', | ||
{ | ||
'ignoreEOLComments': true, | ||
}, | ||
], | ||
'@stylistic/no-trailing-spaces': [ | ||
'warn', | ||
], | ||
'@stylistic/lines-between-class-members': [ | ||
'warn', | ||
'always', | ||
{ | ||
'exceptAfterSingleLine': true, | ||
}, | ||
], | ||
'@typescript-eslint/explicit-function-return-type': 'off', | ||
'@typescript-eslint/no-non-null-assertion': 'off', | ||
'@typescript-eslint/explicit-module-boundary-types': 'off', | ||
'@typescript-eslint/no-explicit-any': 'off', | ||
}, | ||
}); | ||
) |
Oops, something went wrong.