Skip to content

Commit e8667cd

Browse files
authored
Merge pull request #148 from Gaspode69/eslint
Migrate to eslint 9
2 parents a4dce10 + 18c9b04 commit e8667cd

21 files changed

Lines changed: 12915 additions & 10092 deletions

.eslintignore

Lines changed: 0 additions & 2 deletions
This file was deleted.

.eslintrc

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"plugins": ["prettier"],
3+
"rules": {
4+
"prettier/prettier": "error"
5+
}
6+
}

.eslintrc.json

Lines changed: 0 additions & 42 deletions
This file was deleted.

.github/ISSUE_TEMPLATE/bug_report.md

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ A clear and concise description of what the bug is.
1111

1212
**To Reproduce**
1313
Steps to reproduce the behavior:
14+
1415
1. Go to '...'
1516
2. Click on '...'
1617
3. Scroll down to '....'
@@ -22,11 +23,12 @@ A clear and concise description of what you expected to happen.
2223
**Screenshots & Logfiles**
2324
If applicable, add screenshots and logfiles to help explain your problem.
2425

25-
**Versions:**
26-
- Adapter version: <adapter-version>
27-
- JS-Controller version: <js-controller-version> <!-- determine this with `iobroker -v` on the console -->
28-
- Node version: <node-version> <!-- determine this with `node -v` on the console -->
29-
- Operating system: <os-name>
26+
**Versions:**
27+
28+
- Adapter version: <adapter-version>
29+
- JS-Controller version: <js-controller-version> <!-- determine this with `iobroker -v` on the console -->
30+
- Node version: <node-version> <!-- determine this with `node -v` on the console -->
31+
- Operating system: <os-name>
3032

3133
**Additional context**
3234
Add any other context about the problem here.

.github/auto-merge.yml

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,16 @@
11
# Configure here which dependency updates should be merged automatically.
22
# The recommended configuration is the following:
33
- match:
4-
# Only merge patches for production dependencies
5-
dependency_type: production
6-
update_type: "semver:patch"
4+
# Only merge patches for production dependencies
5+
dependency_type: production
6+
update_type: 'semver:patch'
77
- match:
8-
# Except for security fixes, here we allow minor patches
9-
dependency_type: production
10-
update_type: "security:minor"
8+
# Except for security fixes, here we allow minor patches
9+
dependency_type: production
10+
update_type: 'security:minor'
1111
- match:
12-
# and development dependencies can have a minor update, too
13-
dependency_type: development
14-
update_type: "semver:minor"
15-
12+
# and development dependencies can have a minor update, too
13+
dependency_type: development
14+
update_type: 'semver:minor'
1615
# The syntax is based on the legacy dependabot v1 automerged_updates syntax, see:
1716
# https://dependabot.com/docs/config-file/#automerged_updates

.github/dependabot.yml

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,22 @@
11
version: 2
22
updates:
3-
- package-ecosystem: npm
4-
directory: "/"
5-
schedule:
6-
interval: monthly
7-
time: "04:00"
8-
timezone: Europe/Berlin
9-
open-pull-requests-limit: 5
10-
assignees:
11-
- Gaspode69
12-
versioning-strategy: increase
3+
- package-ecosystem: npm
4+
directory: '/'
5+
schedule:
6+
interval: monthly
7+
time: '04:00'
8+
timezone: Europe/Berlin
9+
open-pull-requests-limit: 5
10+
assignees:
11+
- Gaspode69
12+
versioning-strategy: increase
1313

14-
- package-ecosystem: github-actions
15-
directory: "/"
16-
schedule:
17-
interval: monthly
18-
time: "04:00"
19-
timezone: Europe/Berlin
20-
open-pull-requests-limit: 5
21-
assignees:
22-
- Gaspode69
14+
- package-ecosystem: github-actions
15+
directory: '/'
16+
schedule:
17+
interval: monthly
18+
time: '04:00'
19+
timezone: Europe/Berlin
20+
open-pull-requests-limit: 5
21+
assignees:
22+
- Gaspode69

.github/workflows/codeql.yml

Lines changed: 49 additions & 50 deletions
Original file line numberDiff line numberDiff line change
@@ -9,66 +9,65 @@
99
# the `language` matrix defined below to confirm you have the correct set of
1010
# supported CodeQL languages.
1111
#
12-
name: "CodeQL"
12+
name: 'CodeQL'
1313

1414
on:
15-
push:
16-
branches: [ "main" ]
17-
pull_request:
18-
# The branches below must be a subset of the branches above
19-
branches: [ "main" ]
20-
schedule:
21-
- cron: '15 18 * * 3'
15+
push:
16+
branches: ['main']
17+
pull_request:
18+
# The branches below must be a subset of the branches above
19+
branches: ['main']
20+
schedule:
21+
- cron: '15 18 * * 3'
2222

2323
jobs:
24-
analyze:
25-
name: Analyze
26-
runs-on: ubuntu-latest
27-
permissions:
28-
actions: read
29-
contents: read
30-
security-events: write
24+
analyze:
25+
name: Analyze
26+
runs-on: ubuntu-latest
27+
permissions:
28+
actions: read
29+
contents: read
30+
security-events: write
3131

32-
strategy:
33-
fail-fast: false
34-
matrix:
35-
language: [ 'javascript' ]
36-
# CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python', 'ruby' ]
37-
# Learn more about CodeQL language support at https://aka.ms/codeql-docs/language-support
32+
strategy:
33+
fail-fast: false
34+
matrix:
35+
language: ['javascript']
36+
# CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python', 'ruby' ]
37+
# Learn more about CodeQL language support at https://aka.ms/codeql-docs/language-support
3838

