Skip to content

Commit

Permalink
Updated eslint and use new code style
Browse files Browse the repository at this point in the history
  • Loading branch information
bwp91 committed Jul 15, 2024
1 parent 8e765d5 commit 1836b04
Show file tree
Hide file tree
Showing 73 changed files with 8,727 additions and 6,874 deletions.
26 changes: 0 additions & 26 deletions .eslintrc.cjs

This file was deleted.

2 changes: 1 addition & 1 deletion .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
github: bwp91
patreon: bwp91
ko_fi: bwp91
custom: ["https://www.paypal.me/BenPotter"]
custom: ['https://www.paypal.me/BenPotter']
12 changes: 1 addition & 11 deletions .github/ISSUE_TEMPLATE.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,25 +6,15 @@

### What issue do you have? Please be as thorough and explicit as possible.



### Details of your setup.
* Do you use Homebridge (with config-ui?) or HOOBS?


* Do you use Homebridge (with config-ui?) or HOOBS?

* Which version of Homebridge/HOOBS do you have?



* Which version of this plugin (homebridge-govee) do you have? Has the issue started since upgrading from a previous version?



* Which Govee devices do you have that are causing issues? Please include product models if applicable.



### Please paste any relevant logs below.
<!-- ABOUT LOGS
→ More thorough logging can be seen by enabling 'Debug Logging' in
Expand Down
8 changes: 0 additions & 8 deletions .github/ISSUE_TEMPLATE/feature-request.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,8 @@ assignees: ''

* **Please explain your feature request in a one or two sentences.**



* **Is your feature request related to a problem? Please describe.**



* **Any particular Govee devices that this relates to?**



* **Anything else?**


1 change: 0 additions & 1 deletion .github/ISSUE_TEMPLATE/feedback.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,3 @@ labels: ''
assignees: ''

---

8 changes: 0 additions & 8 deletions .github/ISSUE_TEMPLATE/model-request.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,8 @@ assignees: ''

* **Which model is this? Need the `Hxxxx` number.**



* **Which type of device is this? Light, heater, leak sensor, etc.**



* **Which connection methods does this device have? Wifi? Bluetooth? LAN mode? All?**



* **Anything else?**


14 changes: 1 addition & 13 deletions .github/ISSUE_TEMPLATE/new-issue.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,29 +14,17 @@ assignees: ''

### What issue do you have? Please be as thorough and explicit as possible.



### Details of your setup.
* Do you use (1) Homebridge UI-X (2) Homebridge CLI or (3) HOOBS?


* Do you use (1) Homebridge UI-X (2) Homebridge CLI or (3) HOOBS?

* Which version of Homebridge/HOOBS do you have?



* Which platform do you run Homebridge/HOOBS on (e.g. Raspberry Pi/Windows/HOOBS Box)? Please also mention your version of Node.js/NPM if known.



* Which version of this plugin (homebridge-govee) do you have? Has the issue started since upgrading from a previous version?



* Which Govee devices do you have that are causing issues? Please include product models if applicable.



### Please paste any relevant logs below.
<!-- ABOUT LOGS
→ More logging can enabled with 'Debug Logging' in the plugin settings.
Expand Down
6 changes: 3 additions & 3 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

version: 2
updates:
- package-ecosystem: "npm" # See documentation for possible values
directory: "/" # Location of package manifests
- package-ecosystem: npm # See documentation for possible values
directory: / # Location of package manifests
schedule:
interval: "daily"
interval: daily
60 changes: 30 additions & 30 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: "CodeQL"
name: CodeQL

on:
push:
Expand All @@ -15,40 +15,40 @@ jobs:
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
# We must fetch at least the immediate parents so that if this is
# a pull request then we can checkout the head.
fetch-depth: 2

