Skip to content

Commit

Permalink
update dep
Browse files Browse the repository at this point in the history
  • Loading branch information
TA2k committed Oct 24, 2024
1 parent c7e39f4 commit feb5b3c
Show file tree
Hide file tree
Showing 8 changed files with 944 additions and 1,358 deletions.
1 change: 0 additions & 1 deletion .eslintignore

This file was deleted.

40 changes: 0 additions & 40 deletions .eslintrc.json

This file was deleted.

17 changes: 8 additions & 9 deletions .github/workflows/test-and-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@ name: Test and Release
on:
push:
branches:
- "master"
- 'master'
tags:
# normal versions
- "v[0-9]+.[0-9]+.[0-9]+"
- 'v[0-9]+.[0-9]+.[0-9]+'
# pre-releases
- "v[0-9]+.[0-9]+.[0-9]+-**"
- 'v[0-9]+.[0-9]+.[0-9]+-**'
pull_request: {}

jobs:
Expand All @@ -23,7 +23,7 @@ jobs:
steps:
- uses: ioBroker/testing-action-check@v1
with:
node-version: "20.x"
node-version: '22.x'
# Uncomment the following line if your adapter cannot be installed using 'npm ci'
# install-command: 'npm install'
lint: true
Expand All @@ -35,7 +35,7 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
node-version: [18.x, 20.x]
node-version: [18.x, 20.x, 22.x]
os: [ubuntu-latest, windows-latest, macos-latest]

steps:
Expand All @@ -45,9 +45,9 @@ jobs:
os: ${{ matrix.os }}
# Uncomment the following line if your adapter cannot be installed using 'npm ci'
# install-command: 'npm install'
# TODO: To enable automatic npm releases, create a token on npmjs.org
# Enter this token as a GitHub secret (with name NPM_TOKEN) in the repository options
# Then uncomment the following block:
# TODO: To enable automatic npm releases, create a token on npmjs.org
# Enter this token as a GitHub secret (with name NPM_TOKEN) in the repository options
# Then uncomment the following block:

# Deploys the final package to NPM
deploy:
Expand All @@ -69,7 +69,6 @@ jobs:
# install-command: 'npm install'
npm-token: ${{ secrets.NPM_TOKEN }}
github-token: ${{ secrets.GITHUB_TOKEN }}

# # When using Sentry for error reporting, Sentry can be informed about new releases
# # To enable create a API-Token in Sentry (User settings, API keys)
# # Enter this token as a GitHub secret (with name SENTRY_AUTH_TOKEN) in the repository options
Expand Down
14 changes: 7 additions & 7 deletions .prettierrc.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
module.exports = {
semi: true,
trailingComma: 'all',
singleQuote: true,
printWidth: 120,
useTabs: false,
tabWidth: 2,
endOfLine: 'lf',
semi: true,
trailingComma: 'all',
singleQuote: true,
printWidth: 120,
useTabs: false,
tabWidth: 2,
endOfLine: 'lf',
};
103 changes: 52 additions & 51 deletions admin/words.js
Original file line number Diff line number Diff line change
@@ -1,53 +1,54 @@
/*global systemDictionary:true */
"use strict";
/* eslint-disable */

'use strict';