39-
steps:
40-
- name: Checkout repository
41-
uses: actions/checkout@v4
39+
steps:
40+
- name: Checkout repository
41+
uses: actions/checkout@v4
4242

43-
# Initializes the CodeQL tools for scanning.
44-
- name: Initialize CodeQL
45-
uses: github/codeql-action/init@v3
46-
with:
47-
languages: ${{ matrix.language }}
48-
# If you wish to specify custom queries, you can do so here or in a config file.
49-
# By default, queries listed here will override any specified in a config file.
50-
# Prefix the list here with "+" to use these queries and those in the config file.
43+
# Initializes the CodeQL tools for scanning.
44+
- name: Initialize CodeQL
45+
uses: github/codeql-action/init@v3
46+
with:
47+
languages: ${{ matrix.language }}
48+
# If you wish to specify custom queries, you can do so here or in a config file.
49+
# By default, queries listed here will override any specified in a config file.
50+
# Prefix the list here with "+" to use these queries and those in the config file.
5151

52-
# Details on CodeQL's query packs refer to : https://docs.github.com/en/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/configuring-code-scanning#using-queries-in-ql-packs
53-
# queries: security-extended,security-and-quality
52+
# Details on CodeQL's query packs refer to : https://docs.github.com/en/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/configuring-code-scanning#using-queries-in-ql-packs
53+
# queries: security-extended,security-and-quality
5454

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

56-
# Autobuild attempts to build any compiled languages (C/C++, C#, Go, or Java).
57-
# If this step fails, then you should remove it and run the build manually (see below)
58-
- name: Autobuild
59-
uses: github/codeql-action/autobuild@v3
60+
# ℹ️ Command-line programs to run using the OS shell.
61+
# 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun
6062

61-
# ℹ️ Command-line programs to run using the OS shell.
62-
# 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun
63+
# If the Autobuild fails above, remove it and uncomment the following three lines.
64+
# modify them (or add more) to build your code if your project, please refer to the EXAMPLE below for guidance.
6365

64-
# If the Autobuild fails above, remove it and uncomment the following three lines.
65-
# modify them (or add more) to build your code if your project, please refer to the EXAMPLE below for guidance.
66+
# - run: |
67+
# echo "Run, Build Application using script"
68+
# ./location_of_script_within_repo/buildscript.sh
6669

67-
# - run: |
68-
# echo "Run, Build Application using script"
69-
# ./location_of_script_within_repo/buildscript.sh
70-
71-
- name: Perform CodeQL Analysis
72-
uses: github/codeql-action/analyze@v3
73-
with:
74-
category: "/language:${{matrix.language}}"
70+
- name: Perform CodeQL Analysis
71+
uses: github/codeql-action/analyze@v3
72+
with:
73+
category: '/language:${{matrix.language}}'

.github/workflows/dependabot-auto-merge.yml

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -4,24 +4,24 @@
44
name: Auto-Merge Dependabot PRs
55

66
on:
7-
# WARNING: This needs to be run in the PR base, DO NOT build untrusted code in this action
8-
# details under https://github.blog/changelog/2021-02-19-github-actions-workflows-triggered-by-dependabot-prs-will-run-with-read-only-permissions/
9-
pull_request_target:
7+
# WARNING: This needs to be run in the PR base, DO NOT build untrusted code in this action
8+
# details under https://github.blog/changelog/2021-02-19-github-actions-workflows-triggered-by-dependabot-prs-will-run-with-read-only-permissions/
9+
pull_request_target:
1010

1111
jobs:
12-
auto-merge:
13-
if: github.actor == 'dependabot[bot]'
14-
runs-on: ubuntu-latest
15-
steps:
16-
- name: Checkout code
17-
uses: actions/checkout@v4
12+
auto-merge:
13+
if: github.actor == 'dependabot[bot]'
14+
runs-on: ubuntu-latest
15+
steps:
16+
- name: Checkout code
17+
uses: actions/checkout@v4
1818

19-
- name: Check if PR should be auto-merged
20-
uses: ahmadnassri/action-dependabot-auto-merge@v2
21-
with:
22-
# In order to use this, you need to go to https://github.com/settings/tokens and
23-
# create a Personal Access Token with the permission "public_repo".
24-
# Enter this token in your repository settings under "Secrets" and name it AUTO_MERGE_TOKEN
25-
github-token: ${{ secrets.AUTO_MERGE_TOKEN }}
26-
# By default, squash and merge, so Github chooses nice commit messages
27-
command: squash and merge
19+
- name: Check if PR should be auto-merged
20+
uses: ahmadnassri/action-dependabot-auto-merge@v2
21+
with:
22+
# In order to use this, you need to go to https://github.com/settings/tokens and
23+
# create a Personal Access Token with the permission "public_repo".
24+
# Enter this token in your repository settings under "Secrets" and name it AUTO_MERGE_TOKEN
25+
github-token: ${{ secrets.AUTO_MERGE_TOKEN }}
26+
# By default, squash and merge, so Github chooses nice commit messages
27+
command: squash and merge

.prettierignore

Lines changed: 0 additions & 2 deletions
This file was deleted.

.prettierrc.js

Lines changed: 0 additions & 9 deletions
This file was deleted.

0 commit comments

Comments
 (0)