# If this run was triggered by a pull request event, then checkout
# the head of the pull request instead of the merge commit.
- run: git checkout HEAD^2
if: ${{ github.event_name == 'pull_request' }}

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v3
- name: Checkout repository
uses: actions/checkout@v4
with:
# We must fetch at least the immediate parents so that if this is
# a pull request then we can checkout the head.
fetch-depth: 2

# If this run was triggered by a pull request event, then checkout
# the head of the pull request instead of the merge commit.
- run: git checkout HEAD^2
if: ${{ github.event_name == 'pull_request' }}

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v3
# Override language selection by uncommenting this and choosing your languages
# with:
# languages: go, javascript, csharp, python, cpp, java

# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
# If this step fails, then you should remove it and run the build manually (see below)
- name: Autobuild
uses: github/codeql-action/autobuild@v3
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
# If this step fails, then you should remove it and run the build manually (see below)
- name: Autobuild
uses: github/codeql-action/autobuild@v3

# ℹ️ Command-line programs to run using the OS shell.
# 📚 https://git.io/JvXDl
# ℹ️ Command-line programs to run using the OS shell.
# 📚 https://git.io/JvXDl

# ✏️ If the Autobuild fails above, remove it and uncomment the following three lines
# and modify them (or add more) to build your code if your project
# uses a compiled language
# ✏️ If the Autobuild fails above, remove it and uncomment the following three lines
# and modify them (or add more) to build your code if your project
# uses a compiled language

#- run: |
# make bootstrap
# make release
# - run: |
# make bootstrap
# make release

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v3
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v3
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,12 @@ This project tries to adhere to [Semantic Versioning](http://semver.org/). In pr
- `MINOR` version when a new device type is added, or when a new feature is added that is backwards-compatible
- `PATCH` version when backwards-compatible bug fixes are implemented

## BETA

### Changed

- Updated `eslint` and use new code style

## 10.9.2 (2024-07-15)

### Changed
Expand Down
8 changes: 5 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,17 @@
<a href="https://github.com/bwp91/homebridge-govee"><img src="https://user-images.githubusercontent.com/43026681/101324574-5e997d80-3862-11eb-81b0-932330f6e242.png" width="600px"></a>
</p>
<span align="center">

# homebridge-govee

Homebridge plugin to integrate Govee devices into HomeKit

[![npm](https://img.shields.io/npm/v/homebridge-govee/latest?label=latest)](https://www.npmjs.com/package/homebridge-govee)
[![npm](https://img.shields.io/npm/v/homebridge-govee/beta?label=beta)](https://github.com/bwp91/homebridge-govee/wiki/Beta-Version)
[![npm](https://img.shields.io/npm/v/homebridge-govee/beta?label=beta)](https://github.com/bwp91/homebridge-govee/wiki/Beta-Version)

[![verified-by-homebridge](https://badgen.net/badge/homebridge/verified/purple)](https://github.com/homebridge/homebridge/wiki/Verified-Plugins)
[![hoobs-certified](https://badgen.net/badge/HOOBS/certified/yellow?label=hoobs)](https://plugins.hoobs.org/plugin/homebridge-govee)
[![hoobs-certified](https://badgen.net/badge/HOOBS/certified/yellow?label=hoobs)](https://plugins.hoobs.org/plugin/homebridge-govee)

[![npm](https://img.shields.io/npm/dt/homebridge-govee)](https://www.npmjs.com/package/homebridge-govee)
[![Discord](https://img.shields.io/discord/432663330281226270?color=728ED5&logo=discord&label=discord)](https://discord.com/channels/432663330281226270/742733745743855627)

Expand Down
14 changes: 14 additions & 0 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
import { antfu } from '@antfu/eslint-config'

/** @type {typeof antfu} */
export default antfu(
{
ignores: [],
jsx: false,
rules: {
'new-cap': 'off',
'style/brace-style': ['error', '1tbs', { allowSingleLine: true }],
},
typescript: false,
},
)
Loading

0 comments on commit 1836b04

Please sign in to comment.