systemDictionary = {
"porsche adapter settings": {
"en": "Adapter settings for porsche",
"de": "Adaptereinstellungen für porsche",
"ru": "Настройки адаптера для porsche",
"pt": "Configurações do adaptador para porsche",
"nl": "Adapterinstellingen voor porsche",
"fr": "Paramètres d'adaptateur pour porsche",
"it": "Impostazioni dell'adattatore per porsche",
"es": "Ajustes del adaptador para porsche",
"pl": "Ustawienia adaptera dla porsche",
"zh-cn": "porsche的适配器设置"
},
"App Email": {
en: "App Email",
de: "App-E-Mail",
ru: "Электронная почта приложения",
pt: "Email do aplicativo",
nl: "App-e-mail",
fr: "Courriel de l'application",
it: "E-mail dell'app",
es: "Correo electrónico de la aplicación",
pl: "E-mail aplikacji",
"zh-cn": "应用电子邮件",
},
"App Password": {
en: "App Password",
de: "App-Passwort",
ru: "Пароль приложения",
pt: "Senha de app",
nl: "App-wachtwoord",
fr: "Mot de passe de l'application",
it: "Password dell'app",
es: "Contraseña de la aplicación",
pl: "Hasło do aplikacji",
"zh-cn": "应用密码",
},
"Update interval (in minutes)": {
en: "Update interval (in minutes)",
de: "Aktualisierungsintervall (in Minuten)",
ru: "Интервал обновления (в минутах)",
pt: "Intervalo de atualização (em minutos)",
nl: "Update-interval (in minuten)",
fr: "Intervalle de mise à jour (en minutes)",
it: "Intervallo di aggiornamento (in minuti)",
es: "Intervalo de actualización (en minutos)",
pl: "Interwał aktualizacji (w minutach)",
"zh-cn": "更新间隔(分钟)",
},
};
'porsche adapter settings': {
en: 'Adapter settings for porsche',
de: 'Adaptereinstellungen für porsche',
ru: 'Настройки адаптера для porsche',
pt: 'Configurações do adaptador para porsche',
nl: 'Adapterinstellingen voor porsche',
fr: "Paramètres d'adaptateur pour porsche",
it: "Impostazioni dell'adattatore per porsche",
es: 'Ajustes del adaptador para porsche',
pl: 'Ustawienia adaptera dla porsche',
'zh-cn': 'porsche的适配器设置',
},
'App Email': {
en: 'App Email',
de: 'App-E-Mail',
ru: 'Электронная почта приложения',
pt: 'Email do aplicativo',
nl: 'App-e-mail',
fr: "Courriel de l'application",
it: "E-mail dell'app",
es: 'Correo electrónico de la aplicación',
pl: 'E-mail aplikacji',
'zh-cn': '应用电子邮件',
},
'App Password': {
en: 'App Password',
de: 'App-Passwort',
ru: 'Пароль приложения',
pt: 'Senha de app',
nl: 'App-wachtwoord',
fr: "Mot de passe de l'application",
it: "Password dell'app",
es: 'Contraseña de la aplicación',
pl: 'Hasło do aplikacji',
'zh-cn': '应用密码',
},
'Update interval (in minutes)': {
en: 'Update interval (in minutes)',
de: 'Aktualisierungsintervall (in Minuten)',
ru: 'Интервал обновления (в минутах)',
pt: 'Intervalo de atualização (em minutos)',
nl: 'Update-interval (in minuten)',
fr: 'Intervalle de mise à jour (en minutes)',
it: 'Intervallo di aggiornamento (in minuti)',
es: 'Intervalo de actualización (en minutos)',
pl: 'Interwał aktualizacji (w minutach)',
'zh-cn': '更新间隔(分钟)',
},
};
46 changes: 46 additions & 0 deletions eslint.config.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
const globals = require('globals');
const js = require('@eslint/js');

const {
FlatCompat,
} = require('@eslint/eslintrc');

const compat = new FlatCompat({
baseDirectory: __dirname,
recommendedConfig: js.configs.recommended,
allConfig: js.configs.all
});

module.exports = [{
ignores: ['**/.eslintrc.js'],
}, ...compat.extends('eslint:recommended'), {
plugins: {},

languageOptions: {
globals: {
...globals.node,
...globals.mocha,
},

ecmaVersion: 2018,
sourceType: 'commonjs',
},

rules: {
indent: ['error', 2, {
SwitchCase: 1,
}],

'no-console': 'off',
'no-var': 'error',
'no-trailing-spaces': 'error',
'prefer-const': 'error',

quotes: ['error', 'single', {
avoidEscape: true,
allowTemplateLiterals: true,
}],

semi: ['error', 'always'],
},
}];
Loading

0 comments on commit feb5b3c

Please sign in to comment.