-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
## [2.0.3](https://github.com/donavanbecker/homebridge-rainbird/releases/tag/v2.0.3) (2024-05-26) ### What's Changed - Housekeeping and updated dependencies. **Full Changelog**: v2.0.2...v2.0.3
- Loading branch information
1 parent
48c8fde
commit 6117c9a
Showing
13 changed files
with
1,704 additions
and
1,461 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,96 @@ | ||
import pluginJs from '@eslint/js'; | ||
import tseslint from 'typescript-eslint'; | ||
import stylistic from '@stylistic/eslint-plugin'; | ||
|
||
|
||
export default tseslint.config({ | ||
plugins: { | ||
'@stylistic': stylistic, | ||
'@typescript-eslint': tseslint.plugin, | ||
}, | ||
languageOptions: { | ||
parser: tseslint.parser, | ||
parserOptions: { | ||
project: true, | ||
}, | ||
}, | ||
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.