mirror of
https://github.com/DigiLive/mushroom-strategy.git
synced 2025-08-03 19:44:27 +02:00
Reformat code style
This commit is contained in:
@@ -12,3 +12,6 @@ trim_trailing_whitespace = true
|
|||||||
|
|
||||||
[{*.markdown,*.md}]
|
[{*.markdown,*.md}]
|
||||||
trim_trailing_whitespace = false
|
trim_trailing_whitespace = false
|
||||||
|
|
||||||
|
[docs/**/*.md]
|
||||||
|
ij_formatter_enabled = false
|
8
.github/ISSUE_TEMPLATE/bug_report.yml
vendored
8
.github/ISSUE_TEMPLATE/bug_report.yml
vendored
@@ -1,6 +1,6 @@
|
|||||||
name: Bug Report
|
name: Bug Report
|
||||||
description: File a bug report to help us improve the project.
|
description: File a bug report to help us improve the project.
|
||||||
labels: ["bug"]
|
labels: ['bug']
|
||||||
body:
|
body:
|
||||||
- type: markdown
|
- type: markdown
|
||||||
attributes:
|
attributes:
|
||||||
@@ -49,9 +49,9 @@ body:
|
|||||||
label: Environment
|
label: Environment
|
||||||
description: What environment were you using when you encountered the bug?
|
description: What environment were you using when you encountered the bug?
|
||||||
options:
|
options:
|
||||||
- "Web Browser (specify name and version)"
|
- 'Web Browser (specify name and version)'
|
||||||
- "Mobile Application (specify OS and version)"
|
- 'Mobile Application (specify OS and version)'
|
||||||
- "Other (please specify, including version)"
|
- 'Other (please specify, including version)'
|
||||||
validations:
|
validations:
|
||||||
required: true
|
required: true
|
||||||
|
|
||||||
|
2
.github/ISSUE_TEMPLATE/feature_request.yml
vendored
2
.github/ISSUE_TEMPLATE/feature_request.yml
vendored
@@ -1,6 +1,6 @@
|
|||||||
name: Feature Request
|
name: Feature Request
|
||||||
description: Suggest a new feature or improvement for the project.
|
description: Suggest a new feature or improvement for the project.
|
||||||
labels: ["enhancement"]
|
labels: ['enhancement']
|
||||||
body:
|
body:
|
||||||
- type: markdown
|
- type: markdown
|
||||||
attributes:
|
attributes:
|
||||||
|
4
.github/PULL_REQUEST_TEMPLATE.md
vendored
4
.github/PULL_REQUEST_TEMPLATE.md
vendored
@@ -1,4 +1,4 @@
|
|||||||
Please click the `Preview` tab and select the type of Pull Request you are submitting.
|
# Please click the `Preview` tab and select the type of Pull Request you are submitting
|
||||||
|
|
||||||
- [Bug Fix](?expand=1&template=bugfix.md)
|
- [Bug Fix](?expand=1&template=bugfix.md)
|
||||||
- [Feature](?expand=1&template=feature.md)
|
- [Feature](?expand=1&template=feature.md)
|
||||||
@@ -9,5 +9,7 @@ Please click the `Preview` tab and select the type of Pull Request you are submi
|
|||||||
>
|
>
|
||||||
> - [Translation Contribution](?expand=1&template=translation.md)
|
> - [Translation Contribution](?expand=1&template=translation.md)
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
> [!CAUTION]
|
> [!CAUTION]
|
||||||
> Any Pull Request that does not follow the above types will be rejected.
|
> Any Pull Request that does not follow the above types will be rejected.
|
||||||
|
24
.github/dependabot.yml
vendored
24
.github/dependabot.yml
vendored
@@ -2,25 +2,25 @@
|
|||||||
|
|
||||||
version: 2
|
version: 2
|
||||||
updates:
|
updates:
|
||||||
- package-ecosystem: "npm"
|
- package-ecosystem: 'npm'
|
||||||
directory: "/"
|
directory: '/'
|
||||||
schedule:
|
schedule:
|
||||||
interval: "weekly"
|
interval: 'weekly'
|
||||||
groups:
|
groups:
|
||||||
dependencies:
|
dependencies:
|
||||||
patterns: ["*"]
|
patterns: ['*']
|
||||||
labels:
|
labels:
|
||||||
- "dependencies"
|
- 'dependencies'
|
||||||
pull-request-branch-name:
|
pull-request-branch-name:
|
||||||
separator: "-"
|
separator: '-'
|
||||||
- package-ecosystem: "github-actions"
|
- package-ecosystem: 'github-actions'
|
||||||
directory: "/"
|
directory: '/'
|
||||||
schedule:
|
schedule:
|
||||||
interval: "weekly"
|
interval: 'weekly'
|
||||||
groups:
|
groups:
|
||||||
actions:
|
actions:
|
||||||
patterns: ["*"]
|
patterns: ['*']
|
||||||
labels:
|
labels:
|
||||||
- "actions"
|
- 'actions'
|
||||||
pull-request-branch-name:
|
pull-request-branch-name:
|
||||||
separator: "-"
|
separator: '-'
|
||||||
|
6
.github/workflows/validate.yml
vendored
6
.github/workflows/validate.yml
vendored
@@ -6,9 +6,9 @@ on:
|
|||||||
jobs:
|
jobs:
|
||||||
hacs:
|
hacs:
|
||||||
name: HACS Action
|
name: HACS Action
|
||||||
runs-on: "ubuntu-latest"
|
runs-on: 'ubuntu-latest'
|
||||||
steps:
|
steps:
|
||||||
- name: HACS Action
|
- name: HACS Action
|
||||||
uses: "hacs/action@22.5.0"
|
uses: 'hacs/action@22.5.0'
|
||||||
with:
|
with:
|
||||||
category: "plugin"
|
category: 'plugin'
|
||||||
|
22
.markdownlint.jsonc
Normal file
22
.markdownlint.jsonc
Normal file
@@ -0,0 +1,22 @@
|
|||||||
|
{
|
||||||
|
"$schema": "https://raw.githubusercontent.com/DavidAnson/markdownlint/main/schema.json",
|
||||||
|
"default": true,
|
||||||
|
"MD013": {
|
||||||
|
"line_length": 120,
|
||||||
|
"code_block_line_length": 120,
|
||||||
|
"heading_line_length": 80,
|
||||||
|
"tables": false
|
||||||
|
},
|
||||||
|
"MD024": {
|
||||||
|
"siblings_only": true
|
||||||
|
},
|
||||||
|
"MD033": {
|
||||||
|
"allowed_elements": [
|
||||||
|
"br",
|
||||||
|
"summary",
|
||||||
|
"details"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"MD040": false,
|
||||||
|
"MD046": false
|
||||||
|
}
|
@@ -1,4 +1,4 @@
|
|||||||
Here is a full example using all the options provided with the strategy.
|
# Full example using all the options provided with the strategy
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
strategy:
|
strategy:
|
||||||
|
@@ -1,4 +1,4 @@
|
|||||||
# Welcome to the Mushroom Strategy Documentation :material-mushroom:
|
# Welcome to the Mushroom Strategy Documentation :material-mushroom:
|
||||||
|
|
||||||
[![Release][releaseBadge]][releaseUrl]
|
[![Release][releaseBadge]][releaseUrl]
|
||||||
[![HACS][hacsBadge]][hacsUrl]
|
[![HACS][hacsBadge]][hacsUrl]
|
||||||
@@ -51,8 +51,7 @@ engage with the community!
|
|||||||
**Enjoying the Mushroom Strategy?** Consider giving our project a
|
**Enjoying the Mushroom Strategy?** Consider giving our project a
|
||||||
:star: [star on GitHub](https://github.com/DigiLive/mushroom-strategy) and exploring ways
|
:star: [star on GitHub](https://github.com/DigiLive/mushroom-strategy) and exploring ways
|
||||||
to :heart: [sponsor the project](https://github.com/sponsors/DigiLive) to support its continued development! Your
|
to :heart: [sponsor the project](https://github.com/sponsors/DigiLive) to support its continued development! Your
|
||||||
support
|
support helps us grow and improve.
|
||||||
helps us grow and improve.
|
|
||||||
|
|
||||||
## Previews
|
## Previews
|
||||||
|
|
||||||
@@ -71,8 +70,6 @@ helps us grow and improve.
|
|||||||
|
|
||||||
[releaseBadge]: https://img.shields.io/github/v/tag/digilive/mushroom-strategy?filter=v2.3.2&label=Release
|
[releaseBadge]: https://img.shields.io/github/v/tag/digilive/mushroom-strategy?filter=v2.3.2&label=Release
|
||||||
|
|
||||||
[sponsorBadge]: https://img.shields.io/badge/Sponsor_him-%E2%9D%A4-%23db61a2.svg?&logo=github&color=%23fe8e86
|
|
||||||
|
|
||||||
<!-- Repository References -->
|
<!-- Repository References -->
|
||||||
|
|
||||||
[releaseUrl]: https://github.com/DigiLive/mushroom-strategy/releases/tag/v2.3.2
|
[releaseUrl]: https://github.com/DigiLive/mushroom-strategy/releases/tag/v2.3.2
|
||||||
|
@@ -31,7 +31,7 @@ Use `_` as the identifier to set options for all domains.
|
|||||||
|
|
||||||
## Example
|
## Example
|
||||||
|
|
||||||
```YAML
|
```yaml
|
||||||
strategy:
|
strategy:
|
||||||
type: custom:mushroom-strategy
|
type: custom:mushroom-strategy
|
||||||
options:
|
options:
|
||||||
|
@@ -58,7 +58,7 @@ nav:
|
|||||||
|
|
||||||
markdown_extensions:
|
markdown_extensions:
|
||||||
- toc:
|
- toc:
|
||||||
permalink: "#"
|
permalink: '#'
|
||||||
- admonition
|
- admonition
|
||||||
- pymdownx.superfences
|
- pymdownx.superfences
|
||||||
- pymdownx.details
|
- pymdownx.details
|
||||||
|
975
package-lock.json
generated
975
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@@ -36,6 +36,7 @@
|
|||||||
"eslint-config-prettier": "^10.1.5",
|
"eslint-config-prettier": "^10.1.5",
|
||||||
"eslint-plugin-prettier": "^5.4.0",
|
"eslint-plugin-prettier": "^5.4.0",
|
||||||
"home-assistant-js-websocket": "^9.5.0",
|
"home-assistant-js-websocket": "^9.5.0",
|
||||||
|
"markdownlint-cli2": "^0.18.1",
|
||||||
"prettier": "^3.5.3",
|
"prettier": "^3.5.3",
|
||||||
"superstruct": "^2.0.2",
|
"superstruct": "^2.0.2",
|
||||||
"ts-loader": "^9.5.2",
|
"ts-loader": "^9.5.2",
|
||||||
@@ -46,6 +47,9 @@
|
|||||||
"webpack-cli": "^6.0.1"
|
"webpack-cli": "^6.0.1"
|
||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
"mkdocs:serve": "mkdocs serve",
|
||||||
|
"lint:md": "markdownlint-cli2 \"**/*.md\" \"#node_modules\"",
|
||||||
|
"fix:md": "markdownlint-cli2 \"**/*.md\" \"#node_modules\" \"#dist\" \"#build\" --fix",
|
||||||
"build-dev": "webpack --config webpack.dev.config.ts",
|
"build-dev": "webpack --config webpack.dev.config.ts",
|
||||||
"build": "webpack",
|
"build": "webpack",
|
||||||
"bump": "bump --preid alpha package.json package-lock.json README.md ./src/mushroom-strategy.ts"
|
"bump": "bump --preid alpha package.json package-lock.json README.md ./src/mushroom-strategy.ts"
|
||||||
|
@@ -1,3 +1,5 @@
|
|||||||
|
# Notice
|
||||||
|
|
||||||
This directory contains partial code from
|
This directory contains partial code from
|
||||||
the [Home Assistant Frontend repository](https://github.com/home-assistant/frontend).
|
the [Home Assistant Frontend repository](https://github.com/home-assistant/frontend).
|
||||||
|
|
||||||
|
@@ -1,3 +1,5 @@
|
|||||||
|
# Notice
|
||||||
|
|
||||||
This directory contains partial code from
|
This directory contains partial code from
|
||||||
the [Lovelace Mushroom repository](https://github.com/piitaya/lovelace-mushroom).
|
the [Lovelace Mushroom repository](https://github.com/piitaya/lovelace-mushroom).
